|
Process Hacker
|
Go to the source code of this file.
Data Structures | |
| struct | _PH_ACCESS_ENTRY |
| struct | _PH_STD_OBJECT_SECURITY |
Typedefs | |
| typedef struct _PH_ACCESS_ENTRY | PH_ACCESS_ENTRY |
| typedef struct _PH_ACCESS_ENTRY * | PPH_ACCESS_ENTRY |
| typedef struct _PH_STD_OBJECT_SECURITY | PH_STD_OBJECT_SECURITY |
| typedef struct _PH_STD_OBJECT_SECURITY * | PPH_STD_OBJECT_SECURITY |
Functions | |
| PHLIBAPI HPROPSHEETPAGE NTAPI | PhCreateSecurityPage (_In_ PWSTR ObjectName, _In_ PPH_GET_OBJECT_SECURITY GetObjectSecurity, _In_ PPH_SET_OBJECT_SECURITY SetObjectSecurity, _In_opt_ PVOID Context, _In_ PPH_ACCESS_ENTRY AccessEntries, _In_ ULONG NumberOfAccessEntries) |
| Creates a security editor page. | |
| PHLIBAPI VOID NTAPI | PhEditSecurity (_In_ HWND hWnd, _In_ PWSTR ObjectName, _In_ PPH_GET_OBJECT_SECURITY GetObjectSecurity, _In_ PPH_SET_OBJECT_SECURITY SetObjectSecurity, _In_opt_ PVOID Context, _In_ PPH_ACCESS_ENTRY AccessEntries, _In_ ULONG NumberOfAccessEntries) |
| Displays a security editor dialog. | |
| FORCEINLINE ACCESS_MASK | PhGetAccessForGetSecurity (_In_ SECURITY_INFORMATION SecurityInformation) |
| FORCEINLINE ACCESS_MASK | PhGetAccessForSetSecurity (_In_ SECURITY_INFORMATION SecurityInformation) |
| PHLIBAPI _Callback_ NTSTATUS NTAPI | PhStdGetObjectSecurity (_Out_ PSECURITY_DESCRIPTOR *SecurityDescriptor, _In_ SECURITY_INFORMATION SecurityInformation, _In_opt_ PVOID Context) |
| Retrieves the security descriptor of an object. | |
| PHLIBAPI _Callback_ NTSTATUS NTAPI | PhStdSetObjectSecurity (_In_ PSECURITY_DESCRIPTOR SecurityDescriptor, _In_ SECURITY_INFORMATION SecurityInformation, _In_opt_ PVOID Context) |
| Modifies the security descriptor of an object. | |
| PHLIBAPI NTSTATUS NTAPI | PhGetSeObjectSecurity (_In_ HANDLE Handle, _In_ ULONG ObjectType, _In_ SECURITY_INFORMATION SecurityInformation, _Out_ PSECURITY_DESCRIPTOR *SecurityDescriptor) |
| PHLIBAPI NTSTATUS NTAPI | PhSetSeObjectSecurity (_In_ HANDLE Handle, _In_ ULONG ObjectType, _In_ SECURITY_INFORMATION SecurityInformation, _In_ PSECURITY_DESCRIPTOR SecurityDescriptor) |
| PHLIBAPI BOOLEAN NTAPI | PhGetAccessEntries (_In_ PWSTR Type, _Out_ PPH_ACCESS_ENTRY *AccessEntries, _Out_ PULONG NumberOfAccessEntries) |
| Gets access entries for an object type. | |
| PHLIBAPI PPH_STRING NTAPI | PhGetAccessString (_In_ ACCESS_MASK Access, _In_ PPH_ACCESS_ENTRY AccessEntries, _In_ ULONG NumberOfAccessEntries) |
| Creates a string representation of an access mask. | |
| typedef struct _PH_ACCESS_ENTRY PH_ACCESS_ENTRY |
| typedef struct _PH_STD_OBJECT_SECURITY PH_STD_OBJECT_SECURITY |
| typedef struct _PH_ACCESS_ENTRY * PPH_ACCESS_ENTRY |
| typedef struct _PH_STD_OBJECT_SECURITY * PPH_STD_OBJECT_SECURITY |
| PHLIBAPI HPROPSHEETPAGE NTAPI PhCreateSecurityPage | ( | _In_ PWSTR | ObjectName, |
| _In_ PPH_GET_OBJECT_SECURITY | GetObjectSecurity, | ||
| _In_ PPH_SET_OBJECT_SECURITY | SetObjectSecurity, | ||
| _In_opt_ PVOID | Context, | ||
| _In_ PPH_ACCESS_ENTRY | AccessEntries, | ||
| _In_ ULONG | NumberOfAccessEntries | ||
| ) |
Creates a security editor page.
| ObjectName | The name of the object. |
| GetObjectSecurity | A callback function executed to retrieve the security descriptor of the object. |
| SetObjectSecurity | A callback function executed to modify the security descriptor of the object. |
| Context | A user-defined value to pass to the callback functions. |
| AccessEntries | An array of access mask descriptors. |
| NumberOfAccessEntries | The number of elements in AccessEntries. |
| PHLIBAPI VOID NTAPI PhEditSecurity | ( | _In_ HWND | hWnd, |
| _In_ PWSTR | ObjectName, | ||
| _In_ PPH_GET_OBJECT_SECURITY | GetObjectSecurity, | ||
| _In_ PPH_SET_OBJECT_SECURITY | SetObjectSecurity, | ||
| _In_opt_ PVOID | Context, | ||
| _In_ PPH_ACCESS_ENTRY | AccessEntries, | ||
| _In_ ULONG | NumberOfAccessEntries | ||
| ) |
Displays a security editor dialog.
| hWnd | The parent window of the dialog. |
| ObjectName | The name of the object. |
| GetObjectSecurity | A callback function executed to retrieve the security descriptor of the object. |
| SetObjectSecurity | A callback function executed to modify the security descriptor of the object. |
| Context | A user-defined value to pass to the callback functions. |
| AccessEntries | An array of access mask descriptors. |
| NumberOfAccessEntries | The number of elements in AccessEntries. |
| PHLIBAPI BOOLEAN NTAPI PhGetAccessEntries | ( | _In_ PWSTR | Type, |
| _Out_ PPH_ACCESS_ENTRY * | AccessEntries, | ||
| _Out_ PULONG | NumberOfAccessEntries | ||
| ) |
Gets access entries for an object type.
| Type | The name of the object type. |
| AccessEntries | A variable which receives an array of access entry structures. You must free the buffer with PhFree() when you no longer need it. |
| NumberOfAccessEntries | A variable which receives the number of access entry structures returned in AccessEntries. |
| FORCEINLINE ACCESS_MASK PhGetAccessForGetSecurity | ( | _In_ SECURITY_INFORMATION | SecurityInformation | ) |
| FORCEINLINE ACCESS_MASK PhGetAccessForSetSecurity | ( | _In_ SECURITY_INFORMATION | SecurityInformation | ) |
| PHLIBAPI PPH_STRING NTAPI PhGetAccessString | ( | _In_ ACCESS_MASK | Access, |
| _In_ PPH_ACCESS_ENTRY | AccessEntries, | ||
| _In_ ULONG | NumberOfAccessEntries | ||
| ) |
Creates a string representation of an access mask.
| Access | The access mask. |
| AccessEntries | An array of access entry structures. You can call PhGetAccessEntries() to retrieve the access entry structures for a standard object type. |
| NumberOfAccessEntries | The number of elements in AccessEntries. |
| PHLIBAPI NTSTATUS NTAPI PhGetSeObjectSecurity | ( | _In_ HANDLE | Handle, |
| _In_ ULONG | ObjectType, | ||
| _In_ SECURITY_INFORMATION | SecurityInformation, | ||
| _Out_ PSECURITY_DESCRIPTOR * | SecurityDescriptor | ||
| ) |
| PHLIBAPI NTSTATUS NTAPI PhSetSeObjectSecurity | ( | _In_ HANDLE | Handle, |
| _In_ ULONG | ObjectType, | ||
| _In_ SECURITY_INFORMATION | SecurityInformation, | ||
| _In_ PSECURITY_DESCRIPTOR | SecurityDescriptor | ||
| ) |
| PHLIBAPI _Callback_ NTSTATUS NTAPI PhStdGetObjectSecurity | ( | _Out_ PSECURITY_DESCRIPTOR * | SecurityDescriptor, |
| _In_ SECURITY_INFORMATION | SecurityInformation, | ||
| _In_opt_ PVOID | Context | ||
| ) |
Retrieves the security descriptor of an object.
| SecurityDescriptor | A variable which receives a pointer to the security descriptor of the object. The security descriptor must be freed using PhFree() when no longer needed. |
| SecurityInformation | The security information to retrieve. |
| Context | A pointer to a PH_STD_OBJECT_SECURITY structure describing the object. |
| PHLIBAPI _Callback_ NTSTATUS NTAPI PhStdSetObjectSecurity | ( | _In_ PSECURITY_DESCRIPTOR | SecurityDescriptor, |
| _In_ SECURITY_INFORMATION | SecurityInformation, | ||
| _In_opt_ PVOID | Context | ||
| ) |
Modifies the security descriptor of an object.
| SecurityDescriptor | A security descriptor containing security information to set. |
| SecurityInformation | The security information to retrieve. |
| Context | A pointer to a PH_STD_OBJECT_SECURITY structure describing the object. |