Jump to content

MRESULT: Difference between revisions

From EDM2
Anakor (talk | contribs)
New
 
Ak120 (talk | contribs)
mNo edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== MRESULT ==
A 4-byte message-dependent reply parameter structure
 
A 4-byte message-dependent reply parameter structure.


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


typedef void *MRESULT;
==== C Declaration Method ====
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:
[[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.


Certain elements of information, placed into the parameters of a message, have
[[Category:PM Data type]]
data types that do not use all four bytes of this data type. The rules
governing these cases are:
 
[[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
description of the particular message.

Latest revision as of 06:19, 21 February 2020

A 4-byte message-dependent reply 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.