Returns operating system independent codes for graphics characters.
01 cblt-get-scr-graphics-buffer typedef. 03 cblte-gsgb-flag cblt-x1-compx. *> pic x comp-x. 03 cblte-gsgb-buf-size cblt-x2-compx. *> pic x(2) comp-x. 03 cblte-gsgb-buf. 04 cblte-gsgb-up-arrow. 05 cblte-gsgb-up-arrow-dbflag cblt-x1-compx. *> pic x comp-x. 05 cblte-gsgb-up-arrow-arrow cblt-x1-compx. *> pic x. 04 cblte-gsgb-down-arrow. 05 cblte-gsgb-down-arrow-dbflag cblt-x1-compx. *> pic x comp-x. 05 cblte-gsgb-down-arrow-arrow cblt-x1-compx. *> pic x 04 cblte-gsgb-right-arrow. 05 cblte-gsgb-right-arrow-dbflag cblt-x1-compx. *> pic x comp-x. 05 cblte-gsgb-right-arrow-arrow cblt-x1-compx. *> pic x. 04 cblte-gsgb-left-arrow. 05 cblte-gsgb-left-arrow-dbflag cblt-x1-compx. *> pic x comp-x. 05 cblte-gsgb-left-arrow-arrow cblt-x1-compx. *> pic x. 04 cblte-gsgb-maximize. 05 cblte-gsgb-maximize-dbflag cblt-x1-compx. *> pic x comp-x. 05 cblte-gsgb-maximize-char cblt-x1-compx. *> pic x. 04 cblte-gsgb-minimize. 05 cblte-gsgb-minimize-dbflag cblt-x1-compx. *> pic x comp-x. 05 cblte-gsgb-minimize-char cblt-x1-compx. *> pic x. 04 cblte-gsgb-check. 05 cblte-gsgb-check-dbflag cblt-x1-compx. *> pic x comp-x. 05 cblte-gsgb-check-char cblt-x1-compx. *> pic x. 04 cblte-gsgb-restore. 05 cblte-gsgb-restore-dbflag cblt-x1-compx. *> pic x comp-x. 05 cblte-gsgb-restore-char cblt-x1-compx. *> pic x. 04 cblte-gsgb-radio. 05 cblte-gsgb-radio-dbflag cblt-x1-compx. *> pic x comp-x. 05 cblte-gsgb-radio-char cblt-x1-compx. *> pic x. 04 cblte-gsgb-scroll. 05 cblte-gsgb-scroll-dbflag cblt-x1-compx. *> pic x comp-x. 05 cblte-gsgb-scroll-char cblt-x1-compx. *> pic x. 04 cblte-gsgb-rubber-band. 05 cblte-gsgb-rubber-band-dbflag cblt-x1-compx. *> pic x comp-x. 05 cblte-gsgb-rubber-band-char cblt-x1-compx. *> pic x. 04 cblte-gsgb-sysmenu. 05 cblte-gsgb-sysmenu-char-dbflag cblt-x1-compx. *> pic x comp-x. 05 cblte-gsgb-sysmenu-char-char cblt-x1-compx. *> pic x. 04 cblte-gsgb-editor-char. 05 cblte-gsgb-editor-char-dbflag cblt-x1-compx. *> pic x comp-x. 05 cblte-gsgb-editor-char-char cblt-x1-compx. *> pic x. 04 cblte-gsgb-hyhelp-tab. 05 cblte-gsgb-hyhelp-tab-dbflag cblt-x1-compx. *> pic x comp-x. 05 cblte-gsgb-hyhelp-tab-char cblt-x1-compx. *> pic x. 04 cblte-gsgb-hyhelp-btab. 05 cblte-gsgb-hyhelp-btab-dbflag cblt-x1-compx. *> pic x comp-x. 05 cblte-gsgb-hyhelp-btab-char cblt-x1-compx. *> pic x.
You must not set cblte-gsgb-buf-size to be greater than the length of cblte-gsgb-buf. If cblte-gsgb-buf-size exceeds the length of cblte-gsgb-buf, the run-time system continues to write to memory past the buffer, which could corrupt other data.
The byte count should include the whole of any DBCS character-part, even if DBCS is not requested or expected.
For the cblte-gsgb-*-dbflg data items, zero indicates single-byte character codes have been returned; a nonzero value is the first byte of the double-byte character returned.
Code | Description |
---|---|
0 | Success |
1 | Not all requested codes were available; cblte-gsgb-buf-size contains the number of bytes that were returned |
2 | cblte-gsgb-buf could not be filled with the character codes specified (either SBCS or DBCS). In this case, the characters that were not available were filled as though cblte-gsgb-flag was set to 0. |
3 | Both the errors signaled by status-code = 1 and 2 occurred. |