source: Daodan/MinGW/include/lmalert.h@ 1111

Last change on this file since 1111 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

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