Description:
PrtDevIOCtl passes device-specific commands to the device. PrtDevIOCtl is an emulation of DosDevIOCtl.
Note: Under OS/2, PM port drivers are responsible for initializing printer ports; presentation drivers should not need to use this function.
#include <os2.h> PVOID pData; /* A pointer to a data packet. */ PVOID pParms; /* The parameter list. */ ULONG ulFunction; /* The function number. */ ULONG ulCategory; /* The category code. */ HFILE hDevice; /* The device handle returned by PrtOpen. */ ULONG rc; /* Return codes. */ rc = PrtDevIOCtl(pData, pParms, ulFunction, ulCategory, hDevice);