CmUnRegisterCallback - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

NTSTATUS CmUnRegisterCallback(
  [in] LARGE_INTEGER Cookie
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-cmunregistercallback)

Description

The CmUnRegisterCallback routine unregisters a RegistryCallback routine that a CmRegisterCallback or CmRegisterCallbackEx routine previously registered.

Parameters

Cookie [in]

A LARGE_INTEGER value that identifies the callback routine to unregister. CmRegisterCallback provided this value when you registered the callback routine.

Return value

CmUnRegisterCallback returns STATUS_SUCCESS if it succeeds or the appropriate NTSTATUS error code if it fails. If the Cookie parameter does not match any registered callback routines, CmUnRegisterCallback returns STATUS_INVALID_PARAMETER.

Remarks

A driver that calls CmRegisterCallback or CmRegisterCallbackEx should call CmUnRegisterCallback before the driver is unloaded.

A driver must not call CmUnRegisterCallback from its implementation of the RegistryCallback routine. That call will result in a deadlock.

For more information about CmUnRegisterCallback and filtering registry operations, see Filtering Registry Calls.

See also

CmRegisterCallback

CmRegisterCallbackEx

RegistryCallback