| Modifier and Type | Field and Description |
|---|---|
| public static final NtDll |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: NtQuerySecurityObject returns STATUS_SUCCESS or an appropriate error status.[in]
Handle for the object whose security descriptor is to be queried. This handle must have the access specified
in the Meaning column of the table shown in the description of the SecurityInformation parameter. handle,[in]
Pointer to a SECURITY_INFORMATION value specifying the information to be queried. Can be a combination of
one or more of the following:
DACL_SECURITY_INFORMATION
Indicates the discretionary access control list (DACL) of the object is to be set. Requires WRITE_DAC access.
GROUP_SECURITY_INFORMATION
Indicates the primary group identifier of the object is to be set. Requires WRITE_OWNER access.
OWNER_SECURITY_INFORMATION
Indicates the owner identifier of the object is to be set. Requires WRITE_OWNER access.
SACL_SECURITY_INFORMATION
Indicates the system ACL (SACL) of the object is to be set. Requires ACCESS_SYSTEM_SECURITY access. SecurityInformation, Pointer [out]
Pointer to the security descriptor to be set for the object. SecurityDescriptor, int [in]
Size, in bytes, of the buffer pointed to by SecurityDescriptor. Length, IntByReference [in]
Pointer to a caller-allocated variable that receives the number of bytes required to store the copied security descriptor. LengthNeeded)The NtQuerySecurityObject routine retrieves a copy of an object's security descriptor. |
| public int | Returns: NtSetSecurityObject returns STATUS_SUCCESS or an appropriate error status.[in]
Handle for the object whose security state is to be set. This handle must have the access
specified in the Meaning column of the table shown in the description of the
SecurityInformation parameter. handle,[in]
SECURITY_INFORMATION value specifying the information to be set. Can be a combination of
one or more of the following:
DACL_SECURITY_INFORMATION
Indicates the discretionary access control list (DACL) of the object is to be set. Requires WRITE_DAC access.
GROUP_SECURITY_INFORMATION
Indicates the primary group identifier of the object is to be set. Requires WRITE_OWNER access.
OWNER_SECURITY_INFORMATION
Indicates the owner identifier of the object is to be set. Requires WRITE_OWNER access.
SACL_SECURITY_INFORMATION
Indicates the system ACL (SACL) of the object is to be set. Requires ACCESS_SYSTEM_SECURITY access. SecurityInformation, Pointer [in]
Pointer to the security descriptor to be set for the object. pSecurityDescriptor)The NtSetSecurityObject routine sets an object's security state. |
| public int | Returns: The function returns the corresponding system error code. ERROR_MR_MID_NOT_FOUND is returned when the specified NTSTATUS code does not have a corresponding system error code.[in]
The NTSTATUS code to be converted. Status)Converts the specified NTSTATUS code to its equivalent system error code. |
| public int | Returns: ZwQueryKey returns STATUS_SUCCESS on success, or the appropriate error code on failure.Handle to the registry key to obtain information about. This handle is created by
a successful call to ZwCreateKey or ZwOpenKey. KeyHandle,Specifies a KEY_INFORMATION_CLASS value that determines the type of information
returned in the KeyInformation buffer. KeyInformationClass, Structure Pointer to a caller-allocated buffer that receives the requested information. KeyInformation, int Specifies the size, in bytes, of the KeyInformation buffer. Length, IntByReference Pointer to a variable that receives the size, in bytes, of the requested key
information. If ZwQueryKey returns STATUS_SUCCESS, the variable contains the amount
of data returned. If ZwQueryKey returns STATUS_BUFFER_OVERFLOW or
STATUS_BUFFER_TOO_SMALL, you can use the value of the variable to determine the
required buffer size. ResultLength)The ZwQueryKey routine provides information about the class of a registry key, and the number and sizes of its subkeys. |
| INSTANCE | back to summary |
|---|---|
| public static final NtDll INSTANCE | |
| NtQuerySecurityObject | back to summary |
|---|---|
| public int NtQuerySecurityObject(WinNT. The NtQuerySecurityObject routine retrieves a copy of an object's security descriptor.
| |
| NtSetSecurityObject | back to summary |
|---|---|
| public int NtSetSecurityObject(WinNT. The NtSetSecurityObject routine sets an object's security state.
| |
| RtlNtStatusToDosError | back to summary |
|---|---|
| public int RtlNtStatusToDosError(int Status) Converts the specified NTSTATUS code to its equivalent system error code.
| |
| ZwQueryKey | back to summary |
|---|---|
| public int ZwQueryKey(WinNT. The ZwQueryKey routine provides information about the class of a registry key, and the number and sizes of its subkeys.
| |