Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows System Directory Path
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00776268
Message ID:
00776275
Vues:
25
>>Please can somebody help me to get a function to get the path to the WINDOWS SYSTEM DIRECTORY for all Windows version (Windows 98 until XP).
>>SYS(2004) brings me depending on the Windows version C:\program files\.....
>>
>>I would need to address the REAL WINDOWS system or system32 directory.
>>Thank you so much for your help.
>>
>>Johann Pietschnig
>>pietschnig@usa.com
>
>There should be a listing for the GetSystemDirectory() function, with example, in the UT API section.

Ah, here's the the full listing:
DECLARE INTEGER GetSystemDirectory IN Win32API;
 STRING @lpbuffer, INTEGER uSize
lcbuffer = SPACE(261) && MAX_PATH + 1
lnresult = GetSystemDirectory(@lcbuffer, 261)
? LEFT(lcbufferm, lnresult)
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform