DrtUnregisterKey function (drt.h)

The DrtUnregisterKey function deregisters a key from the DRT.

Syntax

void DrtUnregisterKey(
  HDRT_REGISTRATION_CONTEXT hKeyRegistration
);

Parameters

hKeyRegistration

The DRT handle returned by the DrtRegisterKey function specifying a registered key within the DRT.

Return value

None

Remarks

A node can deregister a key anytime after registration. Additionally, if an application calls DrtClose, all keys are deregistered by the DRT infrastructure.

Only the application that registered they key may deregister it. An application can deregister a key from the local node. Upon completion the function triggers a DRT_EVENT_LEAFSET_KEY_CHANGE event; informing the application and other nodes participating in the DRT mesh of the deregistration.

Requirements

   
Minimum supported client Windows 7 Professional [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header drt.h
Library Drt.lib
DLL Drt.dll

See also

DrtClose

DrtOpen

DrtRegisterKey