Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PC name
Message
De
13/01/2003 14:35:54
Jason Dalio
Northern Interior Regional Health Board
Prince George, Colombie Britannique, Canada
 
 
À
13/01/2003 14:29:44
Fausto Garcia
Independent Developer
Lima, Pérou
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Divers
Thread ID:
00741131
Message ID:
00741135
Vues:
23
Use an API.
Declare Function GetComputerName Lib "kernel32.dll" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long 

Private Sub Command1_Click()
Dim compname As String, retval As Long

   compname = Space(255)
   retval = GetComputerName(compname, 255)
   compname = Left(compname, InStr(compname, vbNullChar) - 1)
   Debug.Print compname

End Sub
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform