Process Hacker
secdata.c File Reference
#include <phgui.h>
#include <secedit.h>

Go to the source code of this file.

Macros

#define ACCESS_ENTRIES(Type)   static PH_ACCESS_ENTRY Ph##Type##AccessEntries[] =
 
#define ACCESS_ENTRY(Type, HasSynchronize)   { L#Type, Ph##Type##AccessEntries, sizeof(Ph##Type##AccessEntries), HasSynchronize }
 

Typedefs

typedef struct _PH_SPECIFIC_TYPE PH_SPECIFIC_TYPE
 
typedef struct _PH_SPECIFIC_TYPE * PPH_SPECIFIC_TYPE
 

Functions

 ACCESS_ENTRIES (Standard)
 
 ACCESS_ENTRIES (AlpcPort)
 
 ACCESS_ENTRIES (DebugObject)
 
 ACCESS_ENTRIES (Desktop)
 
 ACCESS_ENTRIES (Directory)
 
 ACCESS_ENTRIES (Event)
 
 ACCESS_ENTRIES (EventPair)
 
 ACCESS_ENTRIES (File)
 
 ACCESS_ENTRIES (FilterConnectionPort)
 
 ACCESS_ENTRIES (IoCompletion)
 
 ACCESS_ENTRIES (Job)
 
 ACCESS_ENTRIES (Key)
 
 ACCESS_ENTRIES (KeyedEvent)
 
 ACCESS_ENTRIES (LsaAccount)
 
 ACCESS_ENTRIES (LsaPolicy)
 
 ACCESS_ENTRIES (LsaSecret)
 
 ACCESS_ENTRIES (LsaTrusted)
 
 ACCESS_ENTRIES (Mutant)
 
 ACCESS_ENTRIES (Process)
 
 ACCESS_ENTRIES (Process60)
 
 ACCESS_ENTRIES (Profile)
 
 ACCESS_ENTRIES (SamAlias)
 
 ACCESS_ENTRIES (SamDomain)
 
 ACCESS_ENTRIES (SamGroup)
 
 ACCESS_ENTRIES (SamServer)
 
 ACCESS_ENTRIES (SamUser)
 
 ACCESS_ENTRIES (Section)
 
 ACCESS_ENTRIES (Semaphore)
 
 ACCESS_ENTRIES (Service)
 
 ACCESS_ENTRIES (Session)
 
 ACCESS_ENTRIES (SymbolicLink)
 
 ACCESS_ENTRIES (Thread)
 
 ACCESS_ENTRIES (Thread60)
 
 ACCESS_ENTRIES (Timer)
 
 ACCESS_ENTRIES (TmEn)
 
 ACCESS_ENTRIES (TmRm)
 
 ACCESS_ENTRIES (TmTm)
 
 ACCESS_ENTRIES (TmTx)
 
 ACCESS_ENTRIES (Token)
 
 ACCESS_ENTRIES (TpWorkerFactory)
 
 ACCESS_ENTRIES (WindowStation)
 
 ACCESS_ENTRIES (WmiGuid)
 
BOOLEAN PhGetAccessEntries (_In_ PWSTR Type, _Out_ PPH_ACCESS_ENTRY *AccessEntries, _Out_ PULONG NumberOfAccessEntries)
 Gets access entries for an object type.
 
PPH_STRING PhGetAccessString (_In_ ACCESS_MASK Access, _In_ PPH_ACCESS_ENTRY AccessEntries, _In_ ULONG NumberOfAccessEntries)
 Creates a string representation of an access mask.
 

Macro Definition Documentation

ACCESS_ENTRIES (   Type)    static PH_ACCESS_ENTRY Ph##Type##AccessEntries[] =

Definition at line 26 of file secdata.c.

#define ACCESS_ENTRY (   Type,
  HasSynchronize 
)    { L#Type, Ph##Type##AccessEntries, sizeof(Ph##Type##AccessEntries), HasSynchronize }

Definition at line 27 of file secdata.c.

Typedef Documentation

typedef struct _PH_SPECIFIC_TYPE PH_SPECIFIC_TYPE
typedef struct _PH_SPECIFIC_TYPE * PPH_SPECIFIC_TYPE

Function Documentation

ACCESS_ENTRIES ( Standard  )

Definition at line 38 of file secdata.c.

ACCESS_ENTRIES ( AlpcPort  )

Definition at line 47 of file secdata.c.

ACCESS_ENTRIES ( DebugObject  )

Definition at line 53 of file secdata.c.

ACCESS_ENTRIES ( Desktop  )

Definition at line 62 of file secdata.c.

ACCESS_ENTRIES ( Directory  )

Definition at line 79 of file secdata.c.

ACCESS_ENTRIES ( Event  )

Definition at line 88 of file secdata.c.

ACCESS_ENTRIES ( EventPair  )

Definition at line 95 of file secdata.c.

ACCESS_ENTRIES ( File  )

Definition at line 100 of file secdata.c.

ACCESS_ENTRIES ( FilterConnectionPort  )

Definition at line 117 of file secdata.c.

ACCESS_ENTRIES ( IoCompletion  )

Definition at line 123 of file secdata.c.

ACCESS_ENTRIES ( Job  )

Definition at line 130 of file secdata.c.

ACCESS_ENTRIES ( Key  )

Definition at line 140 of file secdata.c.

ACCESS_ENTRIES ( KeyedEvent  )

Definition at line 154 of file secdata.c.

ACCESS_ENTRIES ( LsaAccount  )

Definition at line 161 of file secdata.c.

ACCESS_ENTRIES ( LsaPolicy  )

Definition at line 173 of file secdata.c.

ACCESS_ENTRIES ( LsaSecret  )

Definition at line 194 of file secdata.c.

ACCESS_ENTRIES ( LsaTrusted  )

Definition at line 204 of file secdata.c.

ACCESS_ENTRIES ( Mutant  )

Definition at line 219 of file secdata.c.

ACCESS_ENTRIES ( Process  )

Definition at line 225 of file secdata.c.

ACCESS_ENTRIES ( Process60  )

Definition at line 242 of file secdata.c.

ACCESS_ENTRIES ( Profile  )

Definition at line 260 of file secdata.c.

ACCESS_ENTRIES ( SamAlias  )

Definition at line 266 of file secdata.c.

ACCESS_ENTRIES ( SamDomain  )

Definition at line 279 of file secdata.c.

ACCESS_ENTRIES ( SamGroup  )

Definition at line 298 of file secdata.c.

ACCESS_ENTRIES ( SamServer  )

Definition at line 311 of file secdata.c.

ACCESS_ENTRIES ( SamUser  )

Definition at line 325 of file secdata.c.

ACCESS_ENTRIES ( Section  )

Definition at line 344 of file secdata.c.

ACCESS_ENTRIES ( Semaphore  )

Definition at line 355 of file secdata.c.

ACCESS_ENTRIES ( Service  )

Definition at line 362 of file secdata.c.

ACCESS_ENTRIES ( Session  )

Definition at line 376 of file secdata.c.

ACCESS_ENTRIES ( SymbolicLink  )

Definition at line 383 of file secdata.c.

ACCESS_ENTRIES ( Thread  )

Definition at line 389 of file secdata.c.

ACCESS_ENTRIES ( Thread60  )

Definition at line 404 of file secdata.c.

ACCESS_ENTRIES ( Timer  )

Definition at line 421 of file secdata.c.

ACCESS_ENTRIES ( TmEn  )

Definition at line 428 of file secdata.c.

ACCESS_ENTRIES ( TmRm  )

Definition at line 441 of file secdata.c.

ACCESS_ENTRIES ( TmTm  )

Definition at line 456 of file secdata.c.

ACCESS_ENTRIES ( TmTx  )

Definition at line 470 of file secdata.c.

ACCESS_ENTRIES ( Token  )

Definition at line 484 of file secdata.c.

ACCESS_ENTRIES ( TpWorkerFactory  )

Definition at line 501 of file secdata.c.

ACCESS_ENTRIES ( WindowStation  )

Definition at line 518 of file secdata.c.

ACCESS_ENTRIES ( WmiGuid  )

Definition at line 535 of file secdata.c.

BOOLEAN PhGetAccessEntries ( _In_ PWSTR  Type,
_Out_ PPH_ACCESS_ENTRY AccessEntries,
_Out_ PULONG  NumberOfAccessEntries 
)

Gets access entries for an object type.

Parameters
TypeThe name of the object type.
AccessEntriesA variable which receives an array of access entry structures. You must free the buffer with PhFree() when you no longer need it.
NumberOfAccessEntriesA variable which receives the number of access entry structures returned in AccessEntries.

Definition at line 612 of file secdata.c.

PPH_STRING PhGetAccessString ( _In_ ACCESS_MASK  Access,
_In_ PPH_ACCESS_ENTRY  AccessEntries,
_In_ ULONG  NumberOfAccessEntries 
)

Creates a string representation of an access mask.

Parameters
AccessThe access mask.
AccessEntriesAn array of access entry structures. You can call PhGetAccessEntries() to retrieve the access entry structures for a standard object type.
NumberOfAccessEntriesThe number of elements in AccessEntries.
Returns
The string representation of Access.

Definition at line 723 of file secdata.c.