Jump to content

WinIsPhysInputEnabled

From EDM2

This function returns the state (enabled/disabled) of physical input.

Syntax

WinIsPhysInputEnabled(hwndDeskTop)

Parameters

hwndDeskTop (HWND) - Input
Desktop-window handle.
HWND_DESKTOP: The desktop-window handle.

Returns

rc (BOOL) - Returns
Enabled-state indicator.
TRUE
Input is enabled.
FALSE
Input is disabled.

Remarks

None.

Errors

None.

Example Code

#define INCL_WININPUT /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HWND  hwndDeskTop; /* Desktop-window handle. */
BOOL  rc;          /* Enabled-state indicator. */

rc = WinIsPhysInputEnabled(hwndDeskTop);

This example uses WinIsPhysInputEnabled to determine if physical input is enabled; if it is not, then WinEnablePhysInput is called to enable it.

#define INCL_WININPUT   /* Window Input Functions  */
#include <os2.h>

if (!WinIsPhysInputEnabled(HWND_DESKTOP))
  /* Enable queuing of physical input */
  WinEnablePhysInput(HWND_DESKTOP, TRUE);

Related Functions