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 오류 코드를 반환합니다.
요구 사항
요구 사항 | 값 |
---|---|
대상 플랫폼 | 데스크톱 |
머리글 | prnasntp.h(Prnasntp.h 포함) |
라이브러리 | Spoolss.lib |
DLL | Spoolss.dll |