Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

102 lines
1.9 KiB

  1. /************************************************************************
  2. Copyright (c) 2000 - 2000 Microsoft Corporation
  3. Module Name :
  4. stdafx.h
  5. Abstract :
  6. Main header file for QMGR.
  7. Author :
  8. Revision History :
  9. ***********************************************************************/
  10. #pragma once
  11. #if !defined(__QMGR_QMGR_STDAFX__)
  12. #define INITGUID
  13. // Global Headers
  14. #include<nt.h>
  15. #include<ntrtl.h>
  16. #include<nturtl.h>
  17. #include <windows.h>
  18. #include <olectl.h>
  19. #include <objbase.h>
  20. #include <docobj.h>
  21. //shell related
  22. #include <shlwapi.h> //for PathFindFileName
  23. #include <shlguid.h> //for CGID_ShellServiceObject
  24. #include <tchar.h>
  25. #include <lmcons.h>
  26. #include <setupapi.h>
  27. #include <inseng.h>
  28. #ifdef USE_WININET
  29. #include <wininet.h>
  30. #else
  31. #include "winhttp.h"
  32. #include "inethttp.h"
  33. #endif
  34. #include <coguid.h>
  35. #include <sens.h>
  36. #include <sensevts.h>
  37. #include <eventsys.h>
  38. #include <winsock2.h>
  39. #include <iphlpapi.h>
  40. #include <bitsmsg.h>
  41. #include <memory>
  42. #include "qmgrlib.h"
  43. #include "metadata.h"
  44. #include "bits.h"
  45. #include "bits1_5.h"
  46. #include "locks.hxx"
  47. #include "caddress.h"
  48. #include "cmarshal.h"
  49. #include "ccred.h"
  50. #include "proxy.h"
  51. #include "downloader.h"
  52. #include "uploader.h"
  53. #include "csd.h"
  54. #include "cunknown.h"
  55. #include "csens.h"
  56. #include "logontable.h"
  57. #include "tasksched.h"
  58. #include "cfile.h"
  59. #include "cerror.h"
  60. #include "cjob.h"
  61. #include "cenum.h"
  62. #include "drizcpat.h"
  63. #include "cmanager.h"
  64. using namespace std;
  65. #define GUIDSTR_MAX (1+ 8 + 1 + 4 + 1 + 4 + 1 + 4 + 1 + 12 + 1 + 1)
  66. inline void SafeFreeBSTR( BSTR & p) { if (NULL != (p)) { SysFreeString(p); p = NULL; } }
  67. #define QM_STATUS_FILE_ERROR 0x00000004#
  68. // Global vars
  69. extern long g_cLocks;
  70. extern long g_cComponents;
  71. extern HINSTANCE g_hinstDll;
  72. // Macros
  73. #ifndef ARRAYSIZE
  74. #define ARRAYSIZE(x) (sizeof((x))/sizeof((x)[0]))
  75. #endif
  76. HRESULT GlobalLockServer(BOOL fLock);
  77. #endif //__QMGR_QMGR_STDAFX__