Jump to content

MPARAM: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
== MPARAM ==
== MPARAM ==
 
A 4-byte message-dependent parameter structure
A 4-byte message-dependent parameter structure.


=== Type ===
=== Type ===
 
void
void


==== C Declaration Method ====
==== C Declaration Method ====
typedef
typedef


=== Comment ===
=== Comment ===
 
Certain elements of information, placed into the parameters of a message, have data types that do not use all four bytes of this data type. The rules governing these cases are:
Certain elements of information, placed into the parameters of a message, have
  [[BOOL]]  The value is contained in the low word and the high word is 0.
data types that do not use all four bytes of this data type. The rules
  [[SHORT]]  The value is contained in the low word and its sign is extended into the high word.
governing these cases are:  
  [[USHORT]] The value is contained in the low word and the high word is 0.  
 
  [[NULL]]  The entire four bytes are 0.  
  [[OS2 API:DataType:BOOL|BOOL]]  The value is contained in the low word and the high word is 0.
  [[OS2 API:DataType:SHORT|SHORT]]  The value is contained in the low word and its sign is extended into the high word.
  [[OS2 API:DataType:USHORT|USHORT]] The value is contained in the low word and the high word is 0.  
  [[OS2 API:Constant:NULL|NULL]]  The entire four bytes are 0.  
    
    
The structure of this data type depends on the message. For details, see the
The structure of this data type depends on the message. For details, see the description of the particular message.
description of the particular message.
 
 
 
 
[[OS2_API | Back to OS/2 API]]
 


[[Category:The OS/2 API Project]]
[[Category:Data type]]

Revision as of 22:28, 19 October 2016

MPARAM

A 4-byte message-dependent parameter structure

Type

void

C Declaration Method

typedef

Comment

Certain elements of information, placed into the parameters of a message, have data types that do not use all four bytes of this data type. The rules governing these cases are:

BOOL   The value is contained in the low word and the high word is 0.
SHORT  The value is contained in the low word and its sign is extended into the high word.
USHORT The value is contained in the low word and the high word is 0. 
NULL   The entire four bytes are 0. 
 

The structure of this data type depends on the message. For details, see the description of the particular message.