|
INT GetClientUserName( |
|
UINT nClientId, |
|
|
LPTSTR lpszUserName, |
|
|
INT nMaxLength |
|
); |
INT GetClientUserName( |
|
UINT nClientId, |
|
|
CString& strUserName |
|
); |
Return the user name associated with the specified client
session.
Parameters
- nClientId
- An unsigned integer which uniquely identifies the client
session.
- strUserName
- A pointer to a string buffer that will contain the user name
associated with the client session. This buffer must be large enough
to store the complete user name, including the terminating null
character. This parameter cannot be NULL. An alternate version of
this method accepts a CString object if it is available.
Return Value
If the method succeeds, the return value is non-zero. If the
client ID does not specify a valid client session, or the client has
not authenticated itself,
the method will return zero.
Requirements
Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csftsv10.lib
Unicode: Implemented as Unicode and ANSI versions.
See Also
AuthenticateClient,
GetClientAccess,
GetClientHomeDirectory
|
|