Simulation support:
None.
Description
GreEscape DEVESC_HWREQUEST is called by EnDIVE users to take advantage of enhanced aquire functions. In addition to performing the same serialization functions, GreEscape DEVESC_HWREQUEST lets each using process find out if its video memory buffer has been relocated or if system memory could not be allocated.
#define INCL_GRE_DEVICE #include <os2.h> HDC hdc; /* Device context handle. */ LONG ICODE; /* DEVESC_HWREQUEST escape code. */ LONG lInCount; /* Number of bytes pointed to by pbInData. */ PBYTE pbInData; /* Pointer to VRAMREQUESTIN data structure. */ PLONG plOutCount; /* Number of bytes pointed to by pbOutData. */ PLONG pbOutData; /* Pointer to VRAMREQUESTOUT data structure. */ LONG rc; /* Return Codes. */ rc = GreEscape(hdc, ICODE, lInCount, pbInData, plOutCount, pbOutData);