其中有一个函数,文档里面是这样的
EnableStatusReporting:
int EnableStatusReporting(HDC hDC,
HANDLE* phSession,
DWORD dwFlags);
Parameters hDC A device context handle for the printer driver the application is using. phSession A pointer to a variable that will receive a handle that identifies the newly
established session with the status monitor. This handle must be closed with
DisableStatusReporting(). dwFlags Defines how the status monitor will deal with all errors from now on. It can
assume one of the following values: