OVH Cloud OVH Cloud

system ou system32

1 réponse
Avatar
jose MULLER
Bonsoir

Comment savoir s il faut aller voir c:\windows\system ou
c:\windows\system32 pour retrouver les dll installées ?

les api getsystemdirectory et getwindowsdir ne semblent pas reagir de la
meme facon si WIN98 ou WINXP ?


merci

1 réponse

Avatar
Jonathan
Chez moi cela fonctionne, sous XP la valeur renvoyée est
"C:WindowsSystem32"
et sous 98 "C:WindowsSystem"

Rappel:
Private Declare Function GetSystemDirectory Lib "kernel32" Alias
"GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As
Long

Private Sub Form_Load()

Dim sSave As String, Ret As Long

sSave = Space(255)

Ret = GetSystemDirectory(sSave, 255)

'Remove all unnecessary chr$(0)'s

sSave = Left$(sSave, Ret)

'Show the windows directory

MsgBox "Windows System directory: " + sSave

End Sub



@+



Jonathan