Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows Authentication
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00757860
Message ID:
00758335
Vues:
24
DECLARE INTEGER GetComputerName IN kernel32;
STRING @ lpBuffer, INTEGER @ nSize

nSize = 250
lpBuffer = SPACE(nSize)

IF GetComputerName (@lpBuffer, @nSize) > 0
lpBuffer = STRTRAN (SUBSTR (lpBuffer, 1, nSize), Chr(0),"")
? "Computer: " + lpBuffer
ENDIF

The above code returns the name of my computer.

>All I get back from that is a 0.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform