zlib 1.2.3
[msysgit.git] / include / lmalert.h
blobd4899bc30769dd8e9ab1363766c95ebc5a546fe5
1 #ifndef _LMALERT_H
2 #define _LMALERT_H
3 #define ALERTER_MAILSLOT TEXT("\\\\.\\MAILSLOT\\Alerter")
4 #define ALERT_PRINT_EVENT TEXT("PRINTING")
5 #define ALERT_MESSAGE_EVENT TEXT("MESSAGE")
6 #define ALERT_ERRORLOG_EVENT TEXT("ERRORLOG")
7 #define ALERT_ADMIN_EVENT TEXT("ADMIN")
8 #define ALERT_USER_EVENT TEXT("USER")
9 #define ALERT_OTHER_INFO(x) ((PBYTE)(x)+sizeof(STD_ALERT))
10 #define ALERT_VAR_DATA(p) ((PBYTE)(p)+sizeof(*p))
11 #define PRJOB_QSTATUS 3
12 #define PRJOB_DEVSTATUS 508
13 #define PRJOB_COMPLETE 4
14 #define PRJOB_INTERV 8
15 #define PRJOB_ 16
16 #define PRJOB_DESTOFFLINE 32
17 #define PRJOB_DESTPAUSED 64
18 #define PRJOB_NOTIFY 128
19 #define PRJOB_DESTNOPAPER 256
20 #define PRJOB_DELETED 32768
21 #define PRJOB_QS_QUEUED 0
22 #define PRJOB_QS_PAUSED 1
23 #define PRJOB_QS_SPOOLING 2
24 #define PRJOB_QS_PRINTING 3
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 typedef struct _ADMIN_OTHER_INFO {
29 DWORD alrtad_errcode;
30 DWORD alrtad_numstrings;
31 }ADMIN_OTHER_INFO,*PADMIN_OTHER_INFO,*LPADMIN_OTHER_INFO;
32 typedef struct _STD_ALERT {
33 DWORD alrt_timestamp;
34 TCHAR alrt_eventname[EVLEN+1];
35 TCHAR alrt_servicename[SNLEN+1];
36 }STD_ALERT,*PSTD_ALERT,*LPSTD_ALERT;
37 typedef struct _ERRLOG_OTHER_INFO {
38 DWORD alrter_errcode;
39 DWORD alrter_offset;
40 }ERRLOG_OTHER_INFO,*PERRLOG_OTHER_INFO,*LPERRLOG_OTHER_INFO;
41 typedef struct _PRINT_OTHER_INFO {
42 DWORD alrtpr_jobid;
43 DWORD alrtpr_status;
44 DWORD alrtpr_submitted;
45 DWORD alrtpr_size;
46 }PRINT_OTHER_INFO,*PPRINT_OTHER_INFO,*LPPRINT_OTHER_INFO;
47 typedef struct _USER_OTHER_INFO {
48 DWORD alrtus_errcode;
49 DWORD alrtus_numstrings;
50 }USER_OTHER_INFO,*PUSER_OTHER_INFO,*LPUSER_OTHER_INFO;
51 NET_API_STATUS WINAPI NetAlertRaise(LPCWSTR,PVOID,DWORD);
52 NET_API_STATUS WINAPI NetAlertRaiseEx(LPCWSTR,PVOID,DWORD,LPCWSTR);
53 #ifdef __cplusplus
55 #endif
56 #endif