DRV_OPEN and DRV_CLOSE

The pen driver receives the DRV_OPEN message whenever a process opens the pen driver by calling the Windows OpenDriver function. The pen driver receives DRV_CLOSE when the process calls CloseDriver to close the driver.