How to get the user name and password of the operating system

To get the user name and password of the operating system, follow the two steps:

Step 1: Package the GetUserName function into a DLL then call the DLL in PowerBuilder.

Step 2: Deploy the DLL to PowerServer and download the DLL to the client needed. You can get the detail information of the GetUserName function from the following Website: http://msdn.microsoft.com/en-us/library/windows/desktop/ms724432(v=vs.85).aspx.