1999-02-12 14:44:38 +01:00
|
|
|
/*
|
|
|
|
this file defines interfaces mainly exposed to device drivers and
|
|
|
|
native nt dll's
|
|
|
|
|
|
|
|
*/
|
|
|
|
#ifndef __WINE_NTDDK_H
|
|
|
|
#define __WINE_NTDDK_H
|
|
|
|
|
1999-05-12 14:47:01 +02:00
|
|
|
#include "ntdef.h"
|
|
|
|
#include "winnt.h"
|
2000-02-25 22:36:57 +01:00
|
|
|
#include "winreg.h"
|
1999-03-09 18:46:10 +01:00
|
|
|
#include "winbase.h" /* fixme: should be taken out sometimes */
|
1999-02-12 14:44:38 +01:00
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
#include "pshpack1.h"
|
|
|
|
|
1999-03-09 18:46:10 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
1999-02-12 14:44:38 +01:00
|
|
|
|
|
|
|
/******************
|
|
|
|
* asynchronous I/O
|
|
|
|
*/
|
1999-02-19 17:29:05 +01:00
|
|
|
#undef Status /* conflict with X11-includes*/
|
1999-02-12 14:44:38 +01:00
|
|
|
|
|
|
|
typedef struct _IO_STATUS_BLOCK
|
1999-09-14 09:52:16 +02:00
|
|
|
{
|
|
|
|
union {
|
|
|
|
NTSTATUS Status;
|
1999-02-12 14:44:38 +01:00
|
|
|
PVOID Pointer;
|
1999-09-14 09:52:16 +02:00
|
|
|
} DUMMYUNIONNAME;
|
1999-02-12 14:44:38 +01:00
|
|
|
ULONG_PTR Information;
|
|
|
|
} IO_STATUS_BLOCK, *PIO_STATUS_BLOCK;
|
|
|
|
|
2000-06-11 22:07:58 +02:00
|
|
|
typedef VOID NTAPI (*PIO_APC_ROUTINE) ( PVOID ApcContext, PIO_STATUS_BLOCK IoStatusBlock, ULONG Reserved );
|
1999-02-12 14:44:38 +01:00
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
/*
|
|
|
|
registry
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* key information */
|
|
|
|
typedef struct _KEY_BASIC_INFORMATION {
|
|
|
|
FILETIME LastWriteTime;
|
|
|
|
ULONG TitleIndex;
|
|
|
|
ULONG NameLength;
|
|
|
|
WCHAR Name[1];
|
|
|
|
} KEY_BASIC_INFORMATION, *PKEY_BASIC_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _KEY_NODE_INFORMATION
|
|
|
|
{
|
|
|
|
FILETIME LastWriteTime;
|
|
|
|
ULONG TitleIndex;
|
|
|
|
ULONG ClassOffset;
|
|
|
|
ULONG ClassLength;
|
|
|
|
ULONG NameLength;
|
|
|
|
WCHAR Name[1];
|
|
|
|
/* Class[1]; */
|
|
|
|
} KEY_NODE_INFORMATION, *PKEY_NODE_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _KEY_FULL_INFORMATION
|
|
|
|
{
|
|
|
|
FILETIME LastWriteTime;
|
|
|
|
ULONG TitleIndex;
|
|
|
|
ULONG ClassOffset;
|
|
|
|
ULONG ClassLength;
|
|
|
|
ULONG SubKeys;
|
|
|
|
ULONG MaxNameLen;
|
|
|
|
ULONG MaxClassLen;
|
|
|
|
ULONG Values;
|
|
|
|
ULONG MaxValueNameLen;
|
|
|
|
ULONG MaxValueDataLen;
|
|
|
|
WCHAR Class[1];
|
|
|
|
} KEY_FULL_INFORMATION, *PKEY_FULL_INFORMATION;
|
|
|
|
|
|
|
|
typedef enum _KEY_INFORMATION_CLASS
|
|
|
|
{
|
1999-02-12 14:44:38 +01:00
|
|
|
KeyBasicInformation,
|
|
|
|
KeyNodeInformation,
|
|
|
|
KeyFullInformation
|
|
|
|
} KEY_INFORMATION_CLASS;
|
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
typedef struct _KEY_VALUE_ENTRY
|
|
|
|
{
|
|
|
|
PUNICODE_STRING ValueName;
|
|
|
|
ULONG DataLength;
|
|
|
|
ULONG DataOffset;
|
|
|
|
ULONG Type;
|
|
|
|
} KEY_VALUE_ENTRY, *PKEY_VALUE_ENTRY;
|
|
|
|
|
|
|
|
/* value information */
|
|
|
|
typedef struct _KEY_VALUE_BASIC_INFORMATION
|
|
|
|
{
|
|
|
|
ULONG TitleIndex;
|
|
|
|
ULONG Type;
|
|
|
|
ULONG NameLength;
|
|
|
|
WCHAR Name[1];
|
|
|
|
} KEY_VALUE_BASIC_INFORMATION, *PKEY_VALUE_BASIC_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _KEY_VALUE_FULL_INFORMATION
|
|
|
|
{
|
|
|
|
ULONG TitleIndex;
|
|
|
|
ULONG Type;
|
|
|
|
ULONG DataOffset;
|
|
|
|
ULONG DataLength;
|
|
|
|
ULONG NameLength;
|
|
|
|
WCHAR Name[1];
|
|
|
|
/* UCHAR Data[1];*/
|
|
|
|
} KEY_VALUE_FULL_INFORMATION, *PKEY_VALUE_FULL_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _KEY_VALUE_PARTIAL_INFORMATION
|
|
|
|
{
|
|
|
|
ULONG TitleIndex;
|
|
|
|
ULONG Type;
|
|
|
|
ULONG DataLength;
|
|
|
|
UCHAR Data[1];
|
|
|
|
} KEY_VALUE_PARTIAL_INFORMATION, *PKEY_VALUE_PARTIAL_INFORMATION;
|
|
|
|
|
|
|
|
typedef enum _KEY_VALUE_INFORMATION_CLASS
|
|
|
|
{
|
1999-02-12 14:44:38 +01:00
|
|
|
KeyValueBasicInformation,
|
|
|
|
KeyValueFullInformation,
|
|
|
|
KeyValuePartialInformation,
|
|
|
|
KeyValueFullInformationAlign64,
|
|
|
|
KeyValuePartialInformationAlign64
|
|
|
|
} KEY_VALUE_INFORMATION_CLASS;
|
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
NTSTATUS WINAPI RtlFormatCurrentUserKeyPath(
|
|
|
|
PUNICODE_STRING KeyPath);
|
|
|
|
|
|
|
|
/* thread information */
|
|
|
|
|
1999-02-12 14:44:38 +01:00
|
|
|
typedef enum _THREADINFOCLASS
|
|
|
|
{ ThreadBasicInformation,
|
|
|
|
ThreadTimes,
|
|
|
|
ThreadPriority,
|
|
|
|
ThreadBasePriority,
|
|
|
|
ThreadAffinityMask,
|
|
|
|
ThreadImpersonationToken,
|
|
|
|
ThreadDescriptorTableEntry,
|
|
|
|
ThreadEnableAlignmentFaultFixup,
|
|
|
|
ThreadEventPair_Reusable,
|
|
|
|
ThreadQuerySetWin32StartAddress,
|
|
|
|
ThreadZeroTlsCell,
|
|
|
|
ThreadPerformanceCount,
|
|
|
|
ThreadAmILastThread,
|
|
|
|
ThreadIdealProcessor,
|
|
|
|
ThreadPriorityBoost,
|
|
|
|
ThreadSetTlsArrayAddress,
|
|
|
|
ThreadIsIoPending,
|
|
|
|
MaxThreadInfoClass
|
|
|
|
} THREADINFOCLASS;
|
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
/* file information */
|
|
|
|
|
1999-02-12 14:44:38 +01:00
|
|
|
typedef enum _FILE_INFORMATION_CLASS {
|
|
|
|
FileDirectoryInformation = 1,
|
|
|
|
FileFullDirectoryInformation,
|
|
|
|
FileBothDirectoryInformation,
|
|
|
|
FileBasicInformation,
|
|
|
|
FileStandardInformation,
|
|
|
|
FileInternalInformation,
|
|
|
|
FileEaInformation,
|
|
|
|
FileAccessInformation,
|
|
|
|
FileNameInformation,
|
|
|
|
FileRenameInformation,
|
|
|
|
FileLinkInformation,
|
|
|
|
FileNamesInformation,
|
|
|
|
FileDispositionInformation,
|
|
|
|
FilePositionInformation,
|
|
|
|
FileFullEaInformation,
|
|
|
|
FileModeInformation,
|
|
|
|
FileAlignmentInformation,
|
|
|
|
FileAllInformation,
|
|
|
|
FileAllocationInformation,
|
|
|
|
FileEndOfFileInformation,
|
|
|
|
FileAlternateNameInformation,
|
|
|
|
FileStreamInformation,
|
|
|
|
FilePipeInformation,
|
|
|
|
FilePipeLocalInformation,
|
|
|
|
FilePipeRemoteInformation,
|
|
|
|
FileMailslotQueryInformation,
|
|
|
|
FileMailslotSetInformation,
|
|
|
|
FileCompressionInformation,
|
|
|
|
FileObjectIdInformation,
|
|
|
|
FileCompletionInformation,
|
|
|
|
FileMoveClusterInformation,
|
|
|
|
FileQuotaInformation,
|
|
|
|
FileReparsePointInformation,
|
|
|
|
FileNetworkOpenInformation,
|
|
|
|
FileAttributeTagInformation,
|
|
|
|
FileTrackingInformation,
|
|
|
|
FileMaximumInformation
|
|
|
|
} FILE_INFORMATION_CLASS, *PFILE_INFORMATION_CLASS;
|
|
|
|
|
1999-07-31 19:32:05 +02:00
|
|
|
typedef enum _FSINFOCLASS {
|
|
|
|
FileFsVolumeInformation = 1,
|
|
|
|
FileFsLabelInformation,
|
|
|
|
FileFsSizeInformation,
|
|
|
|
FileFsDeviceInformation,
|
|
|
|
FileFsAttributeInformation,
|
|
|
|
FileFsControlInformation,
|
|
|
|
FileFsFullSizeInformation,
|
|
|
|
FileFsObjectIdInformation,
|
|
|
|
FileFsMaximumInformation
|
|
|
|
} FS_INFORMATION_CLASS, *PFS_INFORMATION_CLASS;
|
|
|
|
|
1999-02-12 14:44:38 +01:00
|
|
|
typedef enum _SECTION_INHERIT
|
1999-03-09 18:46:10 +01:00
|
|
|
{
|
|
|
|
ViewShare = 1,
|
1999-02-12 14:44:38 +01:00
|
|
|
ViewUnmap = 2
|
1999-03-09 18:46:10 +01:00
|
|
|
|
1999-02-12 14:44:38 +01:00
|
|
|
} SECTION_INHERIT;
|
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
/* object information */
|
|
|
|
|
1999-02-12 14:44:38 +01:00
|
|
|
typedef enum _OBJECT_INFORMATION_CLASS
|
1999-03-09 18:46:10 +01:00
|
|
|
{
|
|
|
|
DunnoTheConstants1
|
|
|
|
|
1999-02-12 14:44:38 +01:00
|
|
|
} OBJECT_INFORMATION_CLASS, *POBJECT_INFORMATION_CLASS;
|
|
|
|
|
1999-03-09 18:46:10 +01:00
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
/* system information */
|
1999-03-09 18:46:10 +01:00
|
|
|
|
1999-02-12 14:44:38 +01:00
|
|
|
typedef enum SYSTEM_INFORMATION_CLASS
|
1999-03-09 18:46:10 +01:00
|
|
|
{ Unknown1 = 1,
|
|
|
|
Unknown2,
|
|
|
|
Unknown3,
|
|
|
|
Unknown4,
|
|
|
|
SystemPerformanceInformation
|
1999-02-12 14:44:38 +01:00
|
|
|
} SYSTEM_INFORMATION_CLASS, *PSYSTEM_INFORMATION_CLASS;
|
|
|
|
|
1999-03-09 18:46:10 +01:00
|
|
|
/* reading coffee grounds... */
|
|
|
|
typedef struct _THREAD_INFO
|
|
|
|
{ DWORD Unknown1[6];
|
|
|
|
DWORD ThreadID;
|
|
|
|
DWORD Unknown2[3];
|
|
|
|
DWORD Status;
|
|
|
|
DWORD WaitReason;
|
|
|
|
DWORD Unknown3[4];
|
|
|
|
} THREAD_INFO, PTHREAD_INFO;
|
|
|
|
|
|
|
|
typedef struct _VM_COUNTERS_
|
|
|
|
{ ULONG PeakVirtualSize;
|
|
|
|
ULONG VirtualSize;
|
|
|
|
ULONG PageFaultCount;
|
|
|
|
ULONG PeakWorkingSetSize;
|
|
|
|
ULONG WorkingSetSize;
|
|
|
|
ULONG QuotaPeakPagedPoolUsage;
|
|
|
|
ULONG QuotaPagedPoolUsage;
|
|
|
|
ULONG QuotaPeakNonPagedPoolUsage;
|
|
|
|
ULONG QuotaNonPagedPoolUsage;
|
|
|
|
ULONG PagefileUsage;
|
|
|
|
ULONG PeakPagefileUsage;
|
|
|
|
} VM_COUNTERS, *PVM_COUNTERS;
|
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
/* process information */
|
|
|
|
|
1999-03-09 18:46:10 +01:00
|
|
|
typedef struct _PROCESS_INFO
|
|
|
|
{ DWORD Offset; /* 00 offset to next PROCESS_INFO ok*/
|
|
|
|
DWORD ThreadCount; /* 04 number of ThreadInfo member ok */
|
|
|
|
DWORD Unknown1[6];
|
|
|
|
FILETIME CreationTime; /* 20 */
|
|
|
|
DWORD Unknown2[5];
|
|
|
|
PWCHAR ProcessName; /* 3c ok */
|
|
|
|
DWORD BasePriority;
|
|
|
|
DWORD ProcessID; /* 44 ok*/
|
|
|
|
DWORD ParentProcessID;
|
|
|
|
DWORD HandleCount;
|
|
|
|
DWORD Unknown3[2]; /* 50 */
|
|
|
|
ULONG PeakVirtualSize;
|
|
|
|
ULONG VirtualSize;
|
|
|
|
ULONG PageFaultCount;
|
|
|
|
ULONG PeakWorkingSetSize;
|
|
|
|
ULONG WorkingSetSize;
|
|
|
|
ULONG QuotaPeakPagedPoolUsage;
|
|
|
|
ULONG QuotaPagedPoolUsage;
|
|
|
|
ULONG QuotaPeakNonPagedPoolUsage;
|
|
|
|
ULONG QuotaNonPagedPoolUsage;
|
|
|
|
ULONG PagefileUsage;
|
|
|
|
ULONG PeakPagefileUsage;
|
|
|
|
DWORD PrivateBytes;
|
|
|
|
DWORD Unknown6[4];
|
|
|
|
THREAD_INFO ati[ANYSIZE_ARRAY]; /* 94 size=0x40*/
|
|
|
|
} PROCESS_INFO, PPROCESS_INFO;
|
|
|
|
|
|
|
|
NTSTATUS WINAPI NtQuerySystemInformation(
|
|
|
|
IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
|
|
|
|
OUT PVOID SystemInformation,
|
|
|
|
IN ULONG Length,
|
|
|
|
OUT PULONG ResultLength);
|
|
|
|
|
1999-02-12 14:44:38 +01:00
|
|
|
/*
|
1999-03-09 18:46:10 +01:00
|
|
|
* system configuration
|
1999-02-12 14:44:38 +01:00
|
|
|
*/
|
1999-03-09 18:46:10 +01:00
|
|
|
|
|
|
|
|
1999-02-12 14:44:38 +01:00
|
|
|
typedef struct _SYSTEM_TIME_ADJUSTMENT
|
|
|
|
{
|
|
|
|
ULONG TimeAdjustment;
|
1999-02-19 17:29:05 +01:00
|
|
|
BOOLEAN TimeAdjustmentDisabled;
|
1999-02-12 14:44:38 +01:00
|
|
|
|
|
|
|
} SYSTEM_TIME_ADJUSTMENT, *PSYSTEM_TIME_ADJUSTMENT;
|
|
|
|
|
|
|
|
typedef struct _SYSTEM_CONFIGURATION_INFO
|
|
|
|
{
|
|
|
|
union
|
|
|
|
{ ULONG OemId;
|
|
|
|
struct
|
|
|
|
{ WORD ProcessorArchitecture;
|
|
|
|
WORD Reserved;
|
|
|
|
} tag1;
|
|
|
|
} tag2;
|
|
|
|
ULONG PageSize;
|
|
|
|
PVOID MinimumApplicationAddress;
|
|
|
|
PVOID MaximumApplicationAddress;
|
|
|
|
ULONG ActiveProcessorMask;
|
|
|
|
ULONG NumberOfProcessors;
|
|
|
|
ULONG ProcessorType;
|
|
|
|
ULONG AllocationGranularity;
|
|
|
|
WORD ProcessorLevel;
|
|
|
|
WORD ProcessorRevision;
|
|
|
|
|
|
|
|
} SYSTEM_CONFIGURATION_INFO, *PSYSTEM_CONFIGURATION_INFO;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _SYSTEM_CACHE_INFORMATION
|
|
|
|
{
|
|
|
|
ULONG CurrentSize;
|
|
|
|
ULONG PeakSize;
|
|
|
|
ULONG PageFaultCount;
|
|
|
|
ULONG MinimumWorkingSet;
|
|
|
|
ULONG MaximumWorkingSet;
|
|
|
|
ULONG Unused[4];
|
|
|
|
|
|
|
|
} SYSTEM_CACHE_INFORMATION;
|
|
|
|
|
|
|
|
/*
|
1999-03-09 18:46:10 +01:00
|
|
|
* NtQueryProcessInformation
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* parameter ProcessInformationClass */
|
|
|
|
|
|
|
|
typedef enum _PROCESSINFOCLASS
|
|
|
|
{ ProcessBasicInformation,
|
|
|
|
ProcessQuotaLimits,
|
|
|
|
ProcessIoCounters,
|
|
|
|
ProcessVmCounters,
|
|
|
|
ProcessTimes,
|
|
|
|
ProcessBasePriority,
|
|
|
|
ProcessRaisePriority,
|
|
|
|
ProcessDebugPort,
|
|
|
|
ProcessExceptionPort,
|
|
|
|
ProcessAccessToken,
|
|
|
|
ProcessLdtInformation,
|
|
|
|
ProcessLdtSize,
|
|
|
|
ProcessDefaultHardErrorMode,
|
|
|
|
ProcessIoPortHandlers,
|
|
|
|
ProcessPooledUsageAndLimits,
|
|
|
|
ProcessWorkingSetWatch,
|
|
|
|
ProcessUserModeIOPL,
|
|
|
|
ProcessEnableAlignmentFaultFixup,
|
|
|
|
ProcessPriorityClass,
|
|
|
|
ProcessWx86Information,
|
|
|
|
ProcessHandleCount,
|
|
|
|
ProcessAffinityMask,
|
|
|
|
ProcessPriorityBoost,
|
|
|
|
ProcessDeviceMap,
|
|
|
|
ProcessSessionInformation,
|
|
|
|
ProcessForegroundInformation,
|
|
|
|
ProcessWow64Information,
|
|
|
|
MaxProcessInfoClass
|
|
|
|
} PROCESSINFOCLASS;
|
|
|
|
|
|
|
|
/* parameter ProcessInformation (depending on ProcessInformationClass) */
|
|
|
|
|
|
|
|
typedef struct _PROCESS_BASIC_INFORMATION
|
|
|
|
{ DWORD ExitStatus;
|
|
|
|
DWORD PebBaseAddress;
|
|
|
|
DWORD AffinityMask;
|
|
|
|
DWORD BasePriority;
|
|
|
|
ULONG UniqueProcessId;
|
|
|
|
ULONG InheritedFromUniqueProcessId;
|
|
|
|
} PROCESS_BASIC_INFORMATION;
|
|
|
|
|
|
|
|
NTSTATUS WINAPI NtQueryInformationProcess(
|
|
|
|
IN HANDLE ProcessHandle,
|
|
|
|
IN PROCESSINFOCLASS ProcessInformationClass,
|
|
|
|
OUT PVOID ProcessInformation,
|
|
|
|
IN ULONG ProcessInformationLength,
|
|
|
|
OUT PULONG ReturnLength);
|
|
|
|
|
1999-04-11 16:53:24 +02:00
|
|
|
#define NtCurrentProcess() ( (HANDLE) -1 )
|
1999-03-09 18:46:10 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* timer
|
|
|
|
*/
|
|
|
|
|
1999-02-12 14:44:38 +01:00
|
|
|
typedef enum _TIMER_TYPE
|
1999-03-09 18:46:10 +01:00
|
|
|
{
|
|
|
|
NotificationTimer,
|
1999-02-12 14:44:38 +01:00
|
|
|
SynchronizationTimer
|
1999-03-09 18:46:10 +01:00
|
|
|
|
1999-02-12 14:44:38 +01:00
|
|
|
} TIMER_TYPE;
|
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
/* token functions */
|
1999-03-09 18:46:10 +01:00
|
|
|
|
|
|
|
NTSTATUS WINAPI NtOpenProcessToken(
|
|
|
|
HANDLE ProcessHandle,
|
|
|
|
DWORD DesiredAccess,
|
|
|
|
HANDLE *TokenHandle);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI NtOpenThreadToken(
|
|
|
|
HANDLE ThreadHandle,
|
|
|
|
DWORD DesiredAccess,
|
|
|
|
BOOLEAN OpenAsSelf,
|
|
|
|
HANDLE *TokenHandle);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI NtAdjustPrivilegesToken(
|
|
|
|
IN HANDLE TokenHandle,
|
|
|
|
IN BOOLEAN DisableAllPrivileges,
|
|
|
|
IN PTOKEN_PRIVILEGES NewState,
|
|
|
|
IN DWORD BufferLength,
|
|
|
|
OUT PTOKEN_PRIVILEGES PreviousState,
|
|
|
|
OUT PDWORD ReturnLength);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI NtQueryInformationToken(
|
|
|
|
HANDLE token,
|
|
|
|
DWORD tokeninfoclass,
|
|
|
|
LPVOID tokeninfo,
|
|
|
|
DWORD tokeninfolength,
|
|
|
|
LPDWORD retlen );
|
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
/* sid functions */
|
1999-02-19 17:29:05 +01:00
|
|
|
|
|
|
|
BOOLEAN WINAPI RtlAllocateAndInitializeSid (
|
|
|
|
PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
BYTE nSubAuthorityCount,
|
|
|
|
DWORD nSubAuthority0, DWORD nSubAuthority1,
|
|
|
|
DWORD nSubAuthority2, DWORD nSubAuthority3,
|
|
|
|
DWORD nSubAuthority4, DWORD nSubAuthority5,
|
|
|
|
DWORD nSubAuthority6, DWORD nSubAuthority7,
|
|
|
|
PSID *pSid );
|
|
|
|
|
|
|
|
BOOL WINAPI RtlInitializeSid(
|
|
|
|
PSID pSid,
|
|
|
|
PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,
|
|
|
|
BYTE nSubAuthorityCount);
|
|
|
|
|
|
|
|
DWORD WINAPI RtlFreeSid(
|
1999-02-19 17:29:05 +01:00
|
|
|
PSID pSid);
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
|
|
|
|
BOOL WINAPI RtlEqualSid(
|
|
|
|
PSID pSid1,
|
|
|
|
PSID pSid2 );
|
1999-02-19 17:29:05 +01:00
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
DWORD WINAPI RtlLengthRequiredSid(
|
|
|
|
DWORD nrofsubauths);
|
1999-02-19 17:29:05 +01:00
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
DWORD WINAPI RtlLengthSid(
|
|
|
|
PSID sid);
|
|
|
|
|
|
|
|
LPDWORD WINAPI RtlSubAuthoritySid(
|
|
|
|
PSID PSID,
|
|
|
|
DWORD nr);
|
|
|
|
|
|
|
|
LPBYTE WINAPI RtlSubAuthorityCountSid(
|
|
|
|
PSID pSid);
|
|
|
|
|
|
|
|
DWORD WINAPI RtlCopySid(
|
|
|
|
DWORD len,
|
|
|
|
PSID to,
|
|
|
|
PSID from);
|
|
|
|
|
|
|
|
BOOL WINAPI RtlValidSid(
|
|
|
|
PSID pSid);
|
|
|
|
|
|
|
|
BOOL WINAPI RtlEqualPrefixSid(
|
|
|
|
PSID pSid1,
|
|
|
|
PSID pSid2);
|
|
|
|
|
|
|
|
PSID_IDENTIFIER_AUTHORITY WINAPI RtlIdentifierAuthoritySid(
|
|
|
|
PSID pSid );
|
|
|
|
|
|
|
|
/* security descriptor functions */
|
1999-02-19 17:29:05 +01:00
|
|
|
|
|
|
|
NTSTATUS WINAPI RtlCreateSecurityDescriptor(
|
|
|
|
PSECURITY_DESCRIPTOR lpsd,
|
|
|
|
DWORD rev);
|
|
|
|
|
1999-03-09 18:46:10 +01:00
|
|
|
NTSTATUS WINAPI RtlValidSecurityDescriptor(
|
|
|
|
PSECURITY_DESCRIPTOR SecurityDescriptor);
|
|
|
|
|
|
|
|
ULONG WINAPI RtlLengthSecurityDescriptor(
|
1999-02-19 17:29:05 +01:00
|
|
|
PSECURITY_DESCRIPTOR SecurityDescriptor);
|
|
|
|
|
1999-03-09 18:46:10 +01:00
|
|
|
NTSTATUS WINAPI RtlGetDaclSecurityDescriptor(
|
1999-02-19 17:29:05 +01:00
|
|
|
IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
|
|
|
|
OUT PBOOLEAN lpbDaclPresent,
|
|
|
|
OUT PACL *pDacl,
|
|
|
|
OUT PBOOLEAN lpbDaclDefaulted);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI RtlSetDaclSecurityDescriptor (
|
|
|
|
PSECURITY_DESCRIPTOR lpsd,
|
|
|
|
BOOLEAN daclpresent,
|
|
|
|
PACL dacl,
|
|
|
|
BOOLEAN dacldefaulted );
|
|
|
|
|
1999-03-09 18:46:10 +01:00
|
|
|
NTSTATUS WINAPI RtlGetSaclSecurityDescriptor(
|
|
|
|
IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
|
|
|
|
OUT PBOOLEAN lpbSaclPresent,
|
|
|
|
OUT PACL *pSacl,
|
|
|
|
OUT PBOOLEAN lpbSaclDefaulted);
|
1999-02-19 17:29:05 +01:00
|
|
|
|
1999-03-09 18:46:10 +01:00
|
|
|
NTSTATUS WINAPI RtlSetSaclSecurityDescriptor (
|
1999-02-19 17:29:05 +01:00
|
|
|
PSECURITY_DESCRIPTOR lpsd,
|
|
|
|
BOOLEAN saclpresent,
|
|
|
|
PACL sacl,
|
|
|
|
BOOLEAN sacldefaulted);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI RtlGetOwnerSecurityDescriptor(
|
|
|
|
PSECURITY_DESCRIPTOR SecurityDescriptor,
|
|
|
|
PSID *Owner,
|
|
|
|
PBOOLEAN OwnerDefaulted);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI RtlSetOwnerSecurityDescriptor(
|
|
|
|
PSECURITY_DESCRIPTOR lpsd,
|
|
|
|
PSID owner,
|
|
|
|
BOOLEAN ownerdefaulted);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI RtlSetGroupSecurityDescriptor (
|
|
|
|
PSECURITY_DESCRIPTOR lpsd,
|
|
|
|
PSID group,
|
|
|
|
BOOLEAN groupdefaulted);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI RtlGetGroupSecurityDescriptor(
|
|
|
|
PSECURITY_DESCRIPTOR SecurityDescriptor,
|
|
|
|
PSID *Group,
|
|
|
|
PBOOLEAN GroupDefaulted);
|
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
NTSTATUS WINAPI RtlMakeSelfRelativeSD(
|
|
|
|
IN PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor,
|
|
|
|
IN PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor,
|
|
|
|
IN OUT LPDWORD lpdwBufferLength);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI RtlGetControlSecurityDescriptor(
|
|
|
|
PSECURITY_DESCRIPTOR pSecurityDescriptor,
|
|
|
|
PSECURITY_DESCRIPTOR_CONTROL pControl,
|
|
|
|
LPDWORD lpdwRevision);
|
1999-02-19 17:29:05 +01:00
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
/* acl functions */
|
|
|
|
|
|
|
|
NTSTATUS WINAPI RtlCreateAcl(
|
|
|
|
PACL acl,
|
|
|
|
DWORD size,
|
|
|
|
DWORD rev);
|
1999-02-19 17:29:05 +01:00
|
|
|
|
|
|
|
BOOLEAN WINAPI RtlFirstFreeAce(
|
|
|
|
PACL acl,
|
1999-03-09 18:46:10 +01:00
|
|
|
PACE_HEADER *x);
|
|
|
|
|
1999-02-19 17:29:05 +01:00
|
|
|
NTSTATUS WINAPI RtlAddAce(
|
|
|
|
PACL acl,
|
|
|
|
DWORD rev,
|
|
|
|
DWORD xnrofaces,
|
1999-03-09 18:46:10 +01:00
|
|
|
PACE_HEADER acestart,
|
1999-02-19 17:29:05 +01:00
|
|
|
DWORD acelen);
|
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
BOOL WINAPI RtlAddAccessAllowedAce(
|
|
|
|
IN OUT PACL pAcl,
|
|
|
|
IN DWORD dwAceRevision,
|
|
|
|
IN DWORD AccessMask,
|
|
|
|
IN PSID pSid);
|
|
|
|
|
|
|
|
BOOL WINAPI AddAccessAllowedAceEx(
|
|
|
|
IN OUT PACL pAcl,
|
|
|
|
IN DWORD dwAceRevision,
|
|
|
|
IN DWORD AceFlags,
|
|
|
|
IN DWORD AccessMask,
|
|
|
|
IN PSID pSid);
|
|
|
|
|
|
|
|
DWORD WINAPI RtlGetAce(
|
|
|
|
PACL pAcl,
|
|
|
|
DWORD dwAceIndex,
|
|
|
|
LPVOID *pAce );
|
|
|
|
|
|
|
|
/* string functions */
|
|
|
|
|
2000-08-26 00:12:42 +02:00
|
|
|
DWORD WINAPI RtlAnsiStringToUnicodeSize(PSTRING);
|
|
|
|
NTSTATUS WINAPI RtlAnsiStringToUnicodeString(UNICODE_STRING*,const STRING *,BOOLEAN);
|
|
|
|
NTSTATUS WINAPI RtlAppendAsciizToString(STRING*,LPCSTR);
|
|
|
|
NTSTATUS WINAPI RtlAppendStringToString(STRING*,const STRING*);
|
|
|
|
NTSTATUS WINAPI RtlAppendUnicodeStringToString(UNICODE_STRING*,const UNICODE_STRING*);
|
|
|
|
NTSTATUS WINAPI RtlAppendUnicodeToString(UNICODE_STRING*,LPCWSTR);
|
|
|
|
LONG WINAPI RtlCompareString(const STRING*,const STRING*,BOOLEAN);
|
|
|
|
LONG WINAPI RtlCompareUnicodeString(const UNICODE_STRING*,const UNICODE_STRING*,BOOLEAN);
|
|
|
|
void WINAPI RtlCopyString(STRING*,const STRING*);
|
|
|
|
void WINAPI RtlCopyUnicodeString(UNICODE_STRING*,const UNICODE_STRING*);
|
|
|
|
BOOLEAN WINAPI RtlCreateUnicodeString(PUNICODE_STRING,LPCWSTR);
|
|
|
|
BOOLEAN WINAPI RtlCreateUnicodeStringFromAsciiz(PUNICODE_STRING,LPCSTR);
|
|
|
|
void WINAPI RtlEraseUnicodeString(UNICODE_STRING*);
|
|
|
|
BOOLEAN WINAPI RtlEqualString(const STRING*,const STRING*,BOOLEAN);
|
|
|
|
BOOLEAN WINAPI RtlEqualUnicodeString(const UNICODE_STRING*,const UNICODE_STRING*,BOOLEAN);
|
|
|
|
void WINAPI RtlFreeAnsiString(PSTRING);
|
|
|
|
void WINAPI RtlFreeOemString(PSTRING);
|
|
|
|
void WINAPI RtlFreeUnicodeString(PUNICODE_STRING);
|
|
|
|
void WINAPI RtlInitAnsiString(PSTRING,LPCSTR);
|
|
|
|
void WINAPI RtlInitString(PSTRING,LPCSTR);
|
|
|
|
void WINAPI RtlInitUnicodeString(PUNICODE_STRING,LPCWSTR);
|
|
|
|
NTSTATUS WINAPI RtlMultiByteToUnicodeN(LPWSTR,DWORD,LPDWORD,LPCSTR,DWORD);
|
|
|
|
NTSTATUS WINAPI RtlMultiByteToUnicodeSize(DWORD*,LPCSTR,UINT);
|
|
|
|
UINT WINAPI RtlOemStringToUnicodeSize(PSTRING);
|
|
|
|
NTSTATUS WINAPI RtlOemStringToUnicodeString(UNICODE_STRING*,const STRING*,BOOLEAN);
|
|
|
|
NTSTATUS WINAPI RtlOemToUnicodeN(LPWSTR,DWORD,LPDWORD,LPCSTR,DWORD);
|
|
|
|
BOOLEAN WINAPI RtlPrefixString(const STRING*,const STRING*,BOOLEAN);
|
|
|
|
BOOLEAN WINAPI RtlPrefixUnicodeString(const UNICODE_STRING*,const UNICODE_STRING*,BOOLEAN);
|
|
|
|
DWORD WINAPI RtlUnicodeStringToAnsiSize(const UNICODE_STRING*);
|
|
|
|
NTSTATUS WINAPI RtlUnicodeStringToAnsiString(STRING*,const UNICODE_STRING*,BOOLEAN);
|
|
|
|
DWORD WINAPI RtlUnicodeStringToOemSize(const UNICODE_STRING*);
|
|
|
|
NTSTATUS WINAPI RtlUnicodeStringToOemString(STRING*,const UNICODE_STRING*,BOOLEAN);
|
|
|
|
NTSTATUS WINAPI RtlUnicodeToMultiByteN(LPSTR,DWORD,LPDWORD,LPCWSTR,DWORD);
|
|
|
|
NTSTATUS WINAPI RtlUnicodeToMultiByteSize(DWORD*,LPCWSTR,UINT);
|
|
|
|
NTSTATUS WINAPI RtlUnicodeToOemN(LPSTR,DWORD,LPDWORD,LPCWSTR,DWORD);
|
|
|
|
NTSTATUS WINAPI RtlUpcaseUnicodeString(UNICODE_STRING*,const UNICODE_STRING *,BOOLEAN);
|
|
|
|
NTSTATUS WINAPI RtlUpcaseUnicodeStringToAnsiString(STRING*,const UNICODE_STRING*,BOOLEAN);
|
|
|
|
NTSTATUS WINAPI RtlUpcaseUnicodeStringToOemString(STRING*,const UNICODE_STRING*,BOOLEAN);
|
|
|
|
NTSTATUS WINAPI RtlUpcaseUnicodeToMultiByteN(LPSTR,DWORD,LPDWORD,LPCWSTR,DWORD);
|
|
|
|
NTSTATUS WINAPI RtlUpcaseUnicodeToOemN(LPSTR,DWORD,LPDWORD,LPCWSTR,DWORD);
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
|
|
|
|
DWORD WINAPI RtlIsTextUnicode(
|
|
|
|
LPVOID buf,
|
|
|
|
DWORD len,
|
|
|
|
DWORD *pf);
|
|
|
|
|
|
|
|
/* resource functions */
|
1999-03-09 18:46:10 +01:00
|
|
|
|
|
|
|
typedef struct _RTL_RWLOCK {
|
|
|
|
CRITICAL_SECTION rtlCS;
|
|
|
|
HANDLE hSharedReleaseSemaphore;
|
|
|
|
UINT uSharedWaiters;
|
|
|
|
HANDLE hExclusiveReleaseSemaphore;
|
|
|
|
UINT uExclusiveWaiters;
|
|
|
|
INT iNumberActive;
|
|
|
|
HANDLE hOwningThreadId;
|
|
|
|
DWORD dwTimeoutBoost;
|
|
|
|
PVOID pDebugInfo;
|
|
|
|
} RTL_RWLOCK, *LPRTL_RWLOCK;
|
|
|
|
|
|
|
|
VOID WINAPI RtlInitializeResource(
|
|
|
|
LPRTL_RWLOCK);
|
|
|
|
|
|
|
|
VOID WINAPI RtlDeleteResource(
|
|
|
|
LPRTL_RWLOCK);
|
|
|
|
|
|
|
|
BYTE WINAPI RtlAcquireResourceExclusive(
|
|
|
|
LPRTL_RWLOCK, BYTE fWait);
|
|
|
|
|
|
|
|
BYTE WINAPI RtlAcquireResourceShared(
|
|
|
|
LPRTL_RWLOCK, BYTE fWait);
|
|
|
|
|
|
|
|
VOID WINAPI RtlReleaseResource(
|
|
|
|
LPRTL_RWLOCK);
|
|
|
|
|
|
|
|
VOID WINAPI RtlDumpResource(
|
|
|
|
LPRTL_RWLOCK);
|
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
/* time functions */
|
1999-03-09 18:46:10 +01:00
|
|
|
|
|
|
|
typedef struct _TIME_FIELDS
|
|
|
|
{ CSHORT Year;
|
|
|
|
CSHORT Month;
|
|
|
|
CSHORT Day;
|
|
|
|
CSHORT Hour;
|
|
|
|
CSHORT Minute;
|
|
|
|
CSHORT Second;
|
|
|
|
CSHORT Milliseconds;
|
|
|
|
CSHORT Weekday;
|
|
|
|
} TIME_FIELDS;
|
|
|
|
|
|
|
|
typedef TIME_FIELDS *PTIME_FIELDS;
|
|
|
|
|
|
|
|
VOID WINAPI RtlSystemTimeToLocalTime(
|
|
|
|
IN PLARGE_INTEGER SystemTime,
|
|
|
|
OUT PLARGE_INTEGER LocalTime);
|
|
|
|
|
|
|
|
VOID WINAPI RtlTimeToTimeFields(
|
|
|
|
PLARGE_INTEGER liTime,
|
|
|
|
PTIME_FIELDS TimeFields);
|
|
|
|
|
|
|
|
BOOLEAN WINAPI RtlTimeFieldsToTime(
|
|
|
|
PTIME_FIELDS tfTimeFields,
|
|
|
|
PLARGE_INTEGER Time);
|
|
|
|
|
|
|
|
VOID WINAPI RtlTimeToElapsedTimeFields(
|
|
|
|
PLARGE_INTEGER liTime,
|
|
|
|
PTIME_FIELDS TimeFields);
|
|
|
|
|
2000-10-01 03:40:42 +02:00
|
|
|
void WINAPI NtQuerySystemTime( LARGE_INTEGER *time );
|
1999-03-09 18:46:10 +01:00
|
|
|
|
2000-10-01 03:40:42 +02:00
|
|
|
BOOLEAN WINAPI RtlTimeToSecondsSince1980( const FILETIME *time, LPDWORD res );
|
|
|
|
BOOLEAN WINAPI RtlTimeToSecondsSince1970( const FILETIME *time, LPDWORD res );
|
|
|
|
void WINAPI RtlSecondsSince1970ToTime( DWORD time, FILETIME *res );
|
|
|
|
void WINAPI RtlSecondsSince1980ToTime( DWORD time, FILETIME *res );
|
2000-07-29 23:56:59 +02:00
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
/* heap functions */
|
1999-02-19 17:29:05 +01:00
|
|
|
|
1999-03-09 18:46:10 +01:00
|
|
|
/* Data structure for heap definition. This includes various
|
|
|
|
sizing parameters and callback routines, which, if left NULL,
|
|
|
|
result in default behavior */
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{ ULONG Length; /* = sizeof(RTL_HEAP_DEFINITION) */
|
|
|
|
ULONG Unknown[11];
|
|
|
|
} RTL_HEAP_DEFINITION, *PRTL_HEAP_DEFINITION;
|
|
|
|
|
|
|
|
HANDLE WINAPI RtlCreateHeap(
|
|
|
|
ULONG Flags,
|
|
|
|
PVOID BaseAddress,
|
|
|
|
ULONG SizeToReserve,
|
|
|
|
ULONG SizeToCommit,
|
|
|
|
PVOID Unknown,
|
|
|
|
PRTL_HEAP_DEFINITION Definition);
|
|
|
|
|
|
|
|
PVOID WINAPI RtlAllocateHeap(
|
|
|
|
HANDLE Heap,
|
|
|
|
ULONG Flags,
|
|
|
|
ULONG Size);
|
|
|
|
|
|
|
|
|
|
|
|
BOOLEAN WINAPI RtlFreeHeap(
|
|
|
|
HANDLE Heap,
|
|
|
|
ULONG Flags,
|
|
|
|
PVOID Address);
|
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
/* exception */
|
|
|
|
|
|
|
|
void WINAPI NtRaiseException(
|
|
|
|
PEXCEPTION_RECORD,PCONTEXT,BOOL);
|
|
|
|
|
|
|
|
void WINAPI RtlRaiseException(
|
|
|
|
PEXCEPTION_RECORD);
|
|
|
|
|
|
|
|
void WINAPI RtlRaiseStatus(
|
|
|
|
NTSTATUS);
|
|
|
|
|
|
|
|
void WINAPI RtlUnwind(
|
|
|
|
PEXCEPTION_FRAME,
|
|
|
|
LPVOID,
|
|
|
|
PEXCEPTION_RECORD,DWORD);
|
|
|
|
|
|
|
|
/* process environment block */
|
1999-02-19 17:29:05 +01:00
|
|
|
VOID WINAPI RtlAcquirePebLock(void);
|
|
|
|
VOID WINAPI RtlReleasePebLock(void);
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
|
|
|
|
/* mathematics */
|
2000-10-01 03:40:42 +02:00
|
|
|
LONGLONG WINAPI RtlConvertLongToLargeInteger( LONG a );
|
|
|
|
LONGLONG WINAPI RtlEnlargedIntegerMultiply( INT a, INT b );
|
|
|
|
LONGLONG WINAPI RtlExtendedMagicDivide( LONGLONG a, LONGLONG b, INT shift );
|
|
|
|
LONGLONG WINAPI RtlExtendedIntegerMultiply( LONGLONG a, INT b );
|
|
|
|
LONGLONG WINAPI RtlExtendedLargeIntegerDivide( LONGLONG a, INT b, INT *rem );
|
|
|
|
LONGLONG WINAPI RtlLargeIntegerAdd( LONGLONG a, LONGLONG b );
|
|
|
|
LONGLONG WINAPI RtlLargeIntegerArithmeticShift( LONGLONG a, INT count );
|
|
|
|
LONGLONG WINAPI RtlLargeIntegerNegate( LONGLONG a );
|
|
|
|
LONGLONG WINAPI RtlLargeIntegerShiftLeft( LONGLONG a, INT count );
|
|
|
|
LONGLONG WINAPI RtlLargeIntegerShiftRight( LONGLONG a, INT count );
|
|
|
|
LONGLONG WINAPI RtlLargeIntegerSubtract( LONGLONG a, LONGLONG b );
|
2000-10-13 22:26:03 +02:00
|
|
|
ULONGLONG WINAPI RtlEnlargedUnsignedMultiply( UINT a, UINT b );
|
2000-10-01 03:40:42 +02:00
|
|
|
UINT WINAPI RtlEnlargedUnsignedDivide( ULONGLONG a, UINT b, UINT *remptr );
|
|
|
|
ULONGLONG WINAPI RtlConvertUlongToLargeInteger( ULONG a );
|
|
|
|
ULONGLONG WINAPI RtlLargeIntegerDivide( ULONGLONG a, ULONGLONG b, ULONGLONG *rem );
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
|
|
|
|
/* environment */
|
|
|
|
DWORD WINAPI RtlCreateEnvironment(
|
|
|
|
DWORD x1,
|
|
|
|
DWORD x2);
|
|
|
|
|
|
|
|
DWORD WINAPI RtlDestroyEnvironment(
|
|
|
|
DWORD x);
|
|
|
|
|
|
|
|
DWORD WINAPI RtlQueryEnvironmentVariable_U(
|
|
|
|
DWORD x1,
|
|
|
|
PUNICODE_STRING key,
|
|
|
|
PUNICODE_STRING val) ;
|
|
|
|
|
|
|
|
DWORD WINAPI RtlSetEnvironmentVariable(
|
|
|
|
DWORD x1,
|
|
|
|
PUNICODE_STRING key,
|
|
|
|
PUNICODE_STRING val);
|
|
|
|
|
|
|
|
/* object security */
|
|
|
|
|
|
|
|
DWORD WINAPI RtlNewSecurityObject(
|
|
|
|
DWORD x1,
|
|
|
|
DWORD x2,
|
|
|
|
DWORD x3,
|
|
|
|
DWORD x4,
|
|
|
|
DWORD x5,
|
|
|
|
DWORD x6);
|
|
|
|
|
|
|
|
DWORD WINAPI RtlDeleteSecurityObject(
|
|
|
|
DWORD x1);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI
|
|
|
|
NtQuerySecurityObject(
|
|
|
|
IN HANDLE Object,
|
|
|
|
IN SECURITY_INFORMATION RequestedInformation,
|
|
|
|
OUT PSECURITY_DESCRIPTOR pSecurityDesriptor,
|
|
|
|
IN ULONG Length,
|
|
|
|
OUT PULONG ResultLength);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI
|
|
|
|
NtSetSecurityObject(
|
|
|
|
IN HANDLE Handle,
|
|
|
|
IN SECURITY_INFORMATION SecurityInformation,
|
|
|
|
IN PSECURITY_DESCRIPTOR SecurityDescriptor);
|
|
|
|
|
2000-02-25 22:36:57 +01:00
|
|
|
/* registry functions */
|
|
|
|
|
2000-08-26 23:17:42 +02:00
|
|
|
NTSTATUS WINAPI NtCreateKey(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,ULONG,
|
|
|
|
const UNICODE_STRING*,ULONG,PULONG);
|
|
|
|
NTSTATUS WINAPI NtDeleteKey(HANDLE);
|
|
|
|
NTSTATUS WINAPI NtDeleteValueKey(HANDLE,const UNICODE_STRING*);
|
|
|
|
NTSTATUS WINAPI NtOpenKey(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*);
|
2000-10-15 02:39:11 +02:00
|
|
|
NTSTATUS WINAPI NtQueryKey(HANDLE,KEY_INFORMATION_CLASS,void*,DWORD,DWORD*);
|
2000-10-01 03:40:42 +02:00
|
|
|
NTSTATUS WINAPI NtSetValueKey(HANDLE,const UNICODE_STRING*,ULONG,ULONG,const void*,ULONG);
|
2000-10-02 05:46:58 +02:00
|
|
|
NTSTATUS WINAPI NtEnumerateKey(HANDLE,ULONG,KEY_INFORMATION_CLASS,void*,DWORD,DWORD*);
|
2000-10-01 03:40:42 +02:00
|
|
|
NTSTATUS WINAPI NtQueryValueKey(HANDLE,const UNICODE_STRING*,KEY_VALUE_INFORMATION_CLASS,
|
|
|
|
void*,DWORD,DWORD*);
|
2000-10-15 02:39:11 +02:00
|
|
|
NTSTATUS WINAPI NtLoadKey(const OBJECT_ATTRIBUTES*,const OBJECT_ATTRIBUTES*);
|
2000-10-01 03:40:42 +02:00
|
|
|
|
2000-02-25 22:36:57 +01:00
|
|
|
|
|
|
|
NTSTATUS WINAPI NtEnumerateValueKey(
|
|
|
|
HANDLE KeyHandle,
|
|
|
|
ULONG Index,
|
|
|
|
KEY_VALUE_INFORMATION_CLASS KeyInformationClass,
|
|
|
|
PVOID KeyInformation,
|
|
|
|
ULONG Length,
|
|
|
|
PULONG ResultLength);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI NtFlushKey(HANDLE KeyHandle);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI NtNotifyChangeKey(
|
|
|
|
IN HANDLE KeyHandle,
|
|
|
|
IN HANDLE Event,
|
|
|
|
IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
|
|
|
|
IN PVOID ApcContext OPTIONAL,
|
|
|
|
OUT PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
IN ULONG CompletionFilter,
|
|
|
|
IN BOOLEAN Asynchroneous,
|
|
|
|
OUT PVOID ChangeBuffer,
|
|
|
|
IN ULONG Length,
|
|
|
|
IN BOOLEAN WatchSubtree);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI NtQueryMultipleValueKey(
|
|
|
|
HANDLE KeyHandle,
|
|
|
|
PVALENTW ListOfValuesToQuery,
|
|
|
|
ULONG NumberOfItems,
|
|
|
|
PVOID MultipleValueInformation,
|
|
|
|
ULONG Length,
|
|
|
|
PULONG ReturnLength);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI NtReplaceKey(
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
IN HANDLE Key,
|
|
|
|
IN POBJECT_ATTRIBUTES ReplacedObjectAttributes);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI NtRestoreKey(
|
|
|
|
HANDLE KeyHandle,
|
|
|
|
HANDLE FileHandle,
|
|
|
|
ULONG RestoreFlags);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI NtSaveKey(
|
|
|
|
IN HANDLE KeyHandle,
|
|
|
|
IN HANDLE FileHandle);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI NtSetInformationKey(
|
|
|
|
IN HANDLE KeyHandle,
|
|
|
|
IN const int KeyInformationClass,
|
|
|
|
IN PVOID KeyInformation,
|
|
|
|
IN ULONG KeyInformationLength);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI NtUnloadKey(
|
|
|
|
IN HANDLE KeyHandle);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI NtClose(
|
|
|
|
HANDLE Handle);
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
|
2000-07-29 23:56:59 +02:00
|
|
|
NTSTATUS WINAPI NtTerminateProcess( HANDLE handle, LONG exit_code );
|
2000-08-30 02:00:48 +02:00
|
|
|
NTSTATUS WINAPI NtTerminateThread( HANDLE handle, LONG exit_code );
|
2000-07-29 23:56:59 +02:00
|
|
|
|
2000-09-29 22:48:04 +02:00
|
|
|
NTSTATUS WINAPI NtClearEvent(HANDLE);
|
2000-08-30 02:00:48 +02:00
|
|
|
NTSTATUS WINAPI NtCreateEvent(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES *,BOOLEAN,BOOLEAN);
|
|
|
|
NTSTATUS WINAPI NtCreateSemaphore(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,ULONG,ULONG);
|
2000-09-29 22:48:04 +02:00
|
|
|
NTSTATUS WINAPI NtOpenEvent(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES *attr);
|
|
|
|
NTSTATUS WINAPI NtPulseEvent(HANDLE,PULONG);
|
|
|
|
NTSTATUS WINAPI NtReleaseSemaphore(HANDLE,ULONG,PULONG);
|
|
|
|
NTSTATUS WINAPI NtResetEvent(HANDLE,PULONG);
|
|
|
|
NTSTATUS WINAPI NtSetEvent(HANDLE,PULONG);
|
2000-07-29 23:56:59 +02:00
|
|
|
|
2000-09-29 02:31:23 +02:00
|
|
|
NTSTATUS WINAPI RtlInitializeCriticalSection( RTL_CRITICAL_SECTION *crit );
|
2000-10-29 02:24:54 +01:00
|
|
|
NTSTATUS WINAPI RtlInitializeCriticalSectionAndSpinCount( RTL_CRITICAL_SECTION *crit, DWORD spincount );
|
2000-09-29 02:31:23 +02:00
|
|
|
NTSTATUS WINAPI RtlDeleteCriticalSection( RTL_CRITICAL_SECTION *crit );
|
|
|
|
NTSTATUS WINAPI RtlpWaitForCriticalSection( RTL_CRITICAL_SECTION *crit );
|
|
|
|
NTSTATUS WINAPI RtlpUnWaitCriticalSection( RTL_CRITICAL_SECTION *crit );
|
|
|
|
NTSTATUS WINAPI RtlEnterCriticalSection( RTL_CRITICAL_SECTION *crit );
|
|
|
|
BOOL WINAPI RtlTryEnterCriticalSection( RTL_CRITICAL_SECTION *crit );
|
|
|
|
NTSTATUS WINAPI RtlLeaveCriticalSection( RTL_CRITICAL_SECTION *crit );
|
2000-07-29 23:56:59 +02:00
|
|
|
|
2000-08-14 19:39:15 +02:00
|
|
|
/* string functions */
|
|
|
|
extern LPSTR _strlwr( LPSTR str );
|
|
|
|
extern LPSTR _strupr( LPSTR str );
|
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
/* misc */
|
|
|
|
|
2000-03-08 17:41:37 +01:00
|
|
|
#if defined(__i386__) && defined(__GNUC__)
|
|
|
|
static inline void WINAPI DbgBreakPoint(void) { __asm__ __volatile__("int3"); }
|
|
|
|
static inline void WINAPI DbgUserBreakPoint(void) { __asm__ __volatile__("int3"); }
|
|
|
|
#else /* __i386__ && __GNUC__ */
|
2000-03-07 14:10:21 +01:00
|
|
|
void WINAPI DbgBreakPoint(void);
|
2000-03-08 17:41:37 +01:00
|
|
|
void WINAPI DbgUserBreakPoint(void);
|
|
|
|
#endif /* __i386__ && __GNUC__ */
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
void WINAPIV DbgPrint(LPCSTR fmt, ...);
|
|
|
|
|
1999-02-19 17:29:05 +01:00
|
|
|
DWORD WINAPI RtlAdjustPrivilege(DWORD x1,DWORD x2,DWORD x3,DWORD x4);
|
|
|
|
DWORD WINAPI RtlIntegerToChar(DWORD x1,DWORD x2,DWORD x3,DWORD x4);
|
|
|
|
LPVOID WINAPI RtlNormalizeProcessParams(LPVOID x);
|
|
|
|
DWORD WINAPI RtlNtStatusToDosError(DWORD error);
|
|
|
|
BOOLEAN WINAPI RtlGetNtProductType(LPDWORD type);
|
2000-08-10 00:35:05 +02:00
|
|
|
PIMAGE_NT_HEADERS WINAPI RtlImageNtHeader(HMODULE hModule);
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
|
|
|
|
DWORD WINAPI RtlOpenCurrentUser(
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
OUT PHANDLE KeyHandle);
|
|
|
|
|
1999-02-19 17:29:05 +01:00
|
|
|
BOOLEAN WINAPI RtlDosPathNameToNtPathName_U( LPWSTR from,PUNICODE_STRING us,DWORD x2,DWORD x3);
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
BOOL WINAPI RtlImpersonateSelf(SECURITY_IMPERSONATION_LEVEL ImpersonationLevel);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI
|
|
|
|
NtAccessCheck(
|
|
|
|
IN PSECURITY_DESCRIPTOR SecurityDescriptor,
|
|
|
|
IN HANDLE ClientToken,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN PGENERIC_MAPPING GenericMapping,
|
|
|
|
OUT PPRIVILEGE_SET PrivilegeSet,
|
|
|
|
OUT PULONG ReturnLength,
|
|
|
|
OUT PULONG GrantedAccess,
|
|
|
|
OUT PBOOLEAN AccessStatus);
|
1999-03-09 18:46:10 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
1999-02-19 17:29:05 +01:00
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 23:35:33 +01:00
|
|
|
#include "poppack.h"
|
|
|
|
|
1999-02-12 14:44:38 +01:00
|
|
|
#endif
|