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
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
28 typedef struct _ADMIN_OTHER_INFO
{
30 DWORD alrtad_numstrings
;
31 }ADMIN_OTHER_INFO
,*PADMIN_OTHER_INFO
,*LPADMIN_OTHER_INFO
;
32 typedef struct _STD_ALERT
{
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
{
40 }ERRLOG_OTHER_INFO
,*PERRLOG_OTHER_INFO
,*LPERRLOG_OTHER_INFO
;
41 typedef struct _PRINT_OTHER_INFO
{
44 DWORD alrtpr_submitted
;
46 }PRINT_OTHER_INFO
,*PPRINT_OTHER_INFO
,*LPPRINT_OTHER_INFO
;
47 typedef struct _USER_OTHER_INFO
{
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
);