Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting User Names
Message
 
To
10/10/2001 13:20:28
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00566514
Message ID:
00566519
Views:
15
put this in your procedure lib

PROCEDURE NetworkID
LOCAL LocalName, UserName, BufferSize
m.LocalName = CHR(0)
m.UserName = SPACE(40)
m.BufferSize = LEN(UserName)

DECLARE INTEGER WNetGetUser ;
IN WIN32API ;
AS GetUserID ;
STRING LocalName, ;
STRING @UserName, ;
INTEGER @BufferSize

cErrorCode = GetUserID(LocalName, @UserName, @BufferSize)

RETURN TRANSFORM(STRTRAN(m.UserName,CHR(0)))
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform