Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1990-1994 Microsoft Corporation
  3. All rights reserved
  4. Module Name:
  5. reply.h
  6. Abstract:
  7. Header for RPC conversations initiated from the server to the client.
  8. Author:
  9. Albert Ting (AlbertT) 04-June-94
  10. Environment:
  11. User Mode -Win32
  12. Revision History:
  13. --*/
  14. typedef struct _NOTIFY {
  15. DWORD signature; // Must be first (match _PRINTHANDLE) 6e6f
  16. PPRINTHANDLE pPrintHandle;
  17. PNOTIFY pNext;
  18. DWORD dwType;
  19. } NOTIFY;
  20. #define REPLY_TYPE_NULL 0
  21. #define REPLY_TYPE_NOTIFICATION 1
  22. #define REPLY_TYPE_BROWSE 2
  23. extern DWORD dwRouterUniqueSessionID;
  24. DWORD
  25. OpenReplyRemote(
  26. LPWSTR pszMachine,
  27. PHANDLE phNotifyRemote,
  28. DWORD dwPrinterRemote,
  29. DWORD dwType,
  30. DWORD cbBuffer,
  31. LPBYTE pBuffer);
  32. VOID
  33. CloseReplyRemote(
  34. HANDLE hNotifyRemote);
  35. BOOL
  36. RouterReplyPrinter(
  37. HANDLE hNotify,
  38. DWORD dwColor,
  39. DWORD fdwFlags,
  40. PDWORD pdwResult,
  41. DWORD dwReplyType,
  42. PVOID pBuffer);
  43. VOID
  44. FreePrinterHandleNotifys(
  45. PPRINTHANDLE pPrintHandle);
  46. VOID
  47. BeginReplyClient(
  48. PPRINTHANDLE pPrintHandle,
  49. DWORD fdwType);
  50. VOID
  51. EndReplyClient(
  52. PPRINTHANDLE pPrintHandle,
  53. DWORD fdwType);
  54. VOID
  55. RemoveReplyClient(
  56. PPRINTHANDLE pPrintHandle,
  57. DWORD fdwType);
  58. //
  59. // PrinterNotifyInfo related headers:
  60. //
  61. VOID
  62. ClearPrinterNotifyInfo(
  63. PPRINTER_NOTIFY_INFO pPrinterNotifyInfo,
  64. PCHANGE pChange);
  65. VOID
  66. SetDiscardPrinterNotifyInfo(
  67. PPRINTER_NOTIFY_INFO pPrinterNotifyInfo,
  68. PCHANGE pChange);
  69. DWORD
  70. AppendPrinterNotifyInfo(
  71. PPRINTHANDLE pPrintHandle,
  72. DWORD dwColor,
  73. PPRINTER_NOTIFY_INFO pPrinterNotifyInfo);
  74. VOID
  75. SetupPrinterNotifyInfo(
  76. PPRINTER_NOTIFY_INFO pInfo,
  77. PCHANGE pChange);
  78. BOOL
  79. ReplyPrinterChangeNotificationWorker(
  80. HANDLE hPrinter,
  81. DWORD dwColor,
  82. DWORD fdwFlags,
  83. PDWORD pdwResult,
  84. PPRINTER_NOTIFY_INFO pPrinterNotifyInfo);