The method enables setting a more granular set of permissions to the existing account. The flag, Allowspecifies if Permissions ...

The method enables setting a more granular set of permissions to the existing account. The flag, Allowspecifies if Permissions is to be allowed or denied.The permissions are set individually through PermissionMask.The PermissionMask is an enumeration of the following values:WINSTATION_QUERY, WINSTATION_SET, WINSTATION_LOGOFF, WINSTATION_VIRTUAL | STANDARD_RIGHTS_REQUIRED, WINSTATION_SHADOW,WINSTATION_LOGON, WINSTATION_MSG, WINSTATION_CONNECT,WINSTATION_DISCONNECT