Process Hacker
tokprp.c File Reference
#include <phapp.h>
#include <secedit.h>
#include <emenu.h>
#include <cpysave.h>

Go to the source code of this file.

Typedefs

typedef struct _ATTRIBUTE_NODE ATTRIBUTE_NODE
 
typedef struct _ATTRIBUTE_NODE * PATTRIBUTE_NODE
 
typedef struct
_ATTRIBUTE_TREE_CONTEXT 
ATTRIBUTE_TREE_CONTEXT
 
typedef struct
_ATTRIBUTE_TREE_CONTEXT * 
PATTRIBUTE_TREE_CONTEXT
 
typedef struct _TOKEN_PAGE_CONTEXT TOKEN_PAGE_CONTEXT
 
typedef struct
_TOKEN_PAGE_CONTEXT * 
PTOKEN_PAGE_CONTEXT
 

Functions

INT CALLBACK PhpTokenPropPageProc (_In_ HWND hwnd, _In_ UINT uMsg, _In_ LPPROPSHEETPAGE ppsp)
 
INT_PTR CALLBACK PhpTokenPageProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
VOID PhpShowTokenAdvancedProperties (_In_ HWND ParentWindowHandle, _In_ PTOKEN_PAGE_CONTEXT Context)
 
INT_PTR CALLBACK PhpTokenGeneralPageProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK PhpTokenAdvancedPageProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK PhpTokenCapabilitiesPageProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
BOOLEAN NTAPI PhpAttributeTreeNewCallback (_In_ HWND hwnd, _In_ PH_TREENEW_MESSAGE Message, _In_opt_ PVOID Parameter1, _In_opt_ PVOID Parameter2, _In_opt_ PVOID Context)
 
INT_PTR CALLBACK PhpTokenClaimsPageProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK PhpTokenAttributesPageProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
VOID PhShowTokenProperties (_In_ HWND ParentWindowHandle, _In_ PPH_OPEN_OBJECT OpenObject, _In_opt_ PVOID Context, _In_opt_ PWSTR Title)
 
HPROPSHEETPAGE PhCreateTokenPage (_In_ PPH_OPEN_OBJECT OpenObject, _In_opt_ PVOID Context, _In_opt_ DLGPROC HookProc)
 
PPH_STRING PhGetGroupAttributesString (_In_ ULONG Attributes)
 
COLORREF PhGetGroupAttributesColor (_In_ ULONG Attributes)
 
PWSTR PhGetPrivilegeAttributesString (_In_ ULONG Attributes)
 
COLORREF PhGetPrivilegeAttributesColor (_In_ ULONG Attributes)
 
PWSTR PhGetElevationTypeString (_In_ TOKEN_ELEVATION_TYPE ElevationType)
 
BOOLEAN PhpUpdateTokenGroups (_In_ HWND hwndDlg, _In_ PTOKEN_PAGE_CONTEXT TokenPageContext, _In_ HWND GroupsLv, _In_ HANDLE TokenHandle)
 
FORCEINLINE PTOKEN_PAGE_CONTEXT PhpTokenPageHeader (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
PATTRIBUTE_NODE PhpAddAttributeNode (_In_ PATTRIBUTE_TREE_CONTEXT Context, _In_opt_ PATTRIBUTE_NODE Parent, _In_opt_ _Assume_refs_(1) PPH_STRING Text)
 
VOID PhpDestroyAttributeNode (_In_ PATTRIBUTE_NODE Node)
 
VOID PhpInitializeAttributeTreeContext (_Out_ PATTRIBUTE_TREE_CONTEXT Context, _In_ HWND TreeNewHandle)
 
VOID PhpDeleteAttributeTreeContext (_Inout_ PATTRIBUTE_TREE_CONTEXT Context)
 
PWSTR PhGetSecurityAttributeTypeString (_In_ USHORT Type)
 
PPH_STRING PhGetSecurityAttributeFlagsString (_In_ ULONG Flags)
 
PPH_STRING PhFormatClaimSecurityAttributeValue (_In_ PCLAIM_SECURITY_ATTRIBUTE_V1 Attribute, _In_ ULONG ValueIndex)
 
PPH_STRING PhFormatTokenSecurityAttributeValue (_In_ PTOKEN_SECURITY_ATTRIBUTE_V1 Attribute, _In_ ULONG ValueIndex)
 
BOOLEAN PhpAddTokenClaimAttributes (_In_ PTOKEN_PAGE_CONTEXT TokenPageContext, _In_ HWND tnHandle, _In_ BOOLEAN DeviceClaims, _In_ PATTRIBUTE_NODE Parent)
 
BOOLEAN PhpAddTokenAttributes (_In_ PTOKEN_PAGE_CONTEXT TokenPageContext, _In_ HWND tnHandle)
 

Typedef Documentation

typedef struct _ATTRIBUTE_NODE ATTRIBUTE_NODE
typedef struct _ATTRIBUTE_TREE_CONTEXT ATTRIBUTE_TREE_CONTEXT
typedef struct _ATTRIBUTE_NODE * PATTRIBUTE_NODE
typedef struct _ATTRIBUTE_TREE_CONTEXT * PATTRIBUTE_TREE_CONTEXT
typedef struct _TOKEN_PAGE_CONTEXT * PTOKEN_PAGE_CONTEXT
typedef struct _TOKEN_PAGE_CONTEXT TOKEN_PAGE_CONTEXT

Function Documentation

HPROPSHEETPAGE PhCreateTokenPage ( _In_ PPH_OPEN_OBJECT  OpenObject,
_In_opt_ PVOID  Context,
_In_opt_ DLGPROC  HookProc 
)

Definition at line 144 of file tokprp.c.

PPH_STRING PhFormatClaimSecurityAttributeValue ( _In_ PCLAIM_SECURITY_ATTRIBUTE_V1  Attribute,
_In_ ULONG  ValueIndex 
)

Definition at line 1601 of file tokprp.c.

PPH_STRING PhFormatTokenSecurityAttributeValue ( _In_ PTOKEN_SECURITY_ATTRIBUTE_V1  Attribute,
_In_ ULONG  ValueIndex 
)

Definition at line 1649 of file tokprp.c.

PWSTR PhGetElevationTypeString ( _In_ TOKEN_ELEVATION_TYPE  ElevationType)

Definition at line 312 of file tokprp.c.

COLORREF PhGetGroupAttributesColor ( _In_ ULONG  Attributes)

Definition at line 246 of file tokprp.c.

PPH_STRING PhGetGroupAttributesString ( _In_ ULONG  Attributes)

Definition at line 198 of file tokprp.c.

COLORREF PhGetPrivilegeAttributesColor ( _In_ ULONG  Attributes)

Definition at line 289 of file tokprp.c.

PWSTR PhGetPrivilegeAttributesString ( _In_ ULONG  Attributes)

Definition at line 277 of file tokprp.c.

PPH_STRING PhGetSecurityAttributeFlagsString ( _In_ ULONG  Flags)

Definition at line 1570 of file tokprp.c.

PWSTR PhGetSecurityAttributeTypeString ( _In_ USHORT  Type)

Definition at line 1541 of file tokprp.c.

PATTRIBUTE_NODE PhpAddAttributeNode ( _In_ PATTRIBUTE_TREE_CONTEXT  Context,
_In_opt_ PATTRIBUTE_NODE  Parent,
_In_opt_ _Assume_refs_(1) PPH_STRING  Text 
)

Definition at line 1477 of file tokprp.c.

BOOLEAN PhpAddTokenAttributes ( _In_ PTOKEN_PAGE_CONTEXT  TokenPageContext,
_In_ HWND  tnHandle 
)

Definition at line 1808 of file tokprp.c.

BOOLEAN PhpAddTokenClaimAttributes ( _In_ PTOKEN_PAGE_CONTEXT  TokenPageContext,
_In_ HWND  tnHandle,
_In_ BOOLEAN  DeviceClaims,
_In_ PATTRIBUTE_NODE  Parent 
)

Definition at line 1698 of file tokprp.c.

BOOLEAN NTAPI PhpAttributeTreeNewCallback ( _In_ HWND  hwnd,
_In_ PH_TREENEW_MESSAGE  Message,
_In_opt_ PVOID  Parameter1,
_In_opt_ PVOID  Parameter2,
_In_opt_ PVOID  Context 
)

Definition at line 1399 of file tokprp.c.

VOID PhpDeleteAttributeTreeContext ( _Inout_ PATTRIBUTE_TREE_CONTEXT  Context)

Definition at line 1528 of file tokprp.c.

VOID PhpDestroyAttributeNode ( _In_ PATTRIBUTE_NODE  Node)

Definition at line 1503 of file tokprp.c.

VOID PhpInitializeAttributeTreeContext ( _Out_ PATTRIBUTE_TREE_CONTEXT  Context,
_In_ HWND  TreeNewHandle 
)

Definition at line 1512 of file tokprp.c.

VOID PhpShowTokenAdvancedProperties ( _In_ HWND  ParentWindowHandle,
_In_ PTOKEN_PAGE_CONTEXT  Context 
)

Definition at line 924 of file tokprp.c.

INT_PTR CALLBACK PhpTokenAdvancedPageProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 1200 of file tokprp.c.

INT_PTR CALLBACK PhpTokenAttributesPageProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 1865 of file tokprp.c.

INT_PTR CALLBACK PhpTokenCapabilitiesPageProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 1305 of file tokprp.c.

INT_PTR CALLBACK PhpTokenClaimsPageProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 1756 of file tokprp.c.

INT_PTR CALLBACK PhpTokenGeneralPageProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 1032 of file tokprp.c.

FORCEINLINE PTOKEN_PAGE_CONTEXT PhpTokenPageHeader ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 376 of file tokprp.c.

INT_PTR CALLBACK PhpTokenPageProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 387 of file tokprp.c.

INT CALLBACK PhpTokenPropPageProc ( _In_ HWND  hwnd,
_In_ UINT  uMsg,
_In_ LPPROPSHEETPAGE  ppsp 
)

Definition at line 176 of file tokprp.c.

BOOLEAN PhpUpdateTokenGroups ( _In_ HWND  hwndDlg,
_In_ PTOKEN_PAGE_CONTEXT  TokenPageContext,
_In_ HWND  GroupsLv,
_In_ HANDLE  TokenHandle 
)

Definition at line 327 of file tokprp.c.

VOID PhShowTokenProperties ( _In_ HWND  ParentWindowHandle,
_In_ PPH_OPEN_OBJECT  OpenObject,
_In_opt_ PVOID  Context,
_In_opt_ PWSTR  Title 
)

Definition at line 119 of file tokprp.c.