Parameters

hWnd identifies the current window of the application.

lpszLocationName points to a null-terminated character string containing the system name to be queried. Specify NULL to query the user ID for the default system. lpszUserId points to a null-terminated character string that is used to return the user ID for the specified system.

lpszUserId points to a null-terminated character string containing the user ID for the specified system.