UnregisterTouchWindow function (winuser.h)

Registers a window as no longer being touch-capable.

Syntax

BOOL UnregisterTouchWindow(
  [in] HWND hwnd
);

Parameters

[in] hwnd

The handle of the window. The function fails with ERROR_ACCESS_DENIED if the calling thread does not own the specified window.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, use the GetLastError function.

Remarks

The UnregisterTouchWindow function succeeds even if the specified window was not previously registered as being touch-capable.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header winuser.h (include Windows.h)
Library User32.lib
DLL User32.dll

See also

Functions

RegisterTouchWindow