Export (0) Print
Expand All

CmUnRegisterCallback routine

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

Syntax


NTSTATUS CmUnRegisterCallback(
  _In_  LARGE_INTEGER Cookie
);

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

The CmUnRegisterCallback routine is available only on Microsoft Windows XP and later versions of Windows.

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

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

Requirements

Version

Available in Windows XP and later versions of Windows.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<= APC_LEVEL

DDI compliance rules

IrqlExApcLte2, HwStorPortProhibitedDDIs

See also

RegistryCallback
CmRegisterCallback
CmRegisterCallbackEx

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft