VirtualBox

Changeset 52364 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Aug 13, 2014 6:09:41 AM (10 years ago)
Author:
vboxsync
Message:

nt.h: NtOpenKey, NtQuerySecurityObject, NtQueryValueKey, RtlEqualSid, RtlExpandEnvironmentStrings_U.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nt/nt.h

    r52354 r52364  
    4141# define NtQueryInformationThread       ZwQueryInformationThread
    4242# define NtQuerySystemInformation       ZwQuerySystemInformation
     43# define NtQuerySecurityObject          ZwQuerySecurityObject
    4344# define NtClose                        ZwClose
    4445# define NtCreateFile                   ZwCreateFile
     
    218219/** Similar to INVALID_HANDLE_VALUE in the Windows environment. */
    219220#define RTNT_INVALID_HANDLE_VALUE         ( (HANDLE)~(uintptr_t)0 )
     221/** Constant UNICODE_STRING initializer. */
     222#define RTNT_CONSTANT_UNISTR(a_String)   { sizeof(a_String) - sizeof(WCHAR), sizeof(a_String), (WCHAR *)a_String }
    220223/** @}  */
    221224
     
    13741377NTSYSAPI NTSTATUS NTAPI RtlCreateAcl(PACL, ULONG, ULONG);
    13751378NTSYSAPI NTSTATUS NTAPI RtlCreateSecurityDescriptor(PSECURITY_DESCRIPTOR, ULONG);
     1379NTSYSAPI BOOLEAN  NTAPI RtlEqualSid(PSID, PSID);
    13761380NTSYSAPI NTSTATUS NTAPI RtlGetVersion(PRTL_OSVERSIONINFOW);
    13771381NTSYSAPI NTSTATUS NTAPI RtlInitializeSid(PSID, PSID_IDENTIFIER_AUTHORITY, UCHAR);
     
    17111715NTSYSAPI NTSTATUS NTAPI NtWaitForMultipleObjects(ULONG, PHANDLE, OBJECT_WAIT_TYPE, BOOLEAN, PLARGE_INTEGER);
    17121716
     1717NTSYSAPI NTSTATUS NTAPI NtQuerySecurityObject(HANDLE, ULONG, PSECURITY_DESCRIPTOR, ULONG, PULONG);
     1718
     1719
     1720#ifdef IPRT_NT_USE_WINTERNL
     1721/** For NtQueryValueKey. */
     1722typedef enum _KEY_VALUE_INFORMATION_CLASS
     1723{
     1724    KeyValueBasicInformation = 0,
     1725    KeyValueFullInformation,
     1726    KeyValuePartialInformation,
     1727    KeyValueFullInformationAlign64,
     1728    KeyValuePartialInformationAlign64
     1729} KEY_VALUE_INFORMATION_CLASS;
     1730
     1731/** KeyValuePartialInformation and KeyValuePartialInformationAlign64 struct. */
     1732typedef struct _KEY_VALUE_PARTIAL_INFORMATION
     1733{
     1734    ULONG TitleIndex;
     1735    ULONG Type;
     1736    ULONG DataLength;
     1737    UCHAR Data[1];
     1738} KEY_VALUE_PARTIAL_INFORMATION;
     1739typedef KEY_VALUE_PARTIAL_INFORMATION *PKEY_VALUE_PARTIAL_INFORMATION;
     1740#endif
     1741NTSYSAPI NTSTATUS NTAPI NtOpenKey(PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES);
     1742NTSYSAPI NTSTATUS NTAPI NtQueryValueKey(HANDLE, PUNICODE_STRING, KEY_VALUE_INFORMATION_CLASS, PVOID, ULONG, PULONG);
     1743
    17131744
    17141745NTSYSAPI NTSTATUS NTAPI RtlAddAccessDeniedAce(PACL, ULONG, ULONG, PSID);
     
    17911822                                            PFNRT, PVOID, PHANDLE, PCLIENT_ID);
    17921823
    1793 
    17941824RT_C_DECLS_END
    17951825/** @} */
     
    18401870#endif
    18411871NTSYSAPI VOID NTAPI     LdrInitializeThunk(PVOID, PVOID, PVOID);
     1872NTSYSAPI NTSTATUS NTAPI RtlExpandEnvironmentStrings_U(PVOID, PUNICODE_STRING, PUNICODE_STRING, PULONG);
    18421873
    18431874RT_C_DECLS_END
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette