Jump to content

MouSetThreshold

From EDM2
Revision as of 00:37, 16 June 2016 by Martini (talk | contribs) (Created page with "==Description== Assigns a new set of threshold values to the current mouse device driver. ==Syntax== <PRE> #define INCL_MOU #include <os2.h> PTHRESHOLD Threshold; /* ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Assigns a new set of threshold values to the current mouse device driver.

Syntax

#define INCL_MOU
#include <os2.h>

PTHRESHOLD    Threshold;     /*  Threshold structure. */
HMOU          DeviceHandle;  /*  Reserved.  Must be 0. */
APIRET        rc;            /*  Return code */

rc = MouSetThreshold(Threshold, DeviceHandle);

Parameters

Threshold (PTHRESHOLD) - input
Threshold structure.

The address of the control block structure that contains the threshold structure.

DeviceHandle (HMOU) - input
Reserved. Must be 0.

Return Code

rc (APIRET) - returns

MouSetThreshold returns one of the following values:

  • 0 NO_ERROR
  • 387 ERROR_MOUSE_INV_PARMS
  • 466 ERROR_MOU_DETACHED
  • 501 ERROR_MOUSE_NO_CONSOLE

Remarks

Example Code


Related Functions