The EngDeleteWnd function deletes a WNDOBJ structure.
VOID
EngDeleteWnd(
IN WNDOBJ *pwo
);
None
Declared in winddi.h. Include winddi.h.
Because deleting a window object involves locking window resources, EngDeleteWnd should be called only in the context of the WNDOBJ_SETUP escape in DrvEscape, or from an MCD or ICD escape.
A driver can call EngDeleteWnd to remove its WNDOBJ structure associated with a window regardless of whether the window continues to exist. This is useful when the driver is being dynamically unloaded by the system while the associated window still exists.