ReactOS  0.4.13-dev-479-gec9c8fd
cmfuncs.h File Reference
#include <umtypes.h>
#include <cmtypes.h>
Include dependency graph for cmfuncs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

NTSTATUS NTAPI NtCompactKeys (_In_ ULONG Count, _In_reads_(Count) PHANDLE KeyArray)
 
NTSTATUS NTAPI NtCompressKey (_In_ HANDLE Key)
 
 _IRQL_requires_max_ (PASSIVE_LEVEL) NTSYSAPI NTSTATUS NTAPI NtCreateKey(_Out_ PHANDLE KeyHandle
 
NTSYSCALLAPI NTSTATUS NTAPI NtDeleteKey (_In_ HANDLE KeyHandle)
 
NTSYSCALLAPI NTSTATUS NTAPI NtDeleteValueKey (_In_ HANDLE KeyHandle, _In_ PUNICODE_STRING ValueName)
 
NTSYSCALLAPI NTSTATUS NTAPI NtEnumerateKey (_In_ HANDLE KeyHandle, _In_ ULONG Index, _In_ KEY_INFORMATION_CLASS KeyInformationClass, _Out_bytecap_(Length) PVOID KeyInformation, _In_ ULONG Length, _Out_ PULONG ResultLength)
 
 _Post_satisfies_ (return< 0)) _When_(Length > 0
 
 _Post_satisfies_ (return<=0)) NTSYSAPI NTSTATUS NTAPI NtEnumerateValueKey(_In_ HANDLE KeyHandle
 
_In_ ULONG _In_ KEY_VALUE_INFORMATION_CLASS _Out_writes_bytes_opt_ (Length) PVOID KeyValueInformation
 
NTSYSCALLAPI NTSTATUS NTAPI NtFlushKey (_In_ HANDLE KeyHandle)
 
NTSYSCALLAPI NTSTATUS NTAPI NtGetPlugPlayEvent (_In_ ULONG Reserved1, _In_ ULONG Reserved2, _Out_ PPLUGPLAY_EVENT_BLOCK Buffer, _In_ ULONG BufferSize)
 
NTSYSCALLAPI NTSTATUS NTAPI NtInitializeRegistry (_In_ USHORT Flag)
 
NTSYSCALLAPI NTSTATUS NTAPI NtLoadKey (_In_ POBJECT_ATTRIBUTES KeyObjectAttributes, _In_ POBJECT_ATTRIBUTES FileObjectAttributes)
 
NTSYSCALLAPI NTSTATUS NTAPI NtLoadKey2 (_In_ POBJECT_ATTRIBUTES KeyObjectAttributes, _In_ POBJECT_ATTRIBUTES FileObjectAttributes, _In_ ULONG Flags)
 
NTSTATUS NTAPI NtLoadKeyEx (_In_ POBJECT_ATTRIBUTES TargetKey, _In_ POBJECT_ATTRIBUTES SourceFile, _In_ ULONG Flags, _In_ HANDLE TrustClassKey)
 
NTSTATUS NTAPI NtLockProductActivationKeys (_In_ PULONG pPrivateVer, _In_ PULONG pSafeMode)
 
NTSTATUS NTAPI NtLockRegistryKey (_In_ HANDLE KeyHandle)
 
NTSYSCALLAPI NTSTATUS NTAPI NtNotifyChangeKey (_In_ HANDLE KeyHandle, _In_ HANDLE Event, _In_opt_ PIO_APC_ROUTINE ApcRoutine, _In_opt_ PVOID ApcContext, _Out_ PIO_STATUS_BLOCK IoStatusBlock, _In_ ULONG CompletionFilter, _In_ BOOLEAN Asynchroneous, _Out_bytecap_(Length) PVOID ChangeBuffer, _In_ ULONG Length, _In_ BOOLEAN WatchSubtree)
 
__kernel_entry NTSYSCALLAPI NTSTATUS NTAPI NtNotifyChangeMultipleKeys (_In_ HANDLE MasterKeyHandle, _In_opt_ ULONG Count, _In_reads_opt_(Count) OBJECT_ATTRIBUTES SubordinateObjects[], _In_opt_ HANDLE Event, _In_opt_ PIO_APC_ROUTINE ApcRoutine, _In_opt_ PVOID ApcContext, _Out_ PIO_STATUS_BLOCK IoStatusBlock, _In_ ULONG CompletionFilter, _In_ BOOLEAN WatchTree, _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, _In_ ULONG BufferSize, _In_ BOOLEAN Asynchronous)
 
NTSYSCALLAPI NTSTATUS NTAPI NtOpenKey (_Out_ PHANDLE KeyHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
 
NTSYSCALLAPI NTSTATUS NTAPI NtPlugPlayControl (_In_ PLUGPLAY_CONTROL_CLASS PlugPlayControlClass, _Inout_ PVOID Buffer, _In_ ULONG BufferSize)
 
NTSYSCALLAPI NTSTATUS NTAPI NtQueryKey (_In_ HANDLE KeyHandle, _In_ KEY_INFORMATION_CLASS KeyInformationClass, _Out_bytecap_(Length) PVOID KeyInformation, _In_ ULONG Length, _Out_ PULONG ResultLength)
 
__kernel_entry NTSYSCALLAPI NTSTATUS NTAPI NtQueryMultipleValueKey (_In_ HANDLE KeyHandle, _Inout_updates_(EntryCount) PKEY_VALUE_ENTRY ValueEntries, _In_ ULONG EntryCount, _Out_writes_bytes_(*BufferLength) PVOID ValueBuffer, _Inout_ PULONG BufferLength, _Out_opt_ PULONG RequiredBufferLength)
 
NTSTATUS NTAPI NtQueryOpenSubKeys (_In_ POBJECT_ATTRIBUTES TargetKey, _Out_ PULONG HandleCount)
 
NTSTATUS NTAPI NtQueryOpenSubKeysEx (_In_ POBJECT_ATTRIBUTES TargetKey, _In_ ULONG BufferLength, _In_ PVOID Buffer, _In_ PULONG RequiredSize)
 
NTSYSCALLAPI NTSTATUS NTAPI NtRenameKey (_In_ HANDLE KeyHandle, _In_ PUNICODE_STRING NewName)
 
NTSYSCALLAPI NTSTATUS NTAPI NtReplaceKey (_In_ POBJECT_ATTRIBUTES ObjectAttributes, _In_ HANDLE Key, _In_ POBJECT_ATTRIBUTES ReplacedObjectAttributes)
 
NTSYSCALLAPI NTSTATUS NTAPI NtRestoreKey (_In_ HANDLE KeyHandle, _In_ HANDLE FileHandle, _In_ ULONG RestoreFlags)
 
NTSYSCALLAPI NTSTATUS NTAPI NtSaveKey (_In_ HANDLE KeyHandle, _In_ HANDLE FileHandle)
 
NTSYSCALLAPI NTSTATUS NTAPI NtSaveKeyEx (_In_ HANDLE KeyHandle, _In_ HANDLE FileHandle, _In_ ULONG Flags)
 
NTSTATUS NTAPI NtSaveMergedKeys (_In_ HANDLE HighPrecedenceKeyHandle, _In_ HANDLE LowPrecedenceKeyHandle, _In_ HANDLE FileHandle)
 
__kernel_entry NTSYSCALLAPI NTSTATUS NTAPI NtSetInformationKey (_In_ HANDLE KeyHandle, _In_ _Strict_type_match_ KEY_SET_INFORMATION_CLASS KeySetInformationClass, _In_reads_bytes_(KeySetInformationLength) PVOID KeySetInformation, _In_ ULONG KeySetInformationLength)
 
NTSYSCALLAPI NTSTATUS NTAPI NtSetValueKey (_In_ HANDLE KeyHandle, _In_ PUNICODE_STRING ValueName, _In_opt_ ULONG TitleIndex, _In_ ULONG Type, _In_ PVOID Data, _In_ ULONG DataSize)
 
NTSYSCALLAPI NTSTATUS NTAPI NtUnloadKey (_In_ POBJECT_ATTRIBUTES KeyObjectAttributes)
 
NTSTATUS NTAPI NtUnloadKey2 (_In_ POBJECT_ATTRIBUTES TargetKey, _In_ ULONG Flags)
 
NTSTATUS NTAPI NtUnloadKeyEx (_In_ POBJECT_ATTRIBUTES TargetKey, _In_ HANDLE Event)
 
NTSYSAPI NTSTATUS NTAPI ZwInitializeRegistry (_In_ USHORT Flag)
 
NTSYSAPI NTSTATUS NTAPI ZwUnloadKey (_In_ POBJECT_ATTRIBUTES KeyObjectAttributes)
 

Variables

_In_ ACCESS_MASK DesiredAccess
 
_In_ ACCESS_MASK _In_ POBJECT_ATTRIBUTES ObjectAttributes
 
_In_ ACCESS_MASK _In_ POBJECT_ATTRIBUTES _Reserved_ ULONG TitleIndex
 
_In_ ACCESS_MASK _In_ POBJECT_ATTRIBUTES _Reserved_ ULONG _In_opt_ PUNICODE_STRING Class
 
_In_ ACCESS_MASK _In_ POBJECT_ATTRIBUTES _Reserved_ ULONG _In_opt_ PUNICODE_STRING _In_ ULONG CreateOptions
 
_In_ ACCESS_MASK _In_ POBJECT_ATTRIBUTES _Reserved_ ULONG _In_opt_ PUNICODE_STRING _In_ ULONG _Out_opt_ PULONG Disposition
 
_In_ ULONG Index
 
_In_ ULONG _In_ KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass
 
_In_ ULONG _In_ KEY_VALUE_INFORMATION_CLASS _In_ ULONG Length
 
_In_ ULONG _In_ KEY_VALUE_INFORMATION_CLASS _In_ ULONG _Out_ PULONG ResultLength
 
_In_ PUNICODE_STRING ValueName
 

Function Documentation

◆ _IRQL_requires_max_()

_IRQL_requires_max_ ( PASSIVE_LEVEL  )

Definition at line 64 of file Messaging.c.

75 {
76  PFLT_SERVER_PORT_OBJECT PortObject;
78 
79  /* The caller must allow at least one connection */
80  if (MaxConnections == 0)
81  {
83  }
84 
85  /* The request must be for a kernel handle */
86  if (!(ObjectAttributes->Attributes & OBJ_KERNEL_HANDLE))
87  {
89  }
90 
91  /*
92  * Get rundown protection on the target to stop the owner
93  * from unloading whilst this port object is open. It gets
94  * removed in the FltpServerPortClose callback
95  */
97  if (!NT_SUCCESS(Status))
98  {
99  return Status;
100  }
101 
102  /* Create the server port object for this filter */
106  KernelMode,
107  NULL,
108  sizeof(FLT_SERVER_PORT_OBJECT),
109  0,
110  0,
111  (PVOID *)&PortObject);
112  if (NT_SUCCESS(Status))
113  {
114  /* Zero out the struct */
115  RtlZeroMemory(PortObject, sizeof(FLT_SERVER_PORT_OBJECT));
116 
117  /* Increment the ref count on the target filter */
119 
120  /* Setup the filter port object */
121  PortObject->Filter = Filter;
122  PortObject->ConnectNotify = ConnectNotifyCallback;
124  PortObject->MessageNotify = MessageNotifyCallback;
125  PortObject->Cookie = ServerPortCookie;
126  PortObject->MaxConnections = MaxConnections;
127 
128  /* Insert the object */
129  Status = ObInsertObject(PortObject,
130  NULL,
132  0,
133  NULL,
135  if (NT_SUCCESS(Status))
136  {
137  /* Lock the connection list */
139 
140  /* Add the new port object to the connection list and increment the count */
143 
144  /* Unlock the connection list*/
146  }
147  }
148 
149  if (!NT_SUCCESS(Status))
150  {
151  /* Allow the filter to be cleaned up */
153  }
154 
155  return Status;
156 }
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
Definition: conport.c:35
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
_Must_inspect_result_ _Outptr_ PFLT_PORT * ServerPort
Definition: fltkernel.h:1873
PFLT_CONNECT_NOTIFY ConnectNotify
Definition: fltmgrint.h:191
VOID FLTAPI FltObjectDereference(_Inout_ PVOID Object)
Definition: Object.c:53
LONG NTSTATUS
Definition: precomp.h:26
#define InsertTailList(ListHead, Entry)
VOID FASTCALL ExReleaseFastMutex(IN PFAST_MUTEX FastMutex)
Definition: fmutex.c:31
ULONG FltpObjectPointerReference(_In_ PFLT_OBJECT Object)
Definition: Object.c:322
LIST_ENTRY mList
Definition: fltmgrint.h:56
_Must_inspect_result_ _In_opt_ PFLT_FILTER Filter
Definition: fltkernel.h:1802
#define FILE_READ_DATA
Definition: nt_native.h:628
smooth NULL
Definition: ftsmooth.c:416
NTSTATUS NTAPI ObCreateObject(IN KPROCESSOR_MODE ProbeMode OPTIONAL, IN POBJECT_TYPE Type, 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)
Definition: oblife.c:952
POBJECT_TYPE ServerPortObjectType
Definition: Messaging.c:24
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY _In_ PFLT_DISCONNECT_NOTIFY DisconnectNotifyCallback
Definition: fltkernel.h:1873
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:414
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY ConnectNotifyCallback
Definition: fltkernel.h:1873
Status
Definition: gdiplustypes.h:24
NTSTATUS NTAPI ObInsertObject(IN PVOID Object, IN PACCESS_STATE AccessState OPTIONAL, IN ACCESS_MASK DesiredAccess, IN ULONG ObjectPointerBias, OUT PVOID *NewObject OPTIONAL, OUT PHANDLE Handle)
Definition: obhandle.c:2932
#define STANDARD_RIGHTS_ALL
Definition: nt_native.h:69
VOID FASTCALL ExAcquireFastMutex(IN PFAST_MUTEX FastMutex)
Definition: fmutex.c:23
NTSTATUS FLTAPI FltObjectReference(_Inout_ PVOID Object)
Definition: Object.c:41
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID ServerPortCookie
Definition: fltkernel.h:1873
FAST_MUTEX mLock
Definition: fltmgrint.h:55
PFLT_MESSAGE_NOTIFY MessageNotify
Definition: fltmgrint.h:193
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:261
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY _In_ PFLT_DISCONNECT_NOTIFY _In_opt_ PFLT_MESSAGE_NOTIFY _In_ LONG MaxConnections
Definition: fltkernel.h:1873
PFLT_DISCONNECT_NOTIFY DisconnectNotify
Definition: fltmgrint.h:192
#define OBJ_KERNEL_HANDLE
Definition: winternl.h:231
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY _In_ PFLT_DISCONNECT_NOTIFY _In_opt_ PFLT_MESSAGE_NOTIFY MessageNotifyCallback
Definition: fltkernel.h:1873
FLT_MUTEX_LIST_HEAD ConnectionList
Definition: fltmgrint.h:121

◆ _Out_writes_bytes_opt_()

◆ _Post_satisfies_() [1/2]

_Post_satisfies_ ( )

◆ _Post_satisfies_() [2/2]

_Post_satisfies_ ( return<=  0)

◆ NtCompactKeys()

NTSTATUS NTAPI NtCompactKeys ( _In_ ULONG  Count,
_In_reads_(Count) PHANDLE  KeyArray 
)

◆ NtCompressKey()

NTSTATUS NTAPI NtCompressKey ( _In_ HANDLE  Key)

◆ NtDeleteKey()

NTSYSCALLAPI NTSTATUS NTAPI NtDeleteKey ( _In_ HANDLE  KeyHandle)

◆ NtDeleteValueKey()

NTSYSCALLAPI NTSTATUS NTAPI NtDeleteValueKey ( _In_ HANDLE  KeyHandle,
_In_ PUNICODE_STRING  ValueName 
)

◆ NtEnumerateKey()

NTSYSCALLAPI NTSTATUS NTAPI NtEnumerateKey ( _In_ HANDLE  KeyHandle,
_In_ ULONG  Index,
_In_ KEY_INFORMATION_CLASS  KeyInformationClass,
_Out_bytecap_(Length) PVOID  KeyInformation,
_In_ ULONG  Length,
_Out_ PULONG  ResultLength 
)

◆ NtFlushKey()

NTSYSCALLAPI NTSTATUS NTAPI NtFlushKey ( _In_ HANDLE  KeyHandle)

◆ NtGetPlugPlayEvent()

NTSYSCALLAPI NTSTATUS NTAPI NtGetPlugPlayEvent ( _In_ ULONG  Reserved1,
_In_ ULONG  Reserved2,
_Out_ PPLUGPLAY_EVENT_BLOCK  Buffer,
_In_ ULONG  BufferSize 
)

◆ NtInitializeRegistry()

NTSYSCALLAPI NTSTATUS NTAPI NtInitializeRegistry ( _In_ USHORT  Flag)

◆ NtLoadKey()

NTSYSCALLAPI NTSTATUS NTAPI NtLoadKey ( _In_ POBJECT_ATTRIBUTES  KeyObjectAttributes,
_In_ POBJECT_ATTRIBUTES  FileObjectAttributes 
)

◆ NtLoadKey2()

NTSYSCALLAPI NTSTATUS NTAPI NtLoadKey2 ( _In_ POBJECT_ATTRIBUTES  KeyObjectAttributes,
_In_ POBJECT_ATTRIBUTES  FileObjectAttributes,
_In_ ULONG  Flags 
)

◆ NtLoadKeyEx()

NTSTATUS NTAPI NtLoadKeyEx ( _In_ POBJECT_ATTRIBUTES  TargetKey,
_In_ POBJECT_ATTRIBUTES  SourceFile,
_In_ ULONG  Flags,
_In_ HANDLE  TrustClassKey 
)

◆ NtLockProductActivationKeys()

NTSTATUS NTAPI NtLockProductActivationKeys ( _In_ PULONG  pPrivateVer,
_In_ PULONG  pSafeMode 
)

◆ NtLockRegistryKey()

NTSTATUS NTAPI NtLockRegistryKey ( _In_ HANDLE  KeyHandle)

◆ NtNotifyChangeKey()

NTSYSCALLAPI NTSTATUS NTAPI NtNotifyChangeKey ( _In_ HANDLE  KeyHandle,
_In_ HANDLE  Event,
_In_opt_ PIO_APC_ROUTINE  ApcRoutine,
_In_opt_ PVOID  ApcContext,
_Out_ PIO_STATUS_BLOCK  IoStatusBlock,
_In_ ULONG  CompletionFilter,
_In_ BOOLEAN  Asynchroneous,
_Out_bytecap_(Length) PVOID  ChangeBuffer,
_In_ ULONG  Length,
_In_ BOOLEAN  WatchSubtree 
)

◆ NtNotifyChangeMultipleKeys()

__kernel_entry NTSYSCALLAPI NTSTATUS NTAPI NtNotifyChangeMultipleKeys ( _In_ HANDLE  MasterKeyHandle,
_In_opt_ ULONG  Count,
_In_reads_opt_(Count) OBJECT_ATTRIBUTES  SubordinateObjects[],
_In_opt_ HANDLE  Event,
_In_opt_ PIO_APC_ROUTINE  ApcRoutine,
_In_opt_ PVOID  ApcContext,
_Out_ PIO_STATUS_BLOCK  IoStatusBlock,
_In_ ULONG  CompletionFilter,
_In_ BOOLEAN  WatchTree,
_Out_writes_bytes_opt_(BufferSize) PVOID  Buffer,
_In_ ULONG  BufferSize,
_In_ BOOLEAN  Asynchronous 
)

◆ NtOpenKey()

NTSYSCALLAPI NTSTATUS NTAPI NtOpenKey ( _Out_ PHANDLE  KeyHandle,
_In_ ACCESS_MASK  DesiredAccess,
_In_ POBJECT_ATTRIBUTES  ObjectAttributes 
)

◆ NtPlugPlayControl()

NTSYSCALLAPI NTSTATUS NTAPI NtPlugPlayControl ( _In_ PLUGPLAY_CONTROL_CLASS  PlugPlayControlClass,
_Inout_ PVOID  Buffer,
_In_ ULONG  BufferSize 
)

◆ NtQueryKey()

NTSYSCALLAPI NTSTATUS NTAPI NtQueryKey ( _In_ HANDLE  KeyHandle,
_In_ KEY_INFORMATION_CLASS  KeyInformationClass,
_Out_bytecap_(Length) PVOID  KeyInformation,
_In_ ULONG  Length,
_Out_ PULONG  ResultLength 
)

◆ NtQueryMultipleValueKey()

__kernel_entry NTSYSCALLAPI NTSTATUS NTAPI NtQueryMultipleValueKey ( _In_ HANDLE  KeyHandle,
_Inout_updates_(EntryCount) PKEY_VALUE_ENTRY  ValueEntries,
_In_ ULONG  EntryCount,
_Out_writes_bytes_ *BufferLength PVOID  ValueBuffer,
_Inout_ PULONG  BufferLength,
_Out_opt_ PULONG  RequiredBufferLength 
)

◆ NtQueryOpenSubKeys()

NTSTATUS NTAPI NtQueryOpenSubKeys ( _In_ POBJECT_ATTRIBUTES  TargetKey,
_Out_ PULONG  HandleCount 
)

◆ NtQueryOpenSubKeysEx()

NTSTATUS NTAPI NtQueryOpenSubKeysEx ( _In_ POBJECT_ATTRIBUTES  TargetKey,
_In_ ULONG  BufferLength,
_In_ PVOID  Buffer,
_In_ PULONG  RequiredSize 
)

◆ NtRenameKey()

NTSYSCALLAPI NTSTATUS NTAPI NtRenameKey ( _In_ HANDLE  KeyHandle,
_In_ PUNICODE_STRING  NewName 
)

◆ NtReplaceKey()

NTSYSCALLAPI NTSTATUS NTAPI NtReplaceKey ( _In_ POBJECT_ATTRIBUTES  ObjectAttributes,
_In_ HANDLE  Key,
_In_ POBJECT_ATTRIBUTES  ReplacedObjectAttributes 
)

◆ NtRestoreKey()

NTSYSCALLAPI NTSTATUS NTAPI NtRestoreKey ( _In_ HANDLE  KeyHandle,
_In_ HANDLE  FileHandle,
_In_ ULONG  RestoreFlags 
)

◆ NtSaveKey()

NTSYSCALLAPI NTSTATUS NTAPI NtSaveKey ( _In_ HANDLE  KeyHandle,
_In_ HANDLE  FileHandle 
)

◆ NtSaveKeyEx()

NTSYSCALLAPI NTSTATUS NTAPI NtSaveKeyEx ( _In_ HANDLE  KeyHandle,
_In_ HANDLE  FileHandle,
_In_ ULONG  Flags 
)

◆ NtSaveMergedKeys()

NTSTATUS NTAPI NtSaveMergedKeys ( _In_ HANDLE  HighPrecedenceKeyHandle,
_In_ HANDLE  LowPrecedenceKeyHandle,
_In_ HANDLE  FileHandle 
)

◆ NtSetInformationKey()

__kernel_entry NTSYSCALLAPI NTSTATUS NTAPI NtSetInformationKey ( _In_ HANDLE  KeyHandle,
_In_ _Strict_type_match_ KEY_SET_INFORMATION_CLASS  KeySetInformationClass,
_In_reads_bytes_(KeySetInformationLength) PVOID  KeySetInformation,
_In_ ULONG  KeySetInformationLength 
)

◆ NtSetValueKey()

NTSYSCALLAPI NTSTATUS NTAPI NtSetValueKey ( _In_ HANDLE  KeyHandle,
_In_ PUNICODE_STRING  ValueName,
_In_opt_ ULONG  TitleIndex,
_In_ ULONG  Type,
_In_ PVOID  Data,
_In_ ULONG  DataSize 
)

◆ NtUnloadKey()

NTSYSCALLAPI NTSTATUS NTAPI NtUnloadKey ( _In_ POBJECT_ATTRIBUTES  KeyObjectAttributes)

◆ NtUnloadKey2()

NTSTATUS NTAPI NtUnloadKey2 ( _In_ POBJECT_ATTRIBUTES  TargetKey,
_In_ ULONG  Flags 
)

◆ NtUnloadKeyEx()

NTSTATUS NTAPI NtUnloadKeyEx ( _In_ POBJECT_ATTRIBUTES  TargetKey,
_In_ HANDLE  Event 
)

◆ ZwInitializeRegistry()

NTSYSAPI NTSTATUS NTAPI ZwInitializeRegistry ( _In_ USHORT  Flag)

Referenced by NtInitializeRegistry().

◆ ZwUnloadKey()

NTSYSAPI NTSTATUS NTAPI ZwUnloadKey ( _In_ POBJECT_ATTRIBUTES  KeyObjectAttributes)

Variable Documentation

◆ Class

◆ CreateOptions

◆ DesiredAccess

_In_ ACCESS_MASK DesiredAccess

Definition at line 50 of file cmfuncs.h.

◆ Disposition

Definition at line 50 of file cmfuncs.h.

Referenced by AddHotkeySettings(), AddKbLayoutsToRegistry(), CM_Open_Class_Key_ExA(), CM_Open_Class_Key_ExW(), CM_Open_Class_KeyA(), CM_Open_Class_KeyW(), CM_Open_DevNode_Key(), CM_Open_DevNode_Key_Ex(), CmBattSystemControl(), CmpCreateControlSet(), CmpCreateHardwareProfile(), CmpInitializeHardwareConfiguration(), CmpInitializeMachineDependentConfiguration(), CmpInitializeRegistryNode(), CmpLinkKeyToHive(), CreateAppPathRegKey(), CreateNestedKey(), CreateRegAppPath(), CreateRegKey(), CreateSymLinkKey(), DECLARE_INTERFACE_(), DeleteSymLinkKey(), Ext2SupersedeOrOverWriteFile(), FFSSupersedeOrOverWriteFile(), HalpOpenRegistryKey(), InstallDriver(), IoCreateFile(), IoCreateFileSpecifyDeviceObjectHint(), IopCheckBackupRestorePrivilege(), IopCreateFile(), IopCreateRegistryKeyEx(), IopInitializePlugPlayServices(), IopSetServiceEnumData(), IopUpdateResourceMap(), IoReportHalResourceUsage(), LdrLockLoaderLock(), LsapRegCreateKey(), NpCreateExistingNamedPipe(), NpCreateNewNamedPipe(), NpCreatePipeEx(), NpFsdCreateNamedPipe(), NpOpenPipeEx(), NtCreateKey(), PcNewRegistryKey(), Phase1InitializationDiscard(), RegInitializeRegistry(), RfsdSupersedeOrOverWriteFile(), RtlDispatchException(), RtlInitializeRXact(), RtlpNtCreateKey(), RtlUnwind(), RXactpOpenTargetKey(), RxCollapseOrCreateSrvOpen(), SampRegCreateKey(), SetActiveComputerNameToRegistry(), SETUP_CreateClassKey(), SETUPDI_CreateDrvKey(), SmpDeletePagingFile(), SpiBuildDeviceMap(), START_TEST(), and Test_CreateOpenKey().

◆ Index

_In_ ULONG Index

Definition at line 93 of file cmfuncs.h.

◆ KeyValueInformationClass

◆ Length

◆ ObjectAttributes

Definition at line 50 of file cmfuncs.h.

◆ ResultLength

◆ TitleIndex

Definition at line 50 of file cmfuncs.h.

◆ ValueName

_In_ PUNICODE_STRING ValueName

Definition at line 264 of file cmfuncs.h.

Referenced by acpi_create_registry_table(), AcpiRegQueryValue(), AddCodepageToRegistry(), AddFontsSettingsToRegistry(), AddHotkeySettings(), AddKbLayoutsToRegistry(), append_multi_sz_value(), AppendStringToMultiSZ(), BadBlockQueryRoutine(), BaseComputeProcessDllPath(), BasepConfigureAppCertDlls(), BaseSrvIsVdmAllowed(), BiGetRegistryValue(), ChangeUniqueIdRoutine(), CheckForNoDriveLetterEntry(), ClasspMediaChangeRegistryCallBack(), CmDeleteValueKey(), CmiAddValueKey(), CmpCompareNewValueDataAgainstKCBCache(), CmpInitializeMachineDependentConfiguration(), CmpInitializeRegistryNode(), CmpSetSystemValues(), CmpSetValueKeyNew(), CmpSetVersionData(), CmQueryValueKey(), CmSetValueKey(), CreateGroupOrderListRoutine(), DECLARE_INTERFACE_(), DeleteDriveLetterRoutine(), DeleteFromLocalDatabaseRoutine(), DeleteNoDriveLetterEntryRoutine(), DeleteRegistryValue(), DeleteValueTest(), do_reg_operation(), DriverEntry(), EnumerateNt4ServiceSoundDevices(), ExpGetCurrentUserUILanguage(), ExpSetCurrentUserUILanguage(), ExpUuidLoadSequenceNumber(), ExpUuidSaveSequenceNumber(), Ext2RegistryQueryCallback(), FatGetCompatibilityModeValue(), FatIsFujitsuFMR(), FltpReadRegistryValue(), FreeBT_GetRegistryDword(), GetComputerNameFromRegistry(), GetCPFileNameFromRegistry(), GetRegInt(), GetRegIntFromID(), GetRegistryValueBuffer(), GetRegValue(), HalpGetChipHacks(), HalpGetNMICrashFlag(), i8042StoreSMBiosTables(), InfpGetSubstitutionString(), IntCopyRegistryValue(), IoGetDeviceProperty(), IopActionInterrogateDeviceStack(), IopBootLog(), IopEnumerateDetectedDevices(), IopGetParentIdPrefix(), IopGetRegistryValue(), IopQueryCompatibleIds(), IopQueryDeviceCapabilities(), IopQueryHardwareIds(), IopSaveBootLogToFile(), IopSetServiceEnumData(), IopUpdateControlKeyWithResources(), IoReportDetectedDevice(), IsAcpiComputer(), LdrQueryImageFileExecutionOptions(), LdrQueryImageFileExecutionOptionsEx(), LdrQueryImageFileKeyOption(), LlbEnvRead(), LoadSettings(), LsapRegDeleteValue(), LsapRegQueryValue(), LsapRegSetValue(), MountMgrQuerySystemVolumeNameQueryRoutine(), ndisBindMiniportsToProtocol(), NpReadAlias(), NtDeleteValueKey(), NtQueryValueKey(), NtSetDefaultLocale(), NtSetValueKey(), PciAcpiFindRsdt(), PciAddDevice(), PciGetIrqRoutingTableFromRegistry(), PciGetRegistryValue(), pendingRename(), PiGetDeviceRegistryProperty(), ProcessLocaleRegistry(), ProcessorSetFriendlyName(), QUERY_REGISTRY_VALUES_ROUTINE(), QueryRegistryCallback(), QueryRegistryValue(), QueryRegistryValueString(), QueryRegistryValueStringMulti(), QueryRoutine(), QueryUniqueIdQueryRoutine(), ReadKey(), ReadRegistryComputerNameValue(), ReadRegistryValue(), ReadStringFromRegistry(), RegDeleteKeyValueA(), RegDeleteKeyValueW(), RegDeleteValueA(), RegDeleteValueW(), RegpCopyTree(), RegQueryValue(), RegSetValueExA(), RegSetValueExW(), RtlAddActionToRXact(), RtlAddAttributeActionToRXact(), RtlApplyRXact(), RtlDeleteRegistryValue(), RtlInitializeRXact(), RtlpNtQueryValueKey(), RtlpNtSetValueKey(), RtlWriteRegistryValue(), SampRegDeleteValue(), SampRegQueryValue(), SampRegSetValue(), ScrubRegistryRoutine(), SepRegQueryHelper(), SetActiveComputerNameToRegistry(), SetComputerNameToRegistry(), SetDefaultLanguage(), SetDefaultPagefile(), SetMountedDeviceValue(), SetRegistryValue(), SetValueTest1(), SetValueTest2(), SmpConfigureDosDevices(), SmpConfigureEnvironment(), SmpConfigureKnownDlls(), SmpConfigureSubSystems(), SmpCreateDynamicEnvironmentVariables(), SmpFindRegistryValue(), SmpQueryRegistrySosOption(), SpiBuildDeviceMap(), START_TEST(), SymbolicLinkNamesFromUniqueIdCount(), SymbolicLinkNamesFromUniqueIdQuery(), test2(), test3(), test6(), test7(), TestRtlQueryRegistryValues(), USBD_GetPdoRegistryParameter(), USBH_SetPdoRegistryParameter(), USBH_WriteFailReasonID(), USBPORT_GetRegistryKeyValueFullInfo(), USBPORT_SetRegistryKeyValue(), VideoPortIsNoVesa(), VideoPortSetRegistryParameters(), and WriteRegistryValue().