| BOOL SetClientIdentity( |
| |
UINT nClientId, |
|
| |
LPCTSTR lpszIdentity |
|
| ); |
Change the identity of the specified client session.
Parameters
- nClientId
- An unsigned integer which uniquely identifies the client
session.
- lpszIdentity
- A null-terminated string that identifies the
client. If this parameter is NULL or specifies an empty string, the
current identity for the client is cleared. The maximum length of
the identity string is 64 characters, including the terminating null
character.
Return Value
If the method succeeds, the return value is non-zero. If the
client ID is invalid, the method will return a value of zero.
Remarks
The SetClientIdentity method associates a string value
with the client that can be used to identify the session. The identity
string does not have any standard format and is used for informational
purposes only. Typically it is used to identify the client application
that was used to establish the connection. Changing the client
identity has no effect on the operation of the server. To obtain the
identity string currently associated with the client, use the
GetClientIdentity method.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csftsv12.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
|