Skip to content

Latest commit

 

History

History
77 lines (61 loc) · 2.11 KB

nf-shellapi-shtesttokenmembership.md

File metadata and controls

77 lines (61 loc) · 2.11 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:shellapi.SHTestTokenMembership
SHTestTokenMembership function (shellapi.h)
Uses CheckTokenMembership to test whether the given token is a member of the local group with the specified RID.
SHTestTokenMembership
SHTestTokenMembership function [Windows Shell]
_win32_SHTestTokenMembership
shell.SHTestTokenMembership
shellapi/SHTestTokenMembership
shell\SHTestTokenMembership.htm
shell
ac2d591a-f431-4da7-aa9f-0476634ec9cf
12/05/2018
SHTestTokenMembership, SHTestTokenMembership function [Windows Shell], _win32_SHTestTokenMembership, shell.SHTestTokenMembership, shellapi/SHTestTokenMembership
shellapi.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Shell32.lib
Shell32.dll (version 6.0 or later)
Windows
19H1
SHTestTokenMembership
shellapi/SHTestTokenMembership
c++
APIRef
kbSyntax
DllExport
Shell32.dll
SHTestTokenMembership

SHTestTokenMembership function

-description

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

-parameters

-param hToken [in, optional]

Type: HANDLE

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

-param ulRID

Type: ULONG

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

-returns

Type: BOOL

Returns TRUE on success, FALSE on failure.

-remarks

This function wraps CheckTokenMembership and only checks local groups.