🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.lang.visualbasic
Article #802

Re: Plus!の導入判定方法はありませんか?

#802
From: Takeshi Shigihara
Date: Mon, 19 Jan 1998 00:00
45 lines
2268 bytes
WIN32 API の SystemParametersInfo に SPI_GETWINDOWSEXTENSION
というフラグがあります。

私は、VBを知らないので、VBでの宣言を記述することができません。
とりあえず、オンラインマニュアルからC言語での関数宣言を引き写し
ておきます。

BOOL SystemParametersInfo(
  UINT uiAction, // system parameter to query or set
  UINT uiParam,  // depends on action to be taken
  PVOID pvParam, // depends on action to be taken
  UINT fWinIni   // user profile update flag
);
 
SPI_GETWINDOWSEXTENSION   Windows 95 only:
 Indicates whether the Windows extension, Windows Plus!, is installed.
Set the uiParam parameter to 1. The pvParam parameter is not used.
The function returns TRUE if the extension is installed,
or FALSE if it is not.

引数 uiAction には SPI_GETWINDOWSEXTENSION を
引数 uiParam には 1をセットします。
pvParam は使われません。
(また、fWinIni は FALSE を与えれば良いでしょう。)
関数から真が返る場合、Plus!がインストールされており、
偽の場合にはインストールされていません。


Akira Gotoh wrote:
> 
> はじめまして。
> 
> MSのWin95用のPlus!が導入されているか否かの判定方法は
> ないでしょうか?
> レジストリのキーでも結構ですし、アプリケーションの
> インストール情報を知る方法でも結構です。
> 
> 使用言語はVB5です。
> 
> 後藤あきら (foxlum@cyborg.or.jp)

----- Takeshi Shigihara
      OFFICE  cygnus@masternet.or.jp
      HOME    cygnus@po.jah.ne.jp --------
Technical Details
Message-ID: <34C32139.D704CFF9@masternet.or.jp>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <69ripo$62h$1@sol.cyborg.ne.jp>

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: 105c2e,cb089d23c9801c54
X-Google-Attributes: gid105c2e,public
From: Takeshi Shigihara <cygnus@masternet.or.jp>
Subject: Re: Plus!の導入判定方法はありませんか?
Date: 1998/01/19
Message-ID: <34C32139.D704CFF9@masternet.or.jp>
X-Deja-AN: 317298996
Content-Transfer-Encoding: 7bit
References: <69ripo$62h$1@sol.cyborg.ne.jp>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-2022-jp
X-Complaints-To: ap-net@asahi-net.or.jp
X-Trace: skytrain.asahi-net.or.jp 885203881 40590 (None) 202.224.45.156
Organization: MasterNet
Newsgroups: fj.lang.visualbasic