Board index » delphi » using WinAPI GetWindowsDirectory

using WinAPI GetWindowsDirectory

Can someone please tell me how I go about using the winAPI
Getwindowsdirectory in Delphi3.0

Many Thanks

Steve

 

Re:using WinAPI GetWindowsDirectory


var S: String;
begin
   SetLength(S,250);  // make space
   GetWindowsDirectory(PChar(S),200);
   SetLength(S,StrLen(PChar(S));
end;

--

-----------------------------------
Hope [this] helps.
Arne Schaepers
Steve schrieb in Nachricht <01bdafc1$839a0520$b30cd9c2@Steve>...

Quote
>Can someone please tell me how I go about using the winAPI
>Getwindowsdirectory in Delphi3.0

>Many Thanks

>Steve

Re:using WinAPI GetWindowsDirectory


Quote
> Can someone please tell me how I go about using the winAPI
> Getwindowsdirectory in Delphi3.0

> Steve

Hi Steve!

Here is an example of GetWindowsDirectory...

-----
procedure TForm1.Button1Click(Sender: TObject);
var
   buffer : array [1..255] of char;
   koko : integer;

begin
     GetWindowsDirectory(@buffer, length(buffer));
     showMessage(buffer);
end;
-----

Hope this helps!

- LTa

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum

Other Threads