2006-05-10 17:47:44 +00:00
|
|
|
/*++ NDK Version: 0098
|
2005-11-22 04:57:45 +00:00
|
|
|
|
|
|
|
Copyright (c) Alex Ionescu. All rights reserved.
|
|
|
|
|
|
|
|
Header Name:
|
|
|
|
|
|
|
|
obtypes.h
|
|
|
|
|
|
|
|
Abstract:
|
|
|
|
|
|
|
|
Type definitions for the Object Manager
|
2005-06-18 23:33:40 +00:00
|
|
|
|
2005-11-22 04:57:45 +00:00
|
|
|
Author:
|
2005-06-18 23:33:40 +00:00
|
|
|
|
2006-05-10 17:47:44 +00:00
|
|
|
Alex Ionescu (alexi@tinykrnl.org) - Updated - 27-Feb-2006
|
2005-06-18 23:33:40 +00:00
|
|
|
|
2005-11-22 04:57:45 +00:00
|
|
|
--*/
|
2005-06-18 23:33:40 +00:00
|
|
|
|
2005-11-22 04:57:45 +00:00
|
|
|
#ifndef _OBFUNCS_H
|
|
|
|
#define _OBFUNCS_H
|
|
|
|
|
|
|
|
//
|
|
|
|
// Dependencies
|
|
|
|
//
|
2005-11-25 00:17:40 +00:00
|
|
|
#include <umtypes.h>
|
2007-01-08 18:11:24 +00:00
|
|
|
#include <pstypes.h>
|
2006-11-16 06:55:59 +00:00
|
|
|
#include <obtypes.h>
|
2005-11-25 00:17:40 +00:00
|
|
|
|
|
|
|
#ifndef NTOS_MODE_USER
|
2005-11-22 04:57:45 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Object Functions
|
|
|
|
//
|
2006-10-26 01:49:51 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ObAssignSecurity(
|
|
|
|
IN PACCESS_STATE AccessState,
|
|
|
|
IN PSECURITY_DESCRIPTOR SecurityDescriptor,
|
|
|
|
IN PVOID Object,
|
|
|
|
IN POBJECT_TYPE Type
|
|
|
|
);
|
|
|
|
|
2006-07-20 15:46:10 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ObCloseHandle(
|
|
|
|
IN HANDLE Handle,
|
|
|
|
IN KPROCESSOR_MODE AccessMode
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTKERNELAPI
|
2005-06-18 23:33:40 +00:00
|
|
|
NTSTATUS
|
2005-09-05 04:48:20 +00:00
|
|
|
NTAPI
|
2005-11-22 04:57:45 +00:00
|
|
|
ObCreateObject(
|
|
|
|
IN KPROCESSOR_MODE ObjectAttributesAccessMode OPTIONAL,
|
|
|
|
IN POBJECT_TYPE ObjectType,
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
|
|
|
|
IN KPROCESSOR_MODE AccessMode,
|
|
|
|
IN OUT PVOID ParseContext OPTIONAL,
|
|
|
|
IN ULONG ObjectSize,
|
|
|
|
IN ULONG PagedPoolCharge OPTIONAL,
|
|
|
|
IN ULONG NonPagedPoolCharge OPTIONAL,
|
|
|
|
OUT PVOID *Object
|
2005-06-18 23:33:40 +00:00
|
|
|
);
|
|
|
|
|
2006-10-08 20:28:03 +00:00
|
|
|
NTKERNELAPI
|
2006-06-05 06:31:42 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ObCreateObjectType(
|
|
|
|
IN PUNICODE_STRING TypeName,
|
|
|
|
IN POBJECT_TYPE_INITIALIZER ObjectTypeInitializer,
|
|
|
|
IN PVOID Reserved,
|
|
|
|
OUT POBJECT_TYPE *ObjectType
|
|
|
|
);
|
|
|
|
|
2010-03-12 16:37:33 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
ObDereferenceSecurityDescriptor(
|
|
|
|
PSECURITY_DESCRIPTOR SecurityDescriptor,
|
|
|
|
ULONG Count
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTKERNELAPI
|
2005-06-18 23:33:40 +00:00
|
|
|
ULONG
|
2005-09-05 04:48:20 +00:00
|
|
|
NTAPI
|
2005-11-22 04:57:45 +00:00
|
|
|
ObGetObjectPointerCount(
|
2005-06-18 23:33:40 +00:00
|
|
|
IN PVOID Object
|
|
|
|
);
|
|
|
|
|
2010-03-12 16:37:33 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ObLogSecurityDescriptor(
|
|
|
|
IN PSECURITY_DESCRIPTOR InputSecurityDescriptor,
|
|
|
|
OUT PSECURITY_DESCRIPTOR *OutputSecurityDescriptor,
|
|
|
|
IN ULONG RefBias
|
|
|
|
);
|
|
|
|
|
2006-10-08 20:28:03 +00:00
|
|
|
NTKERNELAPI
|
2006-10-06 06:36:35 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ObOpenObjectByName(
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
IN POBJECT_TYPE ObjectType,
|
|
|
|
IN KPROCESSOR_MODE AccessMode,
|
|
|
|
IN PACCESS_STATE PassedAccessState,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN OUT PVOID ParseContext,
|
|
|
|
OUT PHANDLE Handle
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTKERNELAPI
|
2005-06-18 23:33:40 +00:00
|
|
|
NTSTATUS
|
2005-09-05 04:48:20 +00:00
|
|
|
NTAPI
|
2005-11-22 04:57:45 +00:00
|
|
|
ObReferenceObjectByName(
|
|
|
|
IN PUNICODE_STRING ObjectName,
|
|
|
|
IN ULONG Attributes,
|
|
|
|
IN PACCESS_STATE PassedAccessState OPTIONAL,
|
|
|
|
IN ACCESS_MASK DesiredAccess OPTIONAL,
|
|
|
|
IN POBJECT_TYPE ObjectType,
|
|
|
|
IN KPROCESSOR_MODE AccessMode,
|
|
|
|
IN OUT PVOID ParseContext OPTIONAL,
|
|
|
|
OUT PVOID *Object
|
2005-06-18 23:33:40 +00:00
|
|
|
);
|
|
|
|
|
2010-03-12 16:37:33 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
ObReferenceSecurityDescriptor(
|
|
|
|
IN PSECURITY_DESCRIPTOR SecurityDescriptor,
|
|
|
|
IN ULONG Count
|
|
|
|
);
|
|
|
|
|
2008-06-02 10:21:49 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ObSetSecurityObjectByPointer(
|
|
|
|
IN PVOID Object,
|
|
|
|
IN SECURITY_INFORMATION SecurityInformation,
|
|
|
|
IN PSECURITY_DESCRIPTOR SecurityDescriptor
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTKERNELAPI
|
2007-01-08 19:40:10 +00:00
|
|
|
BOOLEAN
|
2005-09-05 04:48:20 +00:00
|
|
|
NTAPI
|
2005-06-25 20:05:56 +00:00
|
|
|
ObFindHandleForObject(
|
|
|
|
IN PEPROCESS Process,
|
|
|
|
IN PVOID Object,
|
|
|
|
IN POBJECT_TYPE ObjectType,
|
|
|
|
IN POBJECT_HANDLE_INFORMATION HandleInformation,
|
|
|
|
OUT PHANDLE Handle
|
|
|
|
);
|
|
|
|
|
2007-01-08 07:44:22 +00:00
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
ObDereferenceObjectDeferDelete(
|
|
|
|
IN PVOID Object
|
|
|
|
);
|
|
|
|
|
2005-06-18 23:33:40 +00:00
|
|
|
#endif
|
2005-11-25 00:17:40 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Native Calls
|
|
|
|
//
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtClose(
|
|
|
|
IN HANDLE Handle
|
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtCloseObjectAuditAlarm(
|
|
|
|
IN PUNICODE_STRING SubsystemName,
|
|
|
|
IN PVOID HandleId,
|
|
|
|
IN BOOLEAN GenerateOnClose
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtCreateDirectoryObject(
|
|
|
|
OUT PHANDLE DirectoryHandle,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtCreateSymbolicLinkObject(
|
|
|
|
OUT PHANDLE SymbolicLinkHandle,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
IN PUNICODE_STRING Name
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtDeleteObjectAuditAlarm(
|
|
|
|
IN PUNICODE_STRING SubsystemName,
|
|
|
|
IN PVOID HandleId,
|
|
|
|
IN BOOLEAN GenerateOnClose
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtDuplicateObject(
|
|
|
|
IN HANDLE SourceProcessHandle,
|
|
|
|
IN HANDLE SourceHandle,
|
|
|
|
IN HANDLE TargetProcessHandle,
|
|
|
|
OUT PHANDLE TargetHandle,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN ULONG HandleAttributes,
|
|
|
|
IN ULONG Options
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtMakePermanentObject(
|
|
|
|
IN HANDLE Object
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtMakeTemporaryObject(
|
|
|
|
IN HANDLE Handle
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtOpenDirectoryObject(
|
|
|
|
OUT PHANDLE FileHandle,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtOpenJobObject(
|
|
|
|
PHANDLE JobHandle,
|
|
|
|
ACCESS_MASK DesiredAccess,
|
|
|
|
POBJECT_ATTRIBUTES ObjectAttributes
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtOpenSymbolicLinkObject(
|
|
|
|
OUT PHANDLE SymbolicLinkHandle,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryDirectoryObject(
|
|
|
|
IN HANDLE DirectoryHandle,
|
|
|
|
OUT PVOID Buffer,
|
|
|
|
IN ULONG BufferLength,
|
|
|
|
IN BOOLEAN ReturnSingleEntry,
|
|
|
|
IN BOOLEAN RestartScan,
|
|
|
|
IN OUT PULONG Context,
|
|
|
|
OUT PULONG ReturnLength OPTIONAL
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryObject(
|
|
|
|
IN HANDLE ObjectHandle,
|
|
|
|
IN OBJECT_INFORMATION_CLASS ObjectInformationClass,
|
|
|
|
OUT PVOID ObjectInformation,
|
|
|
|
IN ULONG Length,
|
|
|
|
OUT PULONG ResultLength OPTIONAL
|
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQuerySecurityObject(
|
|
|
|
IN HANDLE Handle,
|
|
|
|
IN SECURITY_INFORMATION SecurityInformation,
|
|
|
|
OUT PSECURITY_DESCRIPTOR SecurityDescriptor,
|
|
|
|
IN ULONG Length,
|
|
|
|
OUT PULONG ResultLength
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQuerySymbolicLinkObject(
|
|
|
|
IN HANDLE SymLinkObjHandle,
|
|
|
|
OUT PUNICODE_STRING LinkTarget,
|
|
|
|
OUT PULONG DataWritten OPTIONAL
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetInformationObject(
|
|
|
|
IN HANDLE ObjectHandle,
|
|
|
|
IN OBJECT_INFORMATION_CLASS ObjectInformationClass,
|
|
|
|
IN PVOID ObjectInformation,
|
|
|
|
IN ULONG Length
|
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetSecurityObject(
|
|
|
|
IN HANDLE Handle,
|
|
|
|
IN SECURITY_INFORMATION SecurityInformation,
|
|
|
|
IN PSECURITY_DESCRIPTOR SecurityDescriptor
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSignalAndWaitForSingleObject(
|
|
|
|
IN HANDLE SignalObject,
|
|
|
|
IN HANDLE WaitObject,
|
|
|
|
IN BOOLEAN Alertable,
|
|
|
|
IN PLARGE_INTEGER Time
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtWaitForMultipleObjects(
|
|
|
|
IN ULONG Count,
|
|
|
|
IN HANDLE Object[],
|
|
|
|
IN WAIT_TYPE WaitType,
|
|
|
|
IN BOOLEAN Alertable,
|
|
|
|
IN PLARGE_INTEGER Time
|
|
|
|
);
|
|
|
|
|
2006-10-23 21:19:15 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtWaitForMultipleObjects32(
|
|
|
|
IN ULONG ObjectCount,
|
|
|
|
IN PLONG Handles,
|
|
|
|
IN WAIT_TYPE WaitType,
|
|
|
|
IN BOOLEAN Alertable,
|
|
|
|
IN PLARGE_INTEGER TimeOut OPTIONAL
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtWaitForSingleObject(
|
|
|
|
IN HANDLE Object,
|
|
|
|
IN BOOLEAN Alertable,
|
|
|
|
IN PLARGE_INTEGER Time
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwClose(
|
|
|
|
IN HANDLE Handle
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwCloseObjectAuditAlarm(
|
|
|
|
IN PUNICODE_STRING SubsystemName,
|
|
|
|
IN PVOID HandleId,
|
|
|
|
IN BOOLEAN GenerateOnClose
|
|
|
|
);
|
|
|
|
|
2005-11-28 21:40:21 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwCreateDirectoryObject(
|
|
|
|
OUT PHANDLE DirectoryHandle,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwCreateSymbolicLinkObject(
|
|
|
|
OUT PHANDLE SymbolicLinkHandle,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
IN PUNICODE_STRING Name
|
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwDeleteObjectAuditAlarm(
|
|
|
|
IN PUNICODE_STRING SubsystemName,
|
|
|
|
IN PVOID HandleId,
|
|
|
|
IN BOOLEAN GenerateOnClose
|
|
|
|
);
|
|
|
|
|
2006-01-03 21:34:19 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwDuplicateObject(
|
|
|
|
IN HANDLE SourceProcessHandle,
|
|
|
|
IN HANDLE SourceHandle,
|
|
|
|
IN HANDLE TargetProcessHandle,
|
|
|
|
OUT PHANDLE TargetHandle,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN ULONG HandleAttributes,
|
|
|
|
IN ULONG Options
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwMakePermanentObject(
|
|
|
|
IN HANDLE Object
|
|
|
|
);
|
|
|
|
|
2005-11-28 21:40:21 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwMakeTemporaryObject(
|
|
|
|
IN HANDLE Handle
|
|
|
|
);
|
|
|
|
|
2006-01-03 21:34:19 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwOpenDirectoryObject(
|
|
|
|
OUT PHANDLE FileHandle,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwOpenJobObject(
|
|
|
|
PHANDLE JobHandle,
|
|
|
|
ACCESS_MASK DesiredAccess,
|
|
|
|
POBJECT_ATTRIBUTES ObjectAttributes
|
|
|
|
);
|
|
|
|
|
2005-11-28 21:40:21 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwOpenSymbolicLinkObject(
|
|
|
|
OUT PHANDLE SymbolicLinkHandle,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQueryDirectoryObject(
|
|
|
|
IN HANDLE DirectoryHandle,
|
|
|
|
OUT PVOID Buffer,
|
|
|
|
IN ULONG BufferLength,
|
|
|
|
IN BOOLEAN ReturnSingleEntry,
|
|
|
|
IN BOOLEAN RestartScan,
|
|
|
|
IN OUT PULONG Context,
|
|
|
|
OUT PULONG ReturnLength OPTIONAL
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQueryObject(
|
|
|
|
IN HANDLE ObjectHandle,
|
|
|
|
IN OBJECT_INFORMATION_CLASS ObjectInformationClass,
|
|
|
|
OUT PVOID ObjectInformation,
|
|
|
|
IN ULONG Length,
|
|
|
|
OUT PULONG ResultLength OPTIONAL
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQuerySecurityObject(
|
|
|
|
IN HANDLE Handle,
|
|
|
|
IN SECURITY_INFORMATION SecurityInformation,
|
|
|
|
OUT PSECURITY_DESCRIPTOR SecurityDescriptor,
|
|
|
|
IN ULONG Length,
|
|
|
|
OUT PULONG ResultLength
|
|
|
|
);
|
|
|
|
|
2005-11-28 21:40:21 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQuerySymbolicLinkObject(
|
|
|
|
IN HANDLE SymLinkObjHandle,
|
|
|
|
OUT PUNICODE_STRING LinkTarget,
|
|
|
|
OUT PULONG DataWritten OPTIONAL
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetInformationObject(
|
|
|
|
IN HANDLE ObjectHandle,
|
|
|
|
IN OBJECT_INFORMATION_CLASS ObjectInformationClass,
|
|
|
|
IN PVOID ObjectInformation,
|
|
|
|
IN ULONG Length
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetSecurityObject(
|
|
|
|
IN HANDLE Handle,
|
|
|
|
IN SECURITY_INFORMATION SecurityInformation,
|
|
|
|
IN PSECURITY_DESCRIPTOR SecurityDescriptor
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSignalAndWaitForSingleObject(
|
|
|
|
IN HANDLE SignalObject,
|
|
|
|
IN HANDLE WaitObject,
|
|
|
|
IN BOOLEAN Alertable,
|
|
|
|
IN PLARGE_INTEGER Time
|
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwWaitForMultipleObjects(
|
|
|
|
IN ULONG Count,
|
|
|
|
IN HANDLE Object[],
|
|
|
|
IN WAIT_TYPE WaitType,
|
|
|
|
IN BOOLEAN Alertable,
|
|
|
|
IN PLARGE_INTEGER Time
|
|
|
|
);
|
|
|
|
|
2006-01-03 21:34:19 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwWaitForSingleObject(
|
|
|
|
IN HANDLE Object,
|
|
|
|
IN BOOLEAN Alertable,
|
|
|
|
IN PLARGE_INTEGER Time
|
|
|
|
);
|
|
|
|
|
|
|
|
#endif
|