windows-nt/Source/XPSP1/NT/printscan/print/spooler/spoolss/dll/reply.h

117 lines
1.9 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (c) 1990-1994 Microsoft Corporation
All rights reserved
Module Name:
reply.h
Abstract:
Header for RPC conversations initiated from the server to the client.
Author:
Albert Ting (AlbertT) 04-June-94
Environment:
User Mode -Win32
Revision History:
--*/
typedef struct _NOTIFY {
DWORD signature; // Must be first (match _PRINTHANDLE) 6e6f
PPRINTHANDLE pPrintHandle;
PNOTIFY pNext;
DWORD dwType;
} NOTIFY;
#define REPLY_TYPE_NULL 0
#define REPLY_TYPE_NOTIFICATION 1
#define REPLY_TYPE_BROWSE 2
extern DWORD dwRouterUniqueSessionID;
DWORD
OpenReplyRemote(
LPWSTR pszMachine,
PHANDLE phNotifyRemote,
DWORD dwPrinterRemote,
DWORD dwType,
DWORD cbBuffer,
LPBYTE pBuffer);
VOID
CloseReplyRemote(
HANDLE hNotifyRemote);
BOOL
RouterReplyPrinter(
HANDLE hNotify,
DWORD dwColor,
DWORD fdwFlags,
PDWORD pdwResult,
DWORD dwReplyType,
PVOID pBuffer);
VOID
FreePrinterHandleNotifys(
PPRINTHANDLE pPrintHandle);
VOID
BeginReplyClient(
PPRINTHANDLE pPrintHandle,
DWORD fdwType);
VOID
EndReplyClient(
PPRINTHANDLE pPrintHandle,
DWORD fdwType);
VOID
RemoveReplyClient(
PPRINTHANDLE pPrintHandle,
DWORD fdwType);
//
// PrinterNotifyInfo related headers:
//
VOID
ClearPrinterNotifyInfo(
PPRINTER_NOTIFY_INFO pPrinterNotifyInfo,
PCHANGE pChange);
VOID
SetDiscardPrinterNotifyInfo(
PPRINTER_NOTIFY_INFO pPrinterNotifyInfo,
PCHANGE pChange);
DWORD
AppendPrinterNotifyInfo(
PPRINTHANDLE pPrintHandle,
DWORD dwColor,
PPRINTER_NOTIFY_INFO pPrinterNotifyInfo);
VOID
SetupPrinterNotifyInfo(
PPRINTER_NOTIFY_INFO pInfo,
PCHANGE pChange);
BOOL
ReplyPrinterChangeNotificationWorker(
HANDLE hPrinter,
DWORD dwColor,
DWORD fdwFlags,
PDWORD pdwResult,
PPRINTER_NOTIFY_INFO pPrinterNotifyInfo);