Leaked source code of windows server 2003
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.

128 lines
2.4 KiB

  1. /*++
  2. Copyright (c) 1994-1999 Microsoft Corporation
  3. Module Name :
  4. comprop.h
  5. Abstract:
  6. Common properties header file
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. #ifndef __COMPROP_H__
  14. #define __COMPROP_H__
  15. #ifdef _COMEXPORT
  16. #define COMDLL __declspec(dllexport)
  17. #elif defined(_COMIMPORT)
  18. #define COMDLL __declspec(dllimport)
  19. #elif defined(_COMSTATIC)
  20. #define COMDLL
  21. #else
  22. #error "Must define either _COMEXPORT, _COMIMPORT or _COMSTATIC"
  23. #endif // _COMEXPORT
  24. #pragma warning(disable: 4275)
  25. #pragma warning(disable: 4251)
  26. #include <lmcons.h>
  27. #include <iis64.h>
  28. #include "inetcom.h"
  29. #include "iisinfo.h"
  30. #include "svcloc.h"
  31. #include "..\common\resource.h"
  32. //
  33. // Memory Allocation Macros
  34. //
  35. #define AllocMem(cbSize)\
  36. ::LocalAlloc(LPTR, cbSize)
  37. #define FreeMem(lp)\
  38. ::LocalFree(lp);\
  39. lp = NULL;
  40. #define AllocMemByType(citems, type)\
  41. (type *)AllocMem(citems * sizeof(type))
  42. //
  43. // Program flow macros
  44. //
  45. #define FOREVER for(;;)
  46. #define BREAK_ON_ERR_FAILURE(err)\
  47. if (err.Failed()) break;
  48. #define BREAK_ON_NULL_PTR(lp)\
  49. if (lp == NULL) break;
  50. //
  51. // Safe allocators
  52. //
  53. #define SAFE_DELETE(obj)\
  54. if (obj != NULL) do { delete obj; obj = NULL; } while(0)
  55. #define SAFE_DELETE_OBJECT(obj)\
  56. if (obj != NULL) do { DeleteObject(obj); obj = NULL; } while(0)
  57. #define SAFE_FREEMEM(lp)\
  58. if (lp != NULL) do { FreeMem(lp); lp = NULL; } while(0)
  59. #define SAFE_SYSFREESTRING(lp)\
  60. if (lp != NULL) do { ::SysFreeString(lp); lp = NULL; } while(0)
  61. #define SAFE_AFXFREELIBRARY(hLib)\
  62. if (hLib != NULL) do { ::AfxFreeLibrary(hLib); hLib = NULL; } while(0)
  63. #define SAFE_RELEASE(lpInterface)\
  64. if (lpInterface != NULL) do { lpInterface->Release(); lpInterface = NULL; } while(0)
  65. //
  66. // General purpose files
  67. //
  68. #include "debugafx.h"
  69. #include "objplus.h"
  70. #include "strfn.h"
  71. #include "strvalid.h"
  72. #include "odlbox.h"
  73. #include "msg.h"
  74. #include "mdkeys.h"
  75. #include "ipa.h"
  76. #include "wizard.h"
  77. //#include "registry.h"
  78. #include "ddxv.h"
  79. #include "objpick.h"
  80. #include "accentry.h"
  81. #include "sitesecu.h"
  82. #include "utcls.h"
  83. //#include "ipctl.h"
  84. //#include "dtp.h"
  85. #include "dirbrows.h"
  86. #include "acl.h"
  87. #include "util.h"
  88. #include "hosthead.h"
  89. extern "C" void WINAPI InitCommonDll();
  90. #endif // __COMPROP_H__