This function executes when the MDD's DLL entry point receives a DLL_PROCESS_DETACH message.
Returns zero (0).
In many systems, only one process loads the touch driver. However, it is possible that Transcriber will also load the touch DLL, although Transcriber does not use it to touch hardware. For this reason it is important that the DDSI attach and detach routines, not modify hardware or interrupt state. Such system updates should only be made in response to DdsiTouchPanelEnable and DdsiTouchPanelDisable calls. They can initialize global variables, events, and so on. In this case, each process loading the touch driver will get its own copy.
If drivers have an absolute requirement to initialize hardware during DLL loading, they can implement a global memory section to ensure that only one process actually touches hardware.
OS Versions: Windows CE 1.0 and later.
Link Library: Tchmdd.lib.
Last updated on Tuesday, May 18, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.