General information
Category:
Windows API functions
>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)))
This code gives me the login id of the current user. I looked
it up in MSDN and sometimes they refer to it as Username and
other times they call it a UserId or LoginId.
Apparently, what I'm trying to do is supply the LoginId and
have the OS return to me the FullName, something along the
lines of:
? FullName("KTONGE") && RETURNS: KEITH TONGE
...kt
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only