CTokenPrivileges::GetLuidsAndAttributes

CTokenPrivileges 物件擷取當地的唯一識別項 (LUIDs) 和屬性旗標。

void GetLuidsAndAttributes(
   CLUIDArray * pPrivileges,
   CAttributes * pAttributes = NULL 
) const throw(...);

參數

  • pPrivileges
    物件陣列的指標 LUID 物件。CLUIDArray 是的 CAtlArray<LUID> CLUIDArray定義的 typedef。

  • pAttributes
    物件陣列的指標 DWORD 物件。如果此參數為省略或空的,屬性不會擷取。CAttributes 是的 CAtlArray <DWORD> CAttributes定義的 typedef。

備註

這個方法會列舉 CTokenPrivileges 存取語彙基元在物件中的所有使用權限,並將個別 LUIDs 以及 (選擇性的) 屬性旗標輸入陣列的物件。

需求

Header: atlsecurity.h

請參閱

參考

CTokenPrivileges 類別

CTokenPrivileges::GetNamesAndAttributes

CTokenPrivileges::LookupPrivilege

CTokenPrivileges::GetDisplayNames

LUID_AND_ATTRIBUTES