🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.lang.visualbasic
Article #257

Windowsがインストールされている場所を調べる方法

#257
From: ToyotaMacs Ogawa
Date: Mon, 06 Apr 1998 00:00
19 lines
1248 bytes
こんにちは。小川と申します。

 VB5.0でWindows95やWindowsNTが、インストールされている
ドライブやディレクトリを、調べる方法について教えてください。

 API関数を探したところ「GetWindowsDirectory」を使うのかな
と思い、次のように記述してみたところ”lpBuffer”には何も返って
きませんでした。

Dim lpBuffer As String
Dim nSize As Long
Dim rtn As Integer
rtn = GetWindowsDirectory(lpBuffer, nSize)

 使用例がなくてどう使えばいいのかよく分りません。
 わかる方よろしくお願いします。

E-mail k-ogawa@syseng.toyotamacs.co.jp
Technical Details
Message-ID: <6ga7je$4fq$1@nn-os001.ocn.ad.jp>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: 105c2e,bd9cba5edc4c1a2e,start
X-Google-Attributes: gid105c2e,public
From: "ToyotaMacs Ogawa" <k-ogawa@syseng.toyotamacas.co.jp>
Subject: Windowsがインストールされている場所を調べる方法
Date: 1998/04/06
Message-ID: <6ga7je$4fq$1@nn-os001.ocn.ad.jp>
X-Deja-AN: 341303226
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-2022-jp"
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: NTT Open Computer Network
Newsgroups: fj.lang.visualbasic