lmalert.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef _ALERT_
  7. #define _ALERT_
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. NET_API_STATUS WINAPI NetAlertRaise(LPCWSTR AlertEventName,LPVOID Buffer,DWORD BufferSize);
  12. NET_API_STATUS WINAPI NetAlertRaiseEx(LPCWSTR AlertEventName,LPVOID VariableInfo,DWORD VariableInfoSize,LPCWSTR ServiceName);
  13. typedef struct _STD_ALERT {
  14. DWORD alrt_timestamp;
  15. WCHAR alrt_eventname[EVLEN + 1];
  16. WCHAR alrt_servicename[SNLEN + 1];
  17. } STD_ALERT,*PSTD_ALERT,*LPSTD_ALERT;
  18. typedef struct _ADMIN_OTHER_INFO {
  19. DWORD alrtad_errcode;
  20. DWORD alrtad_numstrings;
  21. } ADMIN_OTHER_INFO,*PADMIN_OTHER_INFO,*LPADMIN_OTHER_INFO;
  22. typedef struct _ERRLOG_OTHER_INFO {
  23. DWORD alrter_errcode;
  24. DWORD alrter_offset;
  25. } ERRLOG_OTHER_INFO,*PERRLOG_OTHER_INFO,*LPERRLOG_OTHER_INFO;
  26. typedef struct _PRINT_OTHER_INFO {
  27. DWORD alrtpr_jobid;
  28. DWORD alrtpr_status;
  29. DWORD alrtpr_submitted;
  30. DWORD alrtpr_size;
  31. } PRINT_OTHER_INFO,*PPRINT_OTHER_INFO,*LPPRINT_OTHER_INFO;
  32. typedef struct _USER_OTHER_INFO {
  33. DWORD alrtus_errcode;
  34. DWORD alrtus_numstrings;
  35. } USER_OTHER_INFO,*PUSER_OTHER_INFO,*LPUSER_OTHER_INFO;
  36. #define ALERTER_MAILSLOT L"\\\\.\\MAILSLOT\\Alerter"
  37. #define ALERT_OTHER_INFO(x) ((LPBYTE)(x) + sizeof(STD_ALERT))
  38. #define ALERT_VAR_DATA(p) ((LPBYTE)(p) + sizeof(*p))
  39. #define ALERT_PRINT_EVENT L"PRINTING"
  40. #define ALERT_MESSAGE_EVENT L"MESSAGE"
  41. #define ALERT_ERRORLOG_EVENT L"ERRORLOG"
  42. #define ALERT_ADMIN_EVENT L"ADMIN"
  43. #define ALERT_USER_EVENT L"USER"
  44. #define PRJOB_QSTATUS 0x3
  45. #define PRJOB_DEVSTATUS 0x1fc
  46. #define PRJOB_COMPLETE 0x4
  47. #define PRJOB_INTERV 0x8
  48. #define PRJOB_ERROR 0x10
  49. #define PRJOB_DESTOFFLINE 0x20
  50. #define PRJOB_DESTPAUSED 0x40
  51. #define PRJOB_NOTIFY 0x80
  52. #define PRJOB_DESTNOPAPER 0x100
  53. #define PRJOB_DELETED 0x8000
  54. #define PRJOB_QS_QUEUED 0
  55. #define PRJOB_QS_PAUSED 1
  56. #define PRJOB_QS_SPOOLING 2
  57. #define PRJOB_QS_PRINTING 3
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61. #endif