DosSMGetStatus: Difference between revisions
Appearance
m Ak120 moved page OS2 API:CPI:LEGACY:DosSMGetStatus to DosSMGetStatus |
mNo edit summary |
||
Line 1: | Line 1: | ||
Return status of screen groups. This can only be called by the shell that owns the Session Manager. | Return status of screen groups. This can only be called by the shell that owns the Session Manager. | ||
==Syntax== | ==Syntax== | ||
DOSSMGETSTATUS (func, data) | |||
==Parameters== | ==Parameters== | ||
; func | ;func (short):function code | ||
=0: return complete data | =0: return complete data | ||
=1 return complete data (different ordering) | =1 return complete data (different ordering) | ||
=2: return header data only (query how much space is needed) | =2: return header data only (query how much space is needed) | ||
=3: return specified screen group only | =3: return specified screen group only | ||
;data (void far*):structure to return data | |||
; data | |||
struct header { | struct header { | ||
short length_of_header; /*8 bytes*/ | short length_of_header; /*8 bytes*/ | ||
Line 39: | Line 31: | ||
==Return Code== | ==Return Code== | ||
APIRET16 Pascal far | |||
==Example Code== | ==Example Code== | ||
==Related Functions== | ==Related Functions== | ||
* | * | ||
[[Category: | [[Category:Dos]] |
Revision as of 10:56, 13 February 2017
Return status of screen groups. This can only be called by the shell that owns the Session Manager.
Syntax
DOSSMGETSTATUS (func, data)
Parameters
- func (short)
- function code
=0: return complete data =1 return complete data (different ordering) =2: return header data only (query how much space is needed) =3: return specified screen group only
- data (void far*)
- structure to return data
struct header { short length_of_header; /*8 bytes*/ short screen_group; /*function 3*/ short next_active_screengroup; short length_of_entry; }; struct entry { /*for each screengroup one structure*/ short screen_group_number; char screen_group_title[32]; short is_selected; short child_screengroup; short type_of_screengroup; short parent_of_child; short next_child; short parent_screengroup; short type_of_group (FS/VIO/PM); };
Return Code
APIRET16 Pascal far