Jump to content

MouGetThreshold: Difference between revisions

From EDM2
Created page with "==Description== Returns the current threshold values. ==Syntax== <PRE> #define INCL_MOU #include <os2.h> PTHRESHOLD Threshold; Pointer threshold structure.: HMO..."
 
mNo edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
==Description==
Returns the current threshold values.
Returns the current threshold values.


==Syntax==
==Syntax==
MouGetThreshold(Threshold, DeviceHandle);
==Parameters==
;Threshold (PTHRESHOLD) - input : Pointer threshold structure.
:Address of the control block structure that contains the threshold structure.
;DeviceHandle (HMOU) - input : Reserved. Must be 0.
==Return Code==
;rc (APIRET) - returns:MouGetThreshold returns one of the following values:
*0 NO_ERROR
*387 ERROR_MOUSE_INV_PARMS
*466 ERROR_MOU_DETACHED
*501 ERROR_MOUSE_NO_CONSOLE
==Sample==
<PRE>
<PRE>
#define INCL_MOU
#define INCL_MOU
Line 14: Line 28:
</PRE>
</PRE>


==Parameters==
;  Threshold (PTHRESHOLD) - input : Pointer threshold structure.
Address of the control block structure that contains the threshold structure.
; DeviceHandle (HMOU) - input : Reserved. Must be 0.
==Return Code==
rc (APIRET) - returns
MouGetThreshold 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==
<PRE>
</PRE>
==Related Functions==
==Related Functions==
*  
* [[MouSetThreshold]]
 


[[Category:The OS/2 API Project]]
[[Category:Mou]]

Latest revision as of 15:25, 29 February 2020

Returns the current threshold values.

Syntax

MouGetThreshold(Threshold, DeviceHandle);

Parameters

Threshold (PTHRESHOLD) - input
Pointer threshold structure.
Address of the control block structure that contains the threshold structure.
DeviceHandle (HMOU) - input
Reserved. Must be 0.

Return Code

rc (APIRET) - returns
MouGetThreshold returns one of the following values:
  • 0 NO_ERROR
  • 387 ERROR_MOUSE_INV_PARMS
  • 466 ERROR_MOU_DETACHED
  • 501 ERROR_MOUSE_NO_CONSOLE

Sample

#define INCL_MOU
#include <os2.h>

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

rc = MouGetThreshold(Threshold, DeviceHandle);

Related Functions