Simulation support:
None.
Description
GreEscape DEVESC_REGISTER is called by EnDIVE users to register and unregister use with the driver. This function allows each calling process to be uniquely identified by the handle returned on a register operation.
#define INCL_GRE_DEVICE
#include <os2.h>
HDC hdc; /* Device context handle. */
LONG ICODE; /* DEVESC_REGISTER escape code. */
LONG lInCount; /* Number of bytes pointed to by pbInData. */
PBYTE pbInData; /* Pointer to VRAMREGISTERIN data structure. */
PLONG plOutCount; /* Number of bytes pointed to by pbOutData. */
PLONG pbOutData; /* Pointer to VRAMREGISTEROUT data structure. */
LONG rc; /* Return Codes. */
rc = GreEscape(hdc, ICODE, lInCount, pbInData,
plOutCount, pbOutData);