GpiQueryTag: Difference between revisions
Appearance
Created page with "==Syntax== GpiQueryTag(hps, plTag); ==Parameters== ; hps (HPS) - input : Presentation-space handle. ; plTag (PLONG) - output : Tag identifier. ==Return Value== ; rc (BOOL) - returns : Success indicator. :; TRUE :: Successful completion :; FALSE :: Error occurred. ==Remarks== This function is invalid when the drawing mode (see GpiSetDrawingMode) is set to retain. ==Errors== Possible returns from WinGetLastError: ; PMERR_INV_HPS (0x207F) : An invalid presentation-spac..." |
No edit summary |
||
Line 3: | Line 3: | ||
==Parameters== | ==Parameters== | ||
; hps (HPS) - input | ; hps ([[HPS]]) - input | ||
: Presentation-space handle. | : Presentation-space handle. | ||
; plTag (PLONG) - output | ; plTag ([[PLONG]]) - output | ||
: Tag identifier. | : Tag identifier. | ||
==Return Value== | ==Return Value== | ||
; rc (BOOL) - returns | ; rc ([[BOOL]]) - returns | ||
: Success indicator. | : Success indicator. | ||
:; TRUE | :; TRUE | ||
Line 18: | Line 18: | ||
==Remarks== | ==Remarks== | ||
This function is invalid when the drawing mode (see GpiSetDrawingMode) is set to retain. | This function is invalid when the drawing mode (see [[GpiSetDrawingMode]]) is set to retain. | ||
==Errors== | ==Errors== |
Revision as of 17:58, 6 April 2025
Syntax
GpiQueryTag(hps, plTag);
Parameters
- hps (HPS) - input
- Presentation-space handle.
- plTag (PLONG) - output
- Tag identifier.
Return Value
- rc (BOOL) - returns
- Success indicator.
- TRUE
- Successful completion
- FALSE
- Error occurred.
Remarks
This function is invalid when the drawing mode (see GpiSetDrawingMode) is set to retain.
Errors
Possible returns from WinGetLastError:
- PMERR_INV_HPS (0x207F)
- An invalid presentation-space handle was specified.
- PMERR_PS_BUSY (0x20F4)
- An attempt was made to access the presentation space from more than one thread simultaneously.
- PMERR_INV_MICROPS_FUNCTION (0x20A1)
- An attempt was made to issue a function that is invalid in a micro presentation space.
Example Code
#define INCL_GPICORRELATION /* Or use INCL_GPI, INCL_PM, */ #include <os2.h> HPS hps; /* Presentation-space handle. */ PLONG plTag; /* Tag identifier. */ BOOL rc; /* Success indicator. */ rc = GpiQueryTag(hps, plTag);
This function returns the current value of the tag identifier, as set by the GpiSetTag call.
#define INCL_GPICORRELATION #include <OS2.H> HPS hps; /* Presentation-space handle. */ LONG lTag; /* Tag identifier. */ GpiQueryTag(hps, &lTag);