Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obter Diretorio Windows System no Win 2000
Message
From
08/04/2002 14:59:00
Peter Wagner
Point Informática Ltda.
Limeira, Brazil
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Obter Diretorio Windows System no Win 2000
Miscellaneous
Thread ID:
00642317
Message ID:
00642317
Views:
35
Uso a seguinte função abaixo p/ obter o diretorio windows system , mas no Win 2000 esta retornando um string em branco.
Allguem tem alguma solução para o problema ?

Agradeço antecipadamente.

Peter
function sysdir

local x
local retlen
local winsysdir

* This gets the windows system directory
string= replicate(chr(0), 144)
x = RegFn("GetSystemDirectory", "@CI", "I")
retlen = CallFn(x, @string, 144)
winsysdir=LEFT(string, retlen)
Return(winsysdir)
Next
Reply
Map
View

Click here to load this message in the networking platform