DdsiTouchPanelDetach (Windows Embedded CE 6.0)

1/6/2010

This function executes when the MDD's DLL entry point receives a DLL_PROCESS_DETACH message.

Syntax

LONG DdsiTouchPanelDetach(void);

Parameters

None.

Return Value

Returns zero (0).

Remarks

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.

Requirements

Header tchddsi.h
Library Tchmdd.lib
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Touch Screen Driver DDSI Functions
DdsiTouchPanelEnable
DdsiTouchPanelDisable