Get Cureent Windows User IDThis is a featured page

EDIT SYSPROCS dll_advapi32
LONG STDCALL GetUserNameA(LPCHAR, LPLONG) AS GetUserName
SYSTEM MONITOR
run declare_fcns "DLL_ADVAPI32"

GetWinUser:

IDLen = 257
WinUser = Str(\00\, IDLen)
If GetUserName(WinUser, IDLen) then
WinUser = WinUser[1,IDLen-1]
End Else
WinUser = ""
end
* for testing on dev machine
Convert @LOWER_CASE To @UPPER_CASE In WinUser
end



Exorsys
Exorsys
Latest page update: made by Exorsys , Apr 2 2009, 4:31 PM EDT (about this update About This Update Exorsys Edited by Exorsys

48 words added

view changes

- complete history)
Keyword tags: None
More Info: links to this page
Started By Thread Subject Replies Last Post
Exorsys Accessing XML Web Service from OpenInsight using HTTPPOST 0 Aug 3 2009, 5:57 PM EDT by Exorsys
Thread started: Aug 3 2009, 5:57 PM EDT  Watch
oops - wrong place
Do you find this valuable?    
Keyword tags: None
Showing 1 of 1 threads for this page