Cygwin: drop all usages of NTAPI
and drop unused prototypes from ntdll.h. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
b28edc7b86
commit
35c5017438
|
@ -1289,7 +1289,7 @@ typedef struct _IO_STATUS_BLOCK
|
||||||
ULONG_PTR Information;
|
ULONG_PTR Information;
|
||||||
} IO_STATUS_BLOCK, *PIO_STATUS_BLOCK;
|
} IO_STATUS_BLOCK, *PIO_STATUS_BLOCK;
|
||||||
|
|
||||||
typedef VOID NTAPI (*PIO_APC_ROUTINE)(PVOID, PIO_STATUS_BLOCK, ULONG);
|
typedef VOID (*PIO_APC_ROUTINE)(PVOID, PIO_STATUS_BLOCK, ULONG);
|
||||||
|
|
||||||
typedef struct _EVENT_BASIC_INFORMATION
|
typedef struct _EVENT_BASIC_INFORMATION
|
||||||
{
|
{
|
||||||
|
@ -1402,274 +1402,214 @@ static volatile KUSER_SHARED_DATA &SharedUserData
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
NTSTATUS NTAPI NtAccessCheck (PSECURITY_DESCRIPTOR, HANDLE, ACCESS_MASK,
|
NTSTATUS NtAccessCheck (PSECURITY_DESCRIPTOR, HANDLE, ACCESS_MASK,
|
||||||
PGENERIC_MAPPING, PPRIVILEGE_SET, PULONG,
|
PGENERIC_MAPPING, PPRIVILEGE_SET, PULONG,
|
||||||
PACCESS_MASK, PNTSTATUS);
|
PACCESS_MASK, PNTSTATUS);
|
||||||
NTSTATUS NTAPI NtAdjustPrivilegesToken (HANDLE, BOOLEAN, PTOKEN_PRIVILEGES,
|
NTSTATUS NtAdjustPrivilegesToken (HANDLE, BOOLEAN, PTOKEN_PRIVILEGES, ULONG,
|
||||||
ULONG, PTOKEN_PRIVILEGES, PULONG);
|
PTOKEN_PRIVILEGES, PULONG);
|
||||||
NTSTATUS NTAPI NtAllocateLocallyUniqueId (PLUID);
|
NTSTATUS NtAllocateLocallyUniqueId (PLUID);
|
||||||
NTSTATUS NTAPI NtAllocateUuids (PLARGE_INTEGER, PULONG, PULONG, PUCHAR);
|
NTSTATUS NtAssignProcessToJobObject (HANDLE, HANDLE);
|
||||||
NTSTATUS NTAPI NtAssignProcessToJobObject (HANDLE, HANDLE);
|
NTSTATUS NtCancelTimer (HANDLE, PBOOLEAN);
|
||||||
NTSTATUS NTAPI NtCancelTimer (HANDLE, PBOOLEAN);
|
NTSTATUS NtClose (HANDLE);
|
||||||
NTSTATUS NTAPI NtClose (HANDLE);
|
NTSTATUS NtCommitTransaction (HANDLE, BOOLEAN);
|
||||||
NTSTATUS NTAPI NtCommitTransaction (HANDLE, BOOLEAN);
|
NTSTATUS NtCreateDirectoryObject (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES);
|
||||||
NTSTATUS NTAPI NtContinue (PCONTEXT, BOOLEAN);
|
NTSTATUS NtCreateEvent (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES, EVENT_TYPE,
|
||||||
NTSTATUS NTAPI NtCreateDirectoryObject (PHANDLE, ACCESS_MASK,
|
|
||||||
POBJECT_ATTRIBUTES);
|
|
||||||
NTSTATUS NTAPI NtCreateEvent (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
|
|
||||||
EVENT_TYPE, BOOLEAN);
|
|
||||||
NTSTATUS NTAPI NtCreateFile (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
|
|
||||||
PIO_STATUS_BLOCK, PLARGE_INTEGER, ULONG, ULONG,
|
|
||||||
ULONG, ULONG, PVOID, ULONG);
|
|
||||||
NTSTATUS NTAPI NtCreateJobObject (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES);
|
|
||||||
NTSTATUS NTAPI NtCreateKey (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES, ULONG,
|
|
||||||
PUNICODE_STRING, ULONG, PULONG);
|
|
||||||
NTSTATUS NTAPI NtCreateMailslotFile(PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
|
|
||||||
PIO_STATUS_BLOCK, ULONG, ULONG, ULONG,
|
|
||||||
PLARGE_INTEGER);
|
|
||||||
NTSTATUS NTAPI NtCreateMutant (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
|
|
||||||
BOOLEAN);
|
BOOLEAN);
|
||||||
NTSTATUS NTAPI NtCreateNamedPipeFile (PHANDLE, ACCESS_MASK,
|
NTSTATUS NtCreateFile (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
|
||||||
POBJECT_ATTRIBUTES, PIO_STATUS_BLOCK,
|
PIO_STATUS_BLOCK, PLARGE_INTEGER, ULONG, ULONG, ULONG,
|
||||||
|
ULONG, PVOID, ULONG);
|
||||||
|
NTSTATUS NtCreateJobObject (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES);
|
||||||
|
NTSTATUS NtCreateKey (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES, ULONG,
|
||||||
|
PUNICODE_STRING, ULONG, PULONG);
|
||||||
|
NTSTATUS NtCreateMutant (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES, BOOLEAN);
|
||||||
|
NTSTATUS NtCreateNamedPipeFile (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
|
||||||
|
PIO_STATUS_BLOCK, ULONG, ULONG, ULONG, ULONG,
|
||||||
ULONG, ULONG, ULONG, ULONG, ULONG,
|
ULONG, ULONG, ULONG, ULONG, ULONG,
|
||||||
ULONG, ULONG, ULONG, ULONG,
|
|
||||||
PLARGE_INTEGER);
|
PLARGE_INTEGER);
|
||||||
NTSTATUS NTAPI NtCreateSection (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
|
NTSTATUS NtCreateSection (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
|
||||||
PLARGE_INTEGER, ULONG, ULONG, HANDLE);
|
PLARGE_INTEGER, ULONG, ULONG, HANDLE);
|
||||||
NTSTATUS NTAPI NtCreateSemaphore (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
|
NTSTATUS NtCreateSemaphore (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES, LONG,
|
||||||
LONG, LONG);
|
LONG);
|
||||||
NTSTATUS NTAPI NtCreateSymbolicLinkObject (PHANDLE, ACCESS_MASK,
|
NTSTATUS NtCreateSymbolicLinkObject (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
|
||||||
POBJECT_ATTRIBUTES,
|
|
||||||
PUNICODE_STRING);
|
PUNICODE_STRING);
|
||||||
NTSTATUS NTAPI NtCreateTimer (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
|
NTSTATUS NtCreateTimer (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES, TIMER_TYPE);
|
||||||
TIMER_TYPE);
|
NTSTATUS NtCreateTransaction (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
|
||||||
NTSTATUS NTAPI NtCreateToken (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
|
|
||||||
TOKEN_TYPE, PLUID, PLARGE_INTEGER, PTOKEN_USER,
|
|
||||||
PTOKEN_GROUPS, PTOKEN_PRIVILEGES, PTOKEN_OWNER,
|
|
||||||
PTOKEN_PRIMARY_GROUP, PTOKEN_DEFAULT_DACL,
|
|
||||||
PTOKEN_SOURCE);
|
|
||||||
NTSTATUS NTAPI NtCreateTransaction (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
|
|
||||||
LPGUID, HANDLE, ULONG, ULONG, ULONG,
|
LPGUID, HANDLE, ULONG, ULONG, ULONG,
|
||||||
PLARGE_INTEGER, PUNICODE_STRING);
|
PLARGE_INTEGER, PUNICODE_STRING);
|
||||||
NTSTATUS NTAPI NtDuplicateToken (HANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
|
NTSTATUS NtDuplicateToken (HANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES, BOOLEAN,
|
||||||
BOOLEAN, TOKEN_TYPE, PHANDLE);
|
TOKEN_TYPE, PHANDLE);
|
||||||
NTSTATUS NTAPI NtFsControlFile (HANDLE, HANDLE, PIO_APC_ROUTINE, PVOID,
|
NTSTATUS NtFsControlFile (HANDLE, HANDLE, PIO_APC_ROUTINE, PVOID,
|
||||||
PIO_STATUS_BLOCK, ULONG, PVOID, ULONG,
|
PIO_STATUS_BLOCK, ULONG, PVOID, ULONG, PVOID,
|
||||||
PVOID, ULONG);
|
ULONG);
|
||||||
NTSTATUS NTAPI NtFlushBuffersFile (HANDLE, PIO_STATUS_BLOCK);
|
NTSTATUS NtFlushBuffersFile (HANDLE, PIO_STATUS_BLOCK);
|
||||||
NTSTATUS NTAPI NtLoadKey (POBJECT_ATTRIBUTES, POBJECT_ATTRIBUTES);
|
NTSTATUS NtLockFile (HANDLE, HANDLE, PIO_APC_ROUTINE, PVOID, PIO_STATUS_BLOCK,
|
||||||
NTSTATUS NTAPI NtLockFile (HANDLE, HANDLE, PIO_APC_ROUTINE, PVOID,
|
PLARGE_INTEGER, PLARGE_INTEGER, ULONG, BOOLEAN, BOOLEAN);
|
||||||
PIO_STATUS_BLOCK, PLARGE_INTEGER, PLARGE_INTEGER,
|
NTSTATUS NtLockVirtualMemory (HANDLE, PVOID *, PSIZE_T, ULONG);
|
||||||
ULONG, BOOLEAN, BOOLEAN);
|
NTSTATUS NtMapViewOfSection (HANDLE, HANDLE, PVOID *, ULONG_PTR, SIZE_T,
|
||||||
NTSTATUS NTAPI NtLockVirtualMemory (HANDLE, PVOID *, PSIZE_T, ULONG);
|
PLARGE_INTEGER, PSIZE_T, SECTION_INHERIT, ULONG,
|
||||||
NTSTATUS NTAPI NtMapViewOfSection (HANDLE, HANDLE, PVOID *, ULONG_PTR, SIZE_T,
|
ULONG);
|
||||||
PLARGE_INTEGER, PSIZE_T, SECTION_INHERIT,
|
NTSTATUS NtMapViewOfSectionEx (HANDLE, HANDLE, PVOID *, PLARGE_INTEGER,
|
||||||
ULONG, ULONG);
|
PSIZE_T, ULONG, ULONG, PMEM_EXTENDED_PARAMETER,
|
||||||
NTSTATUS NTAPI NtMapViewOfSectionEx (HANDLE, HANDLE, PVOID *, PLARGE_INTEGER,
|
ULONG);
|
||||||
PSIZE_T, ULONG, ULONG,
|
NTSTATUS NtOpenDirectoryObject (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES);
|
||||||
PMEM_EXTENDED_PARAMETER, ULONG);
|
NTSTATUS NtOpenEvent (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES);
|
||||||
NTSTATUS NTAPI NtNotifyChangeDirectoryFile (HANDLE, HANDLE, PIO_APC_ROUTINE,
|
NTSTATUS NtOpenFile (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
|
||||||
PVOID, PIO_STATUS_BLOCK,
|
|
||||||
PFILE_NOTIFY_INFORMATION, ULONG,
|
|
||||||
ULONG, BOOLEAN);
|
|
||||||
NTSTATUS NTAPI NtOpenDirectoryObject (PHANDLE, ACCESS_MASK,
|
|
||||||
POBJECT_ATTRIBUTES);
|
|
||||||
NTSTATUS NTAPI NtOpenEvent (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES);
|
|
||||||
NTSTATUS NTAPI NtOpenFile (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
|
|
||||||
PIO_STATUS_BLOCK, ULONG, ULONG);
|
PIO_STATUS_BLOCK, ULONG, ULONG);
|
||||||
NTSTATUS NTAPI NtOpenJobObject (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES);
|
NTSTATUS NtOpenJobObject (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES);
|
||||||
NTSTATUS NTAPI NtOpenKey (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES);
|
NTSTATUS NtOpenKey (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES);
|
||||||
NTSTATUS NTAPI NtOpenMutant (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES);
|
NTSTATUS NtOpenMutant (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES);
|
||||||
NTSTATUS NTAPI NtOpenProcessToken (HANDLE, ACCESS_MASK, PHANDLE);
|
NTSTATUS NtOpenProcessToken (HANDLE, ACCESS_MASK, PHANDLE);
|
||||||
NTSTATUS NTAPI NtOpenThreadToken (HANDLE, ACCESS_MASK, BOOLEAN, PHANDLE);
|
NTSTATUS NtOpenThreadToken (HANDLE, ACCESS_MASK, BOOLEAN, PHANDLE);
|
||||||
NTSTATUS NTAPI NtOpenSection (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES);
|
NTSTATUS NtOpenSection (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES);
|
||||||
NTSTATUS NTAPI NtOpenSemaphore (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES);
|
NTSTATUS NtOpenSemaphore (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES);
|
||||||
NTSTATUS NTAPI NtOpenSymbolicLinkObject (PHANDLE, ACCESS_MASK,
|
NTSTATUS NtOpenSymbolicLinkObject (PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES);
|
||||||
POBJECT_ATTRIBUTES);
|
|
||||||
/* WARNING! Don't rely on the timestamp information returned by
|
/* WARNING! Don't rely on the timestamp information returned by
|
||||||
NtQueryAttributesFile. Only the DOS file attribute info is reliable. */
|
NtQueryAttributesFile. Only the DOS file attribute info is reliable. */
|
||||||
NTSTATUS NTAPI NtPrivilegeCheck (HANDLE, PPRIVILEGE_SET, PBOOLEAN);
|
NTSTATUS NtPrivilegeCheck (HANDLE, PPRIVILEGE_SET, PBOOLEAN);
|
||||||
NTSTATUS NTAPI NtQueryAttributesFile (POBJECT_ATTRIBUTES,
|
NTSTATUS NtQueryAttributesFile (POBJECT_ATTRIBUTES, PFILE_BASIC_INFORMATION);
|
||||||
PFILE_BASIC_INFORMATION);
|
NTSTATUS NtQueryDirectoryFile(HANDLE, HANDLE, PVOID, PVOID, PIO_STATUS_BLOCK,
|
||||||
NTSTATUS NTAPI NtQueryDirectoryFile(HANDLE, HANDLE, PVOID, PVOID,
|
PVOID, ULONG, FILE_INFORMATION_CLASS, BOOLEAN,
|
||||||
PIO_STATUS_BLOCK, PVOID, ULONG,
|
|
||||||
FILE_INFORMATION_CLASS, BOOLEAN,
|
|
||||||
PUNICODE_STRING, BOOLEAN);
|
PUNICODE_STRING, BOOLEAN);
|
||||||
NTSTATUS NTAPI NtQueryDirectoryObject (HANDLE, PVOID, ULONG, BOOLEAN,
|
NTSTATUS NtQueryDirectoryObject (HANDLE, PVOID, ULONG, BOOLEAN, BOOLEAN,
|
||||||
BOOLEAN, PULONG, PULONG);
|
PULONG, PULONG);
|
||||||
NTSTATUS NTAPI NtQueryEaFile (HANDLE, PIO_STATUS_BLOCK, PVOID, ULONG,
|
NTSTATUS NtQueryEaFile (HANDLE, PIO_STATUS_BLOCK, PVOID, ULONG, BOOLEAN,
|
||||||
BOOLEAN, PVOID, ULONG, PULONG, BOOLEAN);
|
PVOID, ULONG, PULONG, BOOLEAN);
|
||||||
NTSTATUS NTAPI NtQueryEvent (HANDLE, EVENT_INFORMATION_CLASS, PVOID, ULONG,
|
NTSTATUS NtQueryEvent (HANDLE, EVENT_INFORMATION_CLASS, PVOID, ULONG, PULONG);
|
||||||
PULONG);
|
NTSTATUS NtQueryInformationFile (HANDLE, PIO_STATUS_BLOCK, PVOID, ULONG,
|
||||||
NTSTATUS NTAPI NtQueryFullAttributesFile (POBJECT_ATTRIBUTES,
|
|
||||||
PFILE_NETWORK_OPEN_INFORMATION);
|
|
||||||
NTSTATUS NTAPI NtQueryInformationFile (HANDLE, PIO_STATUS_BLOCK, PVOID,
|
|
||||||
ULONG, FILE_INFORMATION_CLASS);
|
|
||||||
NTSTATUS NTAPI NtQueryInformationJobObject (HANDLE, JOBOBJECTINFOCLASS,
|
|
||||||
PVOID, ULONG, PULONG);
|
|
||||||
NTSTATUS NTAPI NtQueryInformationProcess (HANDLE, PROCESSINFOCLASS,
|
|
||||||
PVOID, ULONG, PULONG);
|
|
||||||
NTSTATUS NTAPI NtQueryInformationThread (HANDLE, THREADINFOCLASS, PVOID,
|
|
||||||
ULONG, PULONG);
|
|
||||||
NTSTATUS NTAPI NtQueryInformationToken (HANDLE, TOKEN_INFORMATION_CLASS,
|
|
||||||
PVOID, ULONG, PULONG);
|
|
||||||
NTSTATUS NTAPI NtQueryObject (HANDLE, OBJECT_INFORMATION_CLASS, PVOID, ULONG,
|
|
||||||
PULONG);
|
|
||||||
NTSTATUS NTAPI NtQueryQuotaInformationFile (HANDLE, PIO_STATUS_BLOCK, PVOID,
|
|
||||||
ULONG, BOOLEAN, PVOID, ULONG,
|
|
||||||
PSID, BOOLEAN);
|
|
||||||
NTSTATUS NTAPI NtQuerySemaphore (HANDLE, SEMAPHORE_INFORMATION_CLASS,
|
|
||||||
PVOID, ULONG, PULONG);
|
|
||||||
NTSTATUS NTAPI NtQuerySystemInformation (SYSTEM_INFORMATION_CLASS,
|
|
||||||
PVOID, ULONG, PULONG);
|
|
||||||
NTSTATUS NTAPI NtQuerySystemTime (PLARGE_INTEGER);
|
|
||||||
NTSTATUS NTAPI NtQuerySecurityObject (HANDLE, SECURITY_INFORMATION,
|
|
||||||
PSECURITY_DESCRIPTOR, ULONG, PULONG);
|
|
||||||
NTSTATUS NTAPI NtQuerySymbolicLinkObject (HANDLE, PUNICODE_STRING, PULONG);
|
|
||||||
NTSTATUS NTAPI NtQueryTimer (HANDLE, TIMER_INFORMATION_CLASS, PVOID,
|
|
||||||
ULONG, PULONG);
|
|
||||||
NTSTATUS NTAPI NtQueryTimerResolution (PULONG, PULONG, PULONG);
|
|
||||||
NTSTATUS NTAPI NtQueryValueKey (HANDLE, PUNICODE_STRING,
|
|
||||||
KEY_VALUE_INFORMATION_CLASS, PVOID, ULONG,
|
|
||||||
PULONG);
|
|
||||||
NTSTATUS NTAPI NtQueryVirtualMemory (HANDLE, PVOID, MEMORY_INFORMATION_CLASS,
|
|
||||||
PVOID, SIZE_T, PSIZE_T);
|
|
||||||
NTSTATUS NTAPI NtQueryVolumeInformationFile (HANDLE, PIO_STATUS_BLOCK, PVOID,
|
|
||||||
ULONG, FS_INFORMATION_CLASS);
|
|
||||||
NTSTATUS NTAPI NtReadFile (HANDLE, HANDLE, PIO_APC_ROUTINE, PVOID,
|
|
||||||
PIO_STATUS_BLOCK, PVOID, ULONG, PLARGE_INTEGER,
|
|
||||||
PULONG);
|
|
||||||
NTSTATUS NTAPI NtRollbackTransaction (HANDLE, BOOLEAN);
|
|
||||||
NTSTATUS NTAPI NtSetEaFile (HANDLE, PIO_STATUS_BLOCK, PVOID, ULONG);
|
|
||||||
NTSTATUS NTAPI NtSetEvent (HANDLE, PULONG);
|
|
||||||
NTSTATUS NTAPI NtSetInformationFile (HANDLE, PIO_STATUS_BLOCK, PVOID, ULONG,
|
|
||||||
FILE_INFORMATION_CLASS);
|
FILE_INFORMATION_CLASS);
|
||||||
NTSTATUS NTAPI NtSetInformationJobObject (HANDLE, JOBOBJECTINFOCLASS, PVOID,
|
NTSTATUS NtQueryInformationJobObject (HANDLE, JOBOBJECTINFOCLASS, PVOID,
|
||||||
ULONG);
|
ULONG, PULONG);
|
||||||
NTSTATUS NTAPI NtSetInformationThread (HANDLE, THREADINFOCLASS, PVOID, ULONG);
|
NTSTATUS NtQueryInformationProcess (HANDLE, PROCESSINFOCLASS, PVOID, ULONG,
|
||||||
NTSTATUS NTAPI NtSetInformationToken (HANDLE, TOKEN_INFORMATION_CLASS, PVOID,
|
|
||||||
ULONG);
|
|
||||||
NTSTATUS NTAPI NtSetQuotaInformationFile (HANDLE, PIO_STATUS_BLOCK, PVOID,
|
|
||||||
ULONG);
|
|
||||||
NTSTATUS NTAPI NtSetSecurityObject (HANDLE, SECURITY_INFORMATION,
|
|
||||||
PSECURITY_DESCRIPTOR);
|
|
||||||
NTSTATUS NTAPI NtSetTimer (HANDLE, PLARGE_INTEGER, PTIMER_APC_ROUTINE, PVOID,
|
|
||||||
BOOLEAN, LONG, PBOOLEAN);
|
|
||||||
NTSTATUS NTAPI NtSetTimerResolution (ULONG, BOOLEAN, PULONG);
|
|
||||||
NTSTATUS NTAPI NtSetValueKey (HANDLE, PUNICODE_STRING, ULONG, ULONG, PVOID,
|
|
||||||
ULONG);
|
|
||||||
NTSTATUS NTAPI NtSetVolumeInformationFile (HANDLE, PIO_STATUS_BLOCK, PVOID,
|
|
||||||
ULONG, FS_INFORMATION_CLASS);
|
|
||||||
NTSTATUS NTAPI NtUnlockFile (HANDLE, PIO_STATUS_BLOCK, PLARGE_INTEGER,
|
|
||||||
PLARGE_INTEGER, ULONG);
|
|
||||||
NTSTATUS NTAPI NtUnlockVirtualMemory (HANDLE, PVOID *, PSIZE_T, ULONG);
|
|
||||||
NTSTATUS NTAPI NtUnmapViewOfSection (HANDLE, PVOID);
|
|
||||||
NTSTATUS NTAPI NtWaitForSingleObject (HANDLE, BOOLEAN, PLARGE_INTEGER);
|
|
||||||
NTSTATUS NTAPI NtWriteFile (HANDLE, HANDLE, PIO_APC_ROUTINE, PVOID,
|
|
||||||
PIO_STATUS_BLOCK, PVOID, ULONG, PLARGE_INTEGER,
|
|
||||||
PULONG);
|
PULONG);
|
||||||
NTSTATUS NTAPI RtlAbsoluteToSelfRelativeSD (PSECURITY_DESCRIPTOR,
|
NTSTATUS NtQueryInformationThread (HANDLE, THREADINFOCLASS, PVOID, ULONG,
|
||||||
|
PULONG);
|
||||||
|
NTSTATUS NtQueryInformationToken (HANDLE, TOKEN_INFORMATION_CLASS, PVOID,
|
||||||
|
ULONG, PULONG);
|
||||||
|
NTSTATUS NtQueryObject (HANDLE, OBJECT_INFORMATION_CLASS, PVOID, ULONG,
|
||||||
|
PULONG);
|
||||||
|
NTSTATUS NtQueryQuotaInformationFile (HANDLE, PIO_STATUS_BLOCK, PVOID, ULONG,
|
||||||
|
BOOLEAN, PVOID, ULONG, PSID, BOOLEAN);
|
||||||
|
NTSTATUS NtQuerySemaphore (HANDLE, SEMAPHORE_INFORMATION_CLASS, PVOID, ULONG,
|
||||||
|
PULONG);
|
||||||
|
NTSTATUS NtQuerySystemInformation (SYSTEM_INFORMATION_CLASS, PVOID, ULONG,
|
||||||
|
PULONG);
|
||||||
|
NTSTATUS NtQuerySystemTime (PLARGE_INTEGER);
|
||||||
|
NTSTATUS NtQuerySecurityObject (HANDLE, SECURITY_INFORMATION,
|
||||||
|
PSECURITY_DESCRIPTOR, ULONG, PULONG);
|
||||||
|
NTSTATUS NtQuerySymbolicLinkObject (HANDLE, PUNICODE_STRING, PULONG);
|
||||||
|
NTSTATUS NtQueryTimer (HANDLE, TIMER_INFORMATION_CLASS, PVOID, ULONG, PULONG);
|
||||||
|
NTSTATUS NtQueryTimerResolution (PULONG, PULONG, PULONG);
|
||||||
|
NTSTATUS NtQueryValueKey (HANDLE, PUNICODE_STRING,
|
||||||
|
KEY_VALUE_INFORMATION_CLASS, PVOID, ULONG, PULONG);
|
||||||
|
NTSTATUS NtQueryVirtualMemory (HANDLE, PVOID, MEMORY_INFORMATION_CLASS, PVOID,
|
||||||
|
SIZE_T, PSIZE_T);
|
||||||
|
NTSTATUS NtQueryVolumeInformationFile (HANDLE, PIO_STATUS_BLOCK, PVOID, ULONG,
|
||||||
|
FS_INFORMATION_CLASS);
|
||||||
|
NTSTATUS NtReadFile (HANDLE, HANDLE, PIO_APC_ROUTINE, PVOID, PIO_STATUS_BLOCK,
|
||||||
|
PVOID, ULONG, PLARGE_INTEGER, PULONG);
|
||||||
|
NTSTATUS NtRollbackTransaction (HANDLE, BOOLEAN);
|
||||||
|
NTSTATUS NtSetEaFile (HANDLE, PIO_STATUS_BLOCK, PVOID, ULONG);
|
||||||
|
NTSTATUS NtSetEvent (HANDLE, PULONG);
|
||||||
|
NTSTATUS NtSetInformationFile (HANDLE, PIO_STATUS_BLOCK, PVOID, ULONG,
|
||||||
|
FILE_INFORMATION_CLASS);
|
||||||
|
NTSTATUS NtSetInformationJobObject (HANDLE, JOBOBJECTINFOCLASS, PVOID, ULONG);
|
||||||
|
NTSTATUS NtSetInformationThread (HANDLE, THREADINFOCLASS, PVOID, ULONG);
|
||||||
|
NTSTATUS NtSetInformationToken (HANDLE, TOKEN_INFORMATION_CLASS, PVOID,
|
||||||
|
ULONG);
|
||||||
|
NTSTATUS NtSetQuotaInformationFile (HANDLE, PIO_STATUS_BLOCK, PVOID, ULONG);
|
||||||
|
NTSTATUS NtSetSecurityObject (HANDLE, SECURITY_INFORMATION,
|
||||||
|
PSECURITY_DESCRIPTOR);
|
||||||
|
NTSTATUS NtSetTimer (HANDLE, PLARGE_INTEGER, PTIMER_APC_ROUTINE, PVOID,
|
||||||
|
BOOLEAN, LONG, PBOOLEAN);
|
||||||
|
NTSTATUS NtSetValueKey (HANDLE, PUNICODE_STRING, ULONG, ULONG, PVOID, ULONG);
|
||||||
|
NTSTATUS NtSetVolumeInformationFile (HANDLE, PIO_STATUS_BLOCK, PVOID, ULONG,
|
||||||
|
FS_INFORMATION_CLASS);
|
||||||
|
NTSTATUS NtUnlockFile (HANDLE, PIO_STATUS_BLOCK, PLARGE_INTEGER,
|
||||||
|
PLARGE_INTEGER, ULONG);
|
||||||
|
NTSTATUS NtUnlockVirtualMemory (HANDLE, PVOID *, PSIZE_T, ULONG);
|
||||||
|
NTSTATUS NtUnmapViewOfSection (HANDLE, PVOID);
|
||||||
|
NTSTATUS NtWaitForSingleObject (HANDLE, BOOLEAN, PLARGE_INTEGER);
|
||||||
|
NTSTATUS NtWriteFile (HANDLE, HANDLE, PIO_APC_ROUTINE, PVOID,
|
||||||
|
PIO_STATUS_BLOCK, PVOID, ULONG, PLARGE_INTEGER, PULONG);
|
||||||
|
NTSTATUS RtlAbsoluteToSelfRelativeSD (PSECURITY_DESCRIPTOR,
|
||||||
PSECURITY_DESCRIPTOR, PULONG);
|
PSECURITY_DESCRIPTOR, PULONG);
|
||||||
VOID NTAPI RtlAcquirePebLock ();
|
NTSTATUS RtlAddAccessAllowedAce (PACL, ULONG, ACCESS_MASK, PSID);
|
||||||
NTSTATUS NTAPI RtlAddAccessAllowedAce (PACL, ULONG, ACCESS_MASK, PSID);
|
NTSTATUS RtlAddAccessAllowedAceEx (PACL, ULONG, ULONG, ACCESS_MASK, PSID);
|
||||||
NTSTATUS NTAPI RtlAddAccessAllowedAceEx (PACL, ULONG, ULONG, ACCESS_MASK,
|
NTSTATUS RtlAddAccessDeniedAce (PACL, ULONG, ACCESS_MASK, PSID);
|
||||||
PSID);
|
NTSTATUS RtlAddAccessDeniedAceEx (PACL, ULONG, ULONG, ACCESS_MASK, PSID);
|
||||||
NTSTATUS NTAPI RtlAddAccessDeniedAce (PACL, ULONG, ACCESS_MASK, PSID);
|
NTSTATUS RtlAddAce (PACL, ULONG, ULONG, PVOID, ULONG);
|
||||||
NTSTATUS NTAPI RtlAddAccessDeniedAceEx (PACL, ULONG, ULONG, ACCESS_MASK,
|
PVOID RtlAllocateHeap (PVOID, ULONG, SIZE_T);
|
||||||
PSID);
|
NTSTATUS RtlAnsiStringToUnicodeString (PUNICODE_STRING, PANSI_STRING,
|
||||||
NTSTATUS NTAPI RtlAddAce (PACL, ULONG, ULONG, PVOID, ULONG);
|
|
||||||
PVOID NTAPI RtlAllocateHeap (PVOID, ULONG, SIZE_T);
|
|
||||||
NTSTATUS NTAPI RtlAppendUnicodeToString (PUNICODE_STRING, PCWSTR);
|
|
||||||
NTSTATUS NTAPI RtlAppendUnicodeStringToString (PUNICODE_STRING,
|
|
||||||
PUNICODE_STRING);
|
|
||||||
NTSTATUS NTAPI RtlAnsiStringToUnicodeString (PUNICODE_STRING, PANSI_STRING,
|
|
||||||
BOOLEAN);
|
BOOLEAN);
|
||||||
NTSTATUS NTAPI RtlCheckRegistryKey (ULONG, PCWSTR);
|
NTSTATUS RtlAppendUnicodeToString (PUNICODE_STRING, PCWSTR);
|
||||||
LONG NTAPI RtlCompareUnicodeString (PUNICODE_STRING, PUNICODE_STRING,
|
NTSTATUS RtlAppendUnicodeStringToString (PUNICODE_STRING, PUNICODE_STRING);
|
||||||
BOOLEAN);
|
NTSTATUS RtlCheckRegistryKey (ULONG, PCWSTR);
|
||||||
NTSTATUS NTAPI RtlConvertSidToUnicodeString (PUNICODE_STRING, PSID, BOOLEAN);
|
LONG RtlCompareUnicodeString (PUNICODE_STRING, PUNICODE_STRING, BOOLEAN);
|
||||||
NTSTATUS NTAPI RtlConvertToAutoInheritSecurityObject (PSECURITY_DESCRIPTOR,
|
NTSTATUS RtlConvertSidToUnicodeString (PUNICODE_STRING, PSID, BOOLEAN);
|
||||||
|
NTSTATUS RtlConvertToAutoInheritSecurityObject (PSECURITY_DESCRIPTOR,
|
||||||
PSECURITY_DESCRIPTOR,
|
PSECURITY_DESCRIPTOR,
|
||||||
PSECURITY_DESCRIPTOR *,
|
PSECURITY_DESCRIPTOR *,
|
||||||
GUID *, BOOLEAN,
|
GUID *, BOOLEAN,
|
||||||
PGENERIC_MAPPING);
|
PGENERIC_MAPPING);
|
||||||
NTSTATUS NTAPI RtlCopySid (ULONG, PSID, PSID);
|
NTSTATUS RtlCopySid (ULONG, PSID, PSID);
|
||||||
VOID NTAPI RtlCopyUnicodeString (PUNICODE_STRING, PUNICODE_STRING);
|
VOID RtlCopyUnicodeString (PUNICODE_STRING, PUNICODE_STRING);
|
||||||
NTSTATUS NTAPI RtlCreateAcl (PACL, ULONG, ULONG);
|
NTSTATUS RtlCreateAcl (PACL, ULONG, ULONG);
|
||||||
PDEBUG_BUFFER NTAPI RtlCreateQueryDebugBuffer (ULONG, BOOLEAN);
|
PDEBUG_BUFFER RtlCreateQueryDebugBuffer (ULONG, BOOLEAN);
|
||||||
NTSTATUS NTAPI RtlCreateRegistryKey (ULONG, PCWSTR);
|
NTSTATUS RtlCreateSecurityDescriptor (PSECURITY_DESCRIPTOR, ULONG);
|
||||||
NTSTATUS NTAPI RtlCreateSecurityDescriptor (PSECURITY_DESCRIPTOR, ULONG);
|
BOOLEAN RtlCreateUnicodeStringFromAsciiz (PUNICODE_STRING, PCSTR);
|
||||||
BOOLEAN NTAPI RtlCreateUnicodeStringFromAsciiz (PUNICODE_STRING, PCSTR);
|
NTSTATUS RtlDeleteSecurityObject (PSECURITY_DESCRIPTOR *);
|
||||||
NTSTATUS NTAPI RtlDeleteSecurityObject (PSECURITY_DESCRIPTOR *);
|
NTSTATUS RtlDestroyQueryDebugBuffer (PDEBUG_BUFFER);
|
||||||
NTSTATUS NTAPI RtlDestroyQueryDebugBuffer (PDEBUG_BUFFER);
|
NTSTATUS RtlDowncaseUnicodeString (PUNICODE_STRING, PUNICODE_STRING, BOOLEAN);
|
||||||
NTSTATUS NTAPI RtlDowncaseUnicodeString (PUNICODE_STRING, PUNICODE_STRING,
|
NTSTATUS RtlEnterCriticalSection (PRTL_CRITICAL_SECTION);
|
||||||
BOOLEAN);
|
BOOLEAN RtlEqualPrefixSid (PSID, PSID);
|
||||||
NTSTATUS NTAPI RtlEnterCriticalSection (PRTL_CRITICAL_SECTION);
|
BOOLEAN RtlEqualSid (PSID, PSID);
|
||||||
BOOLEAN NTAPI RtlEqualPrefixSid (PSID, PSID);
|
BOOLEAN RtlEqualUnicodeString (PUNICODE_STRING, PUNICODE_STRING, BOOLEAN);
|
||||||
BOOLEAN NTAPI RtlEqualSid (PSID, PSID);
|
BOOLEAN RtlFreeHeap (HANDLE, ULONG, PVOID);
|
||||||
BOOLEAN NTAPI RtlEqualUnicodeString (PUNICODE_STRING, PUNICODE_STRING,
|
VOID RtlFreeUnicodeString (PUNICODE_STRING);
|
||||||
BOOLEAN);
|
BOOLEAN RtlFirstFreeAce (PACL, PVOID *);
|
||||||
VOID NTAPI RtlFreeAnsiString (PANSI_STRING);
|
NTSTATUS RtlGetAce (PACL, ULONG, PVOID);
|
||||||
BOOLEAN NTAPI RtlFreeHeap (HANDLE, ULONG, PVOID);
|
NTSTATUS RtlGetControlSecurityDescriptor (PSECURITY_DESCRIPTOR,
|
||||||
VOID NTAPI RtlFreeOemString (POEM_STRING);
|
|
||||||
VOID NTAPI RtlFreeUnicodeString (PUNICODE_STRING);
|
|
||||||
BOOLEAN NTAPI RtlFirstFreeAce (PACL, PVOID *);
|
|
||||||
NTSTATUS NTAPI RtlGetAce (PACL, ULONG, PVOID);
|
|
||||||
NTSTATUS NTAPI RtlGetControlSecurityDescriptor (PSECURITY_DESCRIPTOR,
|
|
||||||
PSECURITY_DESCRIPTOR_CONTROL,
|
PSECURITY_DESCRIPTOR_CONTROL,
|
||||||
PULONG);
|
PULONG);
|
||||||
HANDLE NTAPI RtlGetCurrentTransaction ();
|
HANDLE RtlGetCurrentTransaction ();
|
||||||
NTSTATUS NTAPI RtlGetDaclSecurityDescriptor (PSECURITY_DESCRIPTOR, PBOOLEAN,
|
NTSTATUS RtlGetDaclSecurityDescriptor (PSECURITY_DESCRIPTOR, PBOOLEAN, PACL *,
|
||||||
PACL *, PBOOLEAN);
|
|
||||||
NTSTATUS NTAPI RtlGetGroupSecurityDescriptor (PSECURITY_DESCRIPTOR, PSID *,
|
|
||||||
PBOOLEAN);
|
PBOOLEAN);
|
||||||
NTSTATUS NTAPI RtlGetNtVersionNumbers (LPDWORD, LPDWORD, LPDWORD);
|
NTSTATUS RtlGetGroupSecurityDescriptor (PSECURITY_DESCRIPTOR, PSID *,
|
||||||
NTSTATUS NTAPI RtlGetOwnerSecurityDescriptor (PSECURITY_DESCRIPTOR, PSID *,
|
|
||||||
PBOOLEAN);
|
PBOOLEAN);
|
||||||
NTSTATUS NTAPI RtlGetVersion (PRTL_OSVERSIONINFOEXW);
|
NTSTATUS RtlGetNtVersionNumbers (LPDWORD, LPDWORD, LPDWORD);
|
||||||
PSID_IDENTIFIER_AUTHORITY NTAPI RtlIdentifierAuthoritySid (PSID);
|
NTSTATUS RtlGetOwnerSecurityDescriptor (PSECURITY_DESCRIPTOR, PSID *,
|
||||||
VOID NTAPI RtlInitAnsiString (PANSI_STRING, PCSTR);
|
PBOOLEAN);
|
||||||
NTSTATUS NTAPI RtlInitializeSid (PSID, PSID_IDENTIFIER_AUTHORITY, UCHAR);
|
NTSTATUS RtlGetVersion (PRTL_OSVERSIONINFOEXW);
|
||||||
VOID NTAPI RtlInitUnicodeString (PUNICODE_STRING, PCWSTR);
|
PSID_IDENTIFIER_AUTHORITY RtlIdentifierAuthoritySid (PSID);
|
||||||
NTSTATUS NTAPI RtlIntegerToUnicodeString (ULONG, ULONG, PUNICODE_STRING);
|
VOID RtlInitAnsiString (PANSI_STRING, PCSTR);
|
||||||
ULONG NTAPI RtlIsDosDeviceName_U (PCWSTR);
|
NTSTATUS RtlInitializeSid (PSID, PSID_IDENTIFIER_AUTHORITY, UCHAR);
|
||||||
NTSTATUS NTAPI RtlLeaveCriticalSection (PRTL_CRITICAL_SECTION);
|
VOID RtlInitUnicodeString (PUNICODE_STRING, PCWSTR);
|
||||||
ULONG NTAPI RtlLengthSecurityDescriptor (PSECURITY_DESCRIPTOR);
|
NTSTATUS RtlLeaveCriticalSection (PRTL_CRITICAL_SECTION);
|
||||||
ULONG NTAPI RtlLengthSid (PSID);
|
ULONG RtlLengthSecurityDescriptor (PSECURITY_DESCRIPTOR);
|
||||||
ULONG NTAPI RtlNtStatusToDosError (NTSTATUS);
|
ULONG RtlLengthSid (PSID);
|
||||||
NTSTATUS NTAPI RtlOemStringToUnicodeString (PUNICODE_STRING, POEM_STRING,
|
ULONG RtlNtStatusToDosError (NTSTATUS);
|
||||||
BOOLEAN);
|
BOOLEAN RtlPrefixUnicodeString (PUNICODE_STRING, PUNICODE_STRING, BOOLEAN);
|
||||||
BOOLEAN NTAPI RtlPrefixUnicodeString (PUNICODE_STRING, PUNICODE_STRING,
|
NTSTATUS RtlQueryProcessDebugInformation (ULONG, ULONG, PDEBUG_BUFFER);
|
||||||
BOOLEAN);
|
NTSTATUS RtlQueryRegistryValues (ULONG, PCWSTR, PRTL_QUERY_REGISTRY_TABLE,
|
||||||
NTSTATUS NTAPI RtlQueryProcessDebugInformation (ULONG, ULONG, PDEBUG_BUFFER);
|
PVOID, PVOID);
|
||||||
NTSTATUS NTAPI RtlQueryRegistryValues (ULONG, PCWSTR,
|
VOID RtlReleasePebLock ();
|
||||||
PRTL_QUERY_REGISTRY_TABLE, PVOID,
|
NTSTATUS RtlSetCurrentDirectory_U (PUNICODE_STRING);
|
||||||
PVOID);
|
BOOLEAN RtlSetCurrentTransaction (HANDLE);
|
||||||
VOID NTAPI RtlReleasePebLock ();
|
NTSTATUS RtlSetControlSecurityDescriptor (PSECURITY_DESCRIPTOR,
|
||||||
VOID NTAPI RtlSecondsSince1970ToTime (ULONG, PLARGE_INTEGER);
|
|
||||||
NTSTATUS NTAPI RtlSetCurrentDirectory_U (PUNICODE_STRING);
|
|
||||||
BOOLEAN NTAPI RtlSetCurrentTransaction (HANDLE);
|
|
||||||
NTSTATUS NTAPI RtlSetControlSecurityDescriptor (PSECURITY_DESCRIPTOR,
|
|
||||||
SECURITY_DESCRIPTOR_CONTROL,
|
SECURITY_DESCRIPTOR_CONTROL,
|
||||||
SECURITY_DESCRIPTOR_CONTROL);
|
SECURITY_DESCRIPTOR_CONTROL);
|
||||||
NTSTATUS NTAPI RtlSetDaclSecurityDescriptor (PSECURITY_DESCRIPTOR, BOOLEAN,
|
NTSTATUS RtlSetDaclSecurityDescriptor (PSECURITY_DESCRIPTOR, BOOLEAN, PACL,
|
||||||
PACL, BOOLEAN);
|
|
||||||
NTSTATUS NTAPI RtlSetGroupSecurityDescriptor (PSECURITY_DESCRIPTOR, PSID,
|
|
||||||
BOOLEAN);
|
BOOLEAN);
|
||||||
NTSTATUS NTAPI RtlSetOwnerSecurityDescriptor (PSECURITY_DESCRIPTOR, PSID,
|
NTSTATUS RtlSetGroupSecurityDescriptor (PSECURITY_DESCRIPTOR, PSID, BOOLEAN);
|
||||||
|
NTSTATUS RtlSetOwnerSecurityDescriptor (PSECURITY_DESCRIPTOR, PSID, BOOLEAN);
|
||||||
|
PUCHAR RtlSubAuthorityCountSid (PSID);
|
||||||
|
PULONG RtlSubAuthoritySid (PSID, ULONG);
|
||||||
|
ULONG RtlUnicodeStringToAnsiSize (PUNICODE_STRING);
|
||||||
|
NTSTATUS RtlUnicodeStringToAnsiString (PANSI_STRING, PUNICODE_STRING,
|
||||||
BOOLEAN);
|
BOOLEAN);
|
||||||
PUCHAR NTAPI RtlSubAuthorityCountSid (PSID);
|
WCHAR RtlUpcaseUnicodeChar (WCHAR);
|
||||||
PULONG NTAPI RtlSubAuthoritySid (PSID, ULONG);
|
NTSTATUS RtlUpcaseUnicodeString (PUNICODE_STRING, PUNICODE_STRING, BOOLEAN);
|
||||||
ULONG NTAPI RtlUnicodeStringToAnsiSize (PUNICODE_STRING);
|
NTSTATUS RtlWriteRegistryValue (ULONG, PCWSTR, PCWSTR, ULONG, PVOID, ULONG);
|
||||||
NTSTATUS NTAPI RtlUnicodeStringToAnsiString (PANSI_STRING, PUNICODE_STRING,
|
|
||||||
BOOLEAN);
|
|
||||||
NTSTATUS NTAPI RtlUnicodeStringToOemString (PANSI_STRING, PUNICODE_STRING,
|
|
||||||
BOOLEAN);
|
|
||||||
WCHAR NTAPI RtlUpcaseUnicodeChar (WCHAR);
|
|
||||||
NTSTATUS NTAPI RtlUpcaseUnicodeString (PUNICODE_STRING, PUNICODE_STRING,
|
|
||||||
BOOLEAN);
|
|
||||||
NTSTATUS NTAPI RtlWriteRegistryValue (ULONG, PCWSTR, PCWSTR, ULONG, PVOID,
|
|
||||||
ULONG);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
/* A few Rtl functions are either actually macros, or they just don't
|
/* A few Rtl functions are either actually macros, or they just don't
|
||||||
|
@ -1680,8 +1620,7 @@ extern "C"
|
||||||
is missing entirely in w32api. */
|
is missing entirely in w32api. */
|
||||||
|
|
||||||
inline
|
inline
|
||||||
VOID NTAPI RtlInitEmptyUnicodeString(PUNICODE_STRING dest, PWSTR buf,
|
VOID RtlInitEmptyUnicodeString(PUNICODE_STRING dest, PWSTR buf, USHORT len)
|
||||||
USHORT len)
|
|
||||||
{
|
{
|
||||||
dest->Length = 0;
|
dest->Length = 0;
|
||||||
dest->MaximumLength = len;
|
dest->MaximumLength = len;
|
||||||
|
@ -1693,7 +1632,7 @@ extern "C"
|
||||||
is known, but you can't rely on the string being 0-terminated.
|
is known, but you can't rely on the string being 0-terminated.
|
||||||
If you know it's 0-terminated, just use RtlInitUnicodeString(). */
|
If you know it's 0-terminated, just use RtlInitUnicodeString(). */
|
||||||
inline
|
inline
|
||||||
VOID NTAPI RtlInitCountedUnicodeString (PUNICODE_STRING dest, PCWSTR buf,
|
VOID RtlInitCountedUnicodeString (PUNICODE_STRING dest, PCWSTR buf,
|
||||||
USHORT len)
|
USHORT len)
|
||||||
{
|
{
|
||||||
dest->Length = dest->MaximumLength = len;
|
dest->Length = dest->MaximumLength = len;
|
||||||
|
@ -1708,7 +1647,7 @@ extern "C"
|
||||||
backslash. If you don't need it, just subtract sizeof(WCHAR) from
|
backslash. If you don't need it, just subtract sizeof(WCHAR) from
|
||||||
dirname.Length. */
|
dirname.Length. */
|
||||||
inline
|
inline
|
||||||
VOID NTAPI RtlSplitUnicodePath (PUNICODE_STRING path, PUNICODE_STRING dirname,
|
VOID RtlSplitUnicodePath (PUNICODE_STRING path, PUNICODE_STRING dirname,
|
||||||
PUNICODE_STRING basename)
|
PUNICODE_STRING basename)
|
||||||
{
|
{
|
||||||
USHORT len = path->Length / sizeof (WCHAR);
|
USHORT len = path->Length / sizeof (WCHAR);
|
||||||
|
@ -1723,7 +1662,7 @@ extern "C"
|
||||||
}
|
}
|
||||||
/* Check if prefix is a prefix of path. */
|
/* Check if prefix is a prefix of path. */
|
||||||
inline
|
inline
|
||||||
BOOLEAN NTAPI RtlEqualUnicodePathPrefix (PUNICODE_STRING path,
|
BOOLEAN RtlEqualUnicodePathPrefix (PUNICODE_STRING path,
|
||||||
PUNICODE_STRING prefix,
|
PUNICODE_STRING prefix,
|
||||||
BOOLEAN caseinsensitive)
|
BOOLEAN caseinsensitive)
|
||||||
{
|
{
|
||||||
|
@ -1736,7 +1675,7 @@ extern "C"
|
||||||
}
|
}
|
||||||
/* Check if suffix is a suffix of path. */
|
/* Check if suffix is a suffix of path. */
|
||||||
inline
|
inline
|
||||||
BOOL NTAPI RtlEqualUnicodePathSuffix (PUNICODE_STRING path,
|
BOOL RtlEqualUnicodePathSuffix (PUNICODE_STRING path,
|
||||||
PUNICODE_STRING suffix,
|
PUNICODE_STRING suffix,
|
||||||
BOOLEAN caseinsensitive)
|
BOOLEAN caseinsensitive)
|
||||||
{
|
{
|
||||||
|
@ -1755,12 +1694,11 @@ extern "C"
|
||||||
otherwise overwrite dest. Returns either STATUS_SUCCESS, or
|
otherwise overwrite dest. Returns either STATUS_SUCCESS, or
|
||||||
STATUS_BUFFER_OVERFLOW, if the unicode buffer is too small (hasn't
|
STATUS_BUFFER_OVERFLOW, if the unicode buffer is too small (hasn't
|
||||||
room for 16 WCHARs). */
|
room for 16 WCHARs). */
|
||||||
NTSTATUS NTAPI RtlInt64ToHexUnicodeString (ULONGLONG value,
|
NTSTATUS RtlInt64ToHexUnicodeString (ULONGLONG value, PUNICODE_STRING dest,
|
||||||
PUNICODE_STRING dest,
|
|
||||||
BOOLEAN append);
|
BOOLEAN append);
|
||||||
/* Set file attributes. Don't change file times. */
|
/* Set file attributes. Don't change file times. */
|
||||||
inline
|
inline
|
||||||
NTSTATUS NTAPI NtSetAttributesFile (HANDLE h, ULONG attr)
|
NTSTATUS NtSetAttributesFile (HANDLE h, ULONG attr)
|
||||||
{
|
{
|
||||||
IO_STATUS_BLOCK io;
|
IO_STATUS_BLOCK io;
|
||||||
FILE_BASIC_INFORMATION fbi;
|
FILE_BASIC_INFORMATION fbi;
|
||||||
|
@ -1773,7 +1711,7 @@ extern "C"
|
||||||
/* This test for a signalled event is twice as fast as calling
|
/* This test for a signalled event is twice as fast as calling
|
||||||
WaitForSingleObject (event, 0). */
|
WaitForSingleObject (event, 0). */
|
||||||
inline
|
inline
|
||||||
BOOL NTAPI IsEventSignalled (HANDLE event)
|
BOOL IsEventSignalled (HANDLE event)
|
||||||
{
|
{
|
||||||
EVENT_BASIC_INFORMATION ebi;
|
EVENT_BASIC_INFORMATION ebi;
|
||||||
return NT_SUCCESS (NtQueryEvent (event, EventBasicInformation,
|
return NT_SUCCESS (NtQueryEvent (event, EventBasicInformation,
|
||||||
|
|
|
@ -131,8 +131,8 @@ extern "C"
|
||||||
#endif
|
#endif
|
||||||
/* We need these declarations, otherwise g++ complains that the below
|
/* We need these declarations, otherwise g++ complains that the below
|
||||||
inline methods use an undefined function, if ntdll.h isn't included. */
|
inline methods use an undefined function, if ntdll.h isn't included. */
|
||||||
BOOLEAN NTAPI RtlEqualSid (PSID, PSID);
|
BOOLEAN RtlEqualSid (PSID, PSID);
|
||||||
NTSTATUS NTAPI RtlCopySid (ULONG, PSID, PSID);
|
NTSTATUS RtlCopySid (ULONG, PSID, PSID);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -882,7 +882,7 @@ slashify (const char *src, char *dst, bool trailing_slash_p)
|
||||||
|
|
||||||
static WCHAR hex_wchars[] = L"0123456789abcdef";
|
static WCHAR hex_wchars[] = L"0123456789abcdef";
|
||||||
|
|
||||||
NTSTATUS NTAPI
|
NTSTATUS
|
||||||
RtlInt64ToHexUnicodeString (ULONGLONG value, PUNICODE_STRING dest,
|
RtlInt64ToHexUnicodeString (ULONGLONG value, PUNICODE_STRING dest,
|
||||||
BOOLEAN append)
|
BOOLEAN append)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue