SHTestTokenMembership function

Uses CheckTokenMembership to test whether the given token is a member of the local group with the specified RID.

Syntax

BOOL SHTestTokenMembership(
  HANDLE hToken,
  ULONG  ulRID
);

Parameters

hToken

Type: HANDLE

A handle to the token. This value can be NULL.

ulRID

Type: ULONG

The RID of the local group for which membership is tested.

Return Value

Type: BOOL

Returns TRUE on success, FALSE on failure.

Remarks

This function wraps CheckTokenMembership and only checks local groups.

Requirements

   
Windows version Windows XP [desktop apps only] Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shellapi.h
Library Shell32.lib
DLL Shell32.dll (version 6.0 or later)