Tests whether the current user is a member of the Administrator's group.
Syntax
BOOL IsUserAnAdmin(void);
Parameters
This function has no parameters.
Return value
Type: BOOL
Returns TRUE if the user is a member of the Administrator's group; otherwise, FALSE.
Remarks
This function is a wrapper for CheckTokenMembership. It is recommended to call that function directly to determine Administrator group status rather than calling IsUserAnAdmin.
Note This function is available through Windows Vista. It might be altered or unavailable in subsequent versions of Windows.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 9/7/2011
