'computer name
Private Declare Function GetComputerName Lib 'kernel32' Alias 'GetComputerNameA' (ByVal lpBuffer As String, nSize As Long) As Long
'user name
Private Declare Function GetUserName Lib 'advapi32.dll' Alias 'GetUserNameA' (ByVal lpBuffer As String, nSize As Long) As Long
Sub RecupNom()
'computer name
Dim strComputerName As String
strComputerName = String(10, Chr$(0)) + ' FT '
GetComputerName strComputerName, 10
username
Dim strUserName As String
strUserName = String(10, Chr$(0))
GetUserName strUserName, 10