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.

93 lines
2.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1994 - 1996.
  5. //
  6. // File: jt.hxx
  7. //
  8. // Contents: Main include file
  9. //
  10. // History: 04-20-95 DavidMun Created
  11. //
  12. //----------------------------------------------------------------------------
  13. #ifndef __JT_HXX
  14. #define __JT_HXX
  15. //
  16. // Global include files
  17. //
  18. // Define debnot.h so when safepnt.hxx includes debnot.h, its ifdef will
  19. // prevent it from being compiled. smdebug.h has already been included
  20. // by ..\..\pch\headers.hxx, and it replaces debnot.h.
  21. //
  22. #define __DEBNOT_H__
  23. #include <safepnt.hxx>
  24. //#include <debnot.h>
  25. //#if defined(_CHICAGO_)
  26. //#include "..\..\inc\job_cls.hxx"
  27. //typedef HRESULT (* GETCLASSOBJECT)(REFCLSID cid, REFIID iid, void **ppvObj);
  28. //#else
  29. #include <mstask.h>
  30. //#endif
  31. SAFE_INTERFACE_PTR(SpIUnknown, IUnknown);
  32. SAFE_INTERFACE_PTR(SpIMoniker, IMoniker);
  33. SAFE_INTERFACE_PTR(SpIBindCtx, IBindCtx);
  34. SAFE_INTERFACE_PTR(SpIPersistFile, IPersistFile);
  35. SAFE_INTERFACE_PTR(SpIJob, ITask);
  36. SAFE_INTERFACE_PTR(SpIJobTrigger, ITaskTrigger);
  37. SAFE_INTERFACE_PTR(SpIEnumJobs, IEnumWorkItems);
  38. SAFE_INTERFACE_PTR(SpIJobScheduler, ITaskScheduler);
  39. SAFE_INTERFACE_PTR(SpIProvideTaskPage, IProvideTaskPage);
  40. SAFE_HEAP_MEMPTR(SpWCHAR, WCHAR);
  41. SAFE_HEAP_MEMPTR(SpBYTE, BYTE);
  42. SAFE_WIN32_HANDLE(ShHANDLE);
  43. // Local project include files
  44. #include "log.hxx"
  45. #include "consts.hxx"
  46. #include "util.hxx"
  47. #include "help.hxx"
  48. #include "commands.hxx"
  49. #include "parse.hxx"
  50. #include "globals.hxx"
  51. #include "jobprop.hxx"
  52. #include "trigprop.hxx"
  53. #if defined(_CHICAGO_)
  54. STDAPI ConvertSageTasksToJobs(void); // from sched\sage\convert.cxx
  55. #else
  56. STDAPI GetNetScheduleAccountInformation(
  57. LPCWSTR pwszServerName,
  58. DWORD ccAccount,
  59. WCHAR wszAccount[]);
  60. STDAPI SetNetScheduleAccountInformation(
  61. LPCWSTR pwszServerName,
  62. LPCWSTR pwszAccount,
  63. LPCWSTR pwszPassword);
  64. #endif // _CHICAGO_
  65. //
  66. // The daytona version uses the global precompiled header, which pulls in a
  67. // header that redefines CoTaskMem* to wrapper functions which load ole32.dll
  68. // on demand. Since we simply link to the ole32 import library, and during
  69. // initialization always do OLE operations, we'll undefine these here.
  70. //
  71. #if defined(CoTaskMemAlloc)
  72. #undef CoTaskMemAlloc
  73. #endif
  74. #if defined(CoTaskMemFree)
  75. #undef CoTaskMemFree
  76. #endif
  77. #endif // __JT_HXX