WNetAbortJob

  WORD WNetAbortJob(szQueue, fh)    
  LPSTR szQueue;    
  WORD fh;    

The WNetAbortJob function cancels a print job while the file handle is still open.

Parameters

szQueue

Points to the null-terminated name of the local device.

fh

Identifies the handle returned by the WNetOpenJob function.

Return Value

The return value is one of the following values.

Value Meaning

WN_ACCESS_DENIED Security violation.
WN_BAD_HANDLE File handle is invalid.
WN_BAD_POINTER Invalid pointer.
WN_BAD_QUEUE The szQueue parameter is not a valid net queue or redirected device.
WN_NET_ERROR Network error.
WN_NOT_SUPPORTED Function not supported.
WN_OUT_OF_MEMORY Out of memory.
WN_SUCCESS Success.

Comments

The export ordinal for this function is 3.

See Also

WNetOpenJob, WNetCancelJob