Jump to content

MouGetNumMickeys: Difference between revisions

From EDM2
Created page with "==Description== Returns the number of mickeys per centimeter for the installed mouse device driver. ==Syntax== <PRE> #define INCL_MOU #include <os2.h> PULONG NumberOfMick..."
 
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
==Description==
Returns the number of mickeys per centimeter for the installed mouse device driver.
Returns the number of mickeys per centimeter for the installed mouse device driver.


Line 12: Line 11:


rc = MouGetNumMickeys(NumberOfMickeys, DeviceHandle);
rc = MouGetNumMickeys(NumberOfMickeys, DeviceHandle);
</PRE>


</PRE>
==Parameters==
==Parameters==
; NumberOfMickeys (PULONG) - input : Number of mickeys per centimeter.
;NumberOfMickeys (PULONG) - input : Number of mickeys per centimeter.
Address of the number of physical mouse motion units. Mouse motion units are reported in mickeys per centimeter. This value is constant, and is based on the mouse device attached.  
:Address of the number of physical mouse motion units. Mouse motion units are reported in mickeys per centimeter. This value is constant, and is based on the mouse device attached.
 
;DeviceHandle (HMOU) - input : Mouse device handle
; DeviceHandle (HMOU) - input : Mouse device handle
:Reserved. Must be 0.
Reserved. Must be 0.


==Return Code==
==Return Code==
  rc (APIRET) - returns
  rc (APIRET) - returns
MouGetNumMickeys returns one of the following values:
MouGetNumMickeys returns one of the following values:
* 0 NO_ERROR
* 466 ERROR_MOU_DETACHED
* 501 ERROR_MOUSE_NO_CONSOLE


* 0          NO_ERROR
[[Category:Mou]]
* 466        ERROR_MOU_DETACHED
* 501        ERROR_MOUSE_NO_CONSOLE
==Remarks==
 
 
==Example Code==
<PRE>
 
</PRE>
==Related Functions==
*
 
 
[[Category:The OS/2 API Project]]

Revision as of 22:40, 23 December 2016

Returns the number of mickeys per centimeter for the installed mouse device driver.

Syntax

#define INCL_MOU
#include <os2.h>

PULONG    NumberOfMickeys;  /*  Number of mickeys per centimeter. */
HMOU      DeviceHandle;     /*  Mouse device handle */
APIRET    rc;               /*  Return code. */

rc = MouGetNumMickeys(NumberOfMickeys, DeviceHandle);

Parameters

NumberOfMickeys (PULONG) - input
Number of mickeys per centimeter.
Address of the number of physical mouse motion units. Mouse motion units are reported in mickeys per centimeter. This value is constant, and is based on the mouse device attached.
DeviceHandle (HMOU) - input
Mouse device handle
Reserved. Must be 0.

Return Code

rc (APIRET) - returns

MouGetNumMickeys returns one of the following values:

  • 0 NO_ERROR
  • 466 ERROR_MOU_DETACHED
  • 501 ERROR_MOUSE_NO_CONSOLE