Jump to content

MouSetThreshold: Difference between revisions

From EDM2
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; /* ..."
 
Ak120 (talk | contribs)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Description==
Assigns a new set of threshold values to the current mouse device driver.
Assigns a new set of threshold values to the current mouse device driver.


==Syntax==
==Syntax==
<PRE>
MouSetThreshold(Threshold, DeviceHandle)
#define INCL_MOU
#include <os2.h>


PTHRESHOLD    Threshold;    /*  Threshold structure. */
HMOU          DeviceHandle;  /*  Reserved.  Must be 0. */
APIRET        rc;            /*  Return code */
rc = MouSetThreshold(Threshold, DeviceHandle);
</PRE>
==Parameters==
==Parameters==
; Threshold (PTHRESHOLD) - input : Threshold structure.
;Threshold (P[[THRESHOLD]]) - input: Threshold structure.
The address of the control block structure that contains the threshold structure.  
:The address of the control block structure that contains the threshold structure.
;DeviceHandle (HMOU) - input: Reserved. Must be 0.


; DeviceHandle (HMOU) - input : Reserved. Must be 0.
==Return Code==
==Return Code==
rc (APIRET) - returns
;rc (APIRET) - returns:MouSetThreshold returns one of the following values:
 
*0 NO_ERROR
MouSetThreshold returns one of the following values:
*387 ERROR_MOUSE_INV_PARMS
 
*466 ERROR_MOU_DETACHED
* 0         NO_ERROR  
*501 ERROR_MOUSE_NO_CONSOLE
* 387       ERROR_MOUSE_INV_PARMS  
* 466       ERROR_MOU_DETACHED  
* 501       ERROR_MOUSE_NO_CONSOLE
 
==Remarks==
 
 
==Example Code==
<PRE>


</PRE>
==Related Functions==
==Related Functions==
*
*[[MouGetThreshold]]
 


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

Latest revision as of 23:29, 8 June 2021

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

Syntax

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

Related Functions