cs_putch
Messages postés624Date d'inscriptionmardi 6 mai 2003StatutMembreDernière intervention14 décembre 2009
-
1 juin 2005 à 12:49
cs_putch
Messages postés624Date d'inscriptionmardi 6 mai 2003StatutMembreDernière intervention14 décembre 2009
-
1 juin 2005 à 13:32
salut à tous !
voila mopn problème : je souhaiterai parcourir le répertoire des
favoris utilisé par Internet Explorer mais je ne sait pas comment y
accéder.
Comment récupérer le nom de l'utilisateur de windows ?
cs_putch
Messages postés624Date d'inscriptionmardi 6 mai 2003StatutMembreDernière intervention14 décembre 20091 1 juin 2005 à 13:32
C'est bon j'ai trouvé Merçi de m'avoir indiqué où chercher
Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, ByRef nSize As Integer) As Integer
Function GetUser() As String
Dim RetVal As Integer
Dim UserName As String
Dim Buffer As String
Buffer = New String(CChar(" "), 25)
RetVal = GetUserName(Buffer, 25)
UserName = Strings.Left(Buffer, InStr(Buffer, Chr(0)) - 1)
Return UserName
End Function
MsgBox(GetUser, MsgBoxStyle.Information, "Utilisateur Windows :")
valtrase
Messages postés937Date d'inscriptionlundi 19 janvier 2004StatutMembreDernière intervention 9 mai 20223 1 juin 2005 à 13:06
Lut,
Pour le répèrtoire Favoris tu peux le trouver à la clé
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
Pour le nom de l'utilisateur utilises l'API
Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" _
(ByVal lpBuffer As String, nSize As Long) As Long