RouterRegisterForPrintAsyncNotifications 関数 (prnasntp.h)

関数は RouterRegisterForPrintAsyncNotifications 、プリンターまたはプリント サーバーに関連付けられている非同期通知に登録します。

構文

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

パラメーター

[in] pName

プリンターまたはプリント サーバーの名前を指定する null で終わる文字列へのポインター。

[in] pNotificationType

呼び出し元に対して関心のある通知の種類を表す GUID へのポインター。

[in] eNotifyFilter

通知の受信時に呼び出し元に関心のあるセッションまたはユーザーのフィルター。

[in] eConversationStyle

通信の種類: 一方向または双方向。

[in] pCallback

使用されるコールバックへのポインターは、通知を配信します。

[out] phNotify

不透明なハンドルへのポインター。 呼び出し元は、このハンドルを使用して、通知の受信を中止できます。

戻り値

この関数は成功時にS_OKを返し、それ以外の場合は標準の COM エラー コードを返します。

要件

要件
対象プラットフォーム デスクトップ
Header prnasntp.h (Prnasntp.h を含む)
Library Spoolss.lib
[DLL] Spoolss.dll

こちらもご覧ください

RouterUnregisterForPrintAsyncNotifications