RouterRegisterForPrintAsyncNotifications function

The RouterRegisterForPrintAsyncNotifications function registers for asynchronous notifications associated with a printer or print server.

Syntax

HRESULT RouterRegisterForPrintAsyncNotifications(
  PCWSTR                            pName,
  PrintAsyncNotificationType        *pNotificationType,
  PrintAsyncNotifyUserFilter        eNotifyFilter,
  PrintAsyncNotifyConversationStyle eConversationStyle,
  IPrintAsyncNotifyCallback         *pCallback,
  HANDLE                            *phNotify
);

Parameters

pName

A pointer to a null-terminated string that specifies the name of the printer or print server.

pNotificationType

A pointer to the GUID that represents the type of notifications of interest to the caller.

eNotifyFilter

The filter for the session or user of interest to the caller when receiving notifications.

eConversationStyle

The type of communication: unidirectional or bidirectional.

pCallback

A pointer to the callback that is used deliver the notifications.

phNotify

A pointer to an opaque handle. The caller can use this handle to discontinue receiving notifications.

Return Value

This function returns S_OK on success, and a standard COM error code otherwise.

Requirements

   
Target Platform Desktop
Header prnasntp.h (include Prnasntp.h)
Library Spoolss.lib
DLL Spoolss.dll

See Also

RouterUnregisterForPrintAsyncNotifications