aboutsummaryrefslogtreecommitdiff
path: root/x86_64-w64-mingw32/include/prnasnot.h
blob: ae958c018b05ddd166eec428ab0ad25debe3e9d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/**
 * This file has no copyright assigned and is placed in the Public Domain.
 * This file is part of the mingw-w64 runtime package.
 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 */
#ifndef _INC_PRNASNOT
#define _INC_PRNASNOT
#if (_WIN32_WINNT >= 0x0600)

#ifdef __cplusplus
extern "C" {
#endif

typedef enum tagPrintAsyncNotifyConversationStyle {
  kBiDirectional,
  kUniDirectional 
} PrintAsyncNotifyConversationStyle;

typedef enum tagPrintAsyncNotifyError {
  CHANNEL_CLOSED_BY_SERVER                  = 0x01,
  CHANNEL_CLOSED_BY_ANOTHER_LISTENER        = 0x02,
  CHANNEL_CLOSED_BY_SAME_LISTENER           = 0x03,
  CHANNEL_RELEASED_BY_LISTENER              = 0x04,
  UNIRECTIONAL_NOTIFICATION_LOST            = 0x05,
  ASYNC_NOTIFICATION_FAILURE                = 0x06,
  NO_LISTENERS                              = 0x07,
  CHANNEL_ALREADY_CLOSED                    = 0x08,
  CHANNEL_ALREADY_OPENED                    = 0x09,
  CHANNEL_WAITING_FOR_CLIENT_NOTIFICATION   = 0x0a,
  CHANNEL_NOT_OPENED                        = 0x0b,
  ASYNC_CALL_ALREADY_PARKED                 = 0x0c,
  NOT_REGISTERED                            = 0x0d,
  ALREADY_UNREGISTERED                      = 0x0e,
  ALREADY_REGISTERED                        = 0x0f,
  CHANNEL_ACQUIRED                          = 0x10,
  ASYNC_CALL_IN_PROGRESS                    = 0x11,
  MAX_NOTIFICATION_SIZE_EXCEEDED            = 0x12,
  INTERNAL_NOTIFICATION_QUEUE_IS_FULL       = 0x13,
  INVALID_NOTIFICATION_TYPE                 = 0x14,
  MAX_REGISTRATION_COUNT_EXCEEDED           = 0x15,
  MAX_CHANNEL_COUNT_EXCEEDED                = 0x16,
  LOCAL_ONLY_REGISTRATION                   = 0x17,
  REMOTE_ONLY_REGISTRATION                  = 0x18 
} PrintAsyncNotifyError;

typedef enum tagPrintAsyncNotifyUserFilter {
  kPerUser,
  kAllUsers 
} PrintAsyncNotifyUserFilter;

HRESULT CreatePrintAsyncNotifyChannel(
  LPCWSTR pName,
  PrintAsyncNotificationType *pSchema,
  PrintAsyncNotifyUserFilter filter,
  PrintAsyncNotifyConversationStyle directionality,
  IPrintAsyncNotifyCallback *pCallback,
  IPrintAsyncNotifyChannel **ppChannel
);

HRESULT RegisterForPrintAsyncNotifications(
  LPCWSTR pName,
  PrintAsyncNotificationType *pSchema,
  PrintAsyncNotifyUserFilter filter,
  PrintAsyncNotifyConversationStyle directionality,
  IPrintAsyncNotifyCallback *pCallback,
  HANDLE *pRegistrationHandler
);

HRESULT UnRegisterForPrintAsyncNotifications(
  HANDLE hRegistrationHandler
);

#ifdef __cplusplus
}
#endif

#endif /* (_WIN32_WINNT >= 0x0600) */
#endif /*_INC_PRNASNOT*/