|
BOOL EnableClientAccess( |
|
UINT nClientId, |
|
|
DWORD dwUserAccess, |
|
|
BOOL bEnable |
|
); |
Enable or disable access rights for the specified client session.
Parameters
- nClientId
- An unsigned integer which uniquely identifies the client
session.
- dwUserAccess
- An unsigned integer which specifies an access right to enable or
disable. For a list of user access rights that can be granted to the
client, see User and File Access Constants.
- bEnable
- An integer value which specifies if permission should be granted
or revoked for the specified access right. If this value is
non-zero, permission is granted to the client to perform the action
specified by the dwUserAccess parameter. If this value is
zero, that permission is revoked.
Return Value
If the method succeeds, the return value is non-zero. If the client
ID does not specify a valid client session, the method will return
zero.
Remarks
The EnableClientAccess method is used to enable or
disable access to specific functionality by the client. The method
can only change a single access right and cannot be used to enable or
disable multiple access rights in a single method call. To change
multiple user access rights for the client, use the
SetClientAccess method.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools11.h
Import Library: cshtsv11.lib
See Also
AuthenticateClient,
GetClientAccess,
SetClientAccess
|
|