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.

122 lines
2.2 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. #define AllocMemByType(citems, type)\
  40. (type *)AllocMem(citems * sizeof(type))
  41. //
  42. // Program flow macros
  43. //
  44. #define FOREVER for(;;)
  45. #define BREAK_ON_ERR_FAILURE(err)\
  46. if (err.Failed()) break;
  47. #define BREAK_ON_NULL_PTR(lp)\
  48. if (lp == NULL) break;
  49. //
  50. // Safe allocators
  51. //
  52. #define SAFE_DELETE(obj)\
  53. if (obj != NULL) do { delete obj; obj = NULL; } while(0)
  54. #define SAFE_DELETE_OBJECT(obj)\
  55. if (obj != NULL) do { DeleteObject(obj); obj = NULL; } while(0)
  56. #define SAFE_FREEMEM(lp)\
  57. if (lp != NULL) do { FreeMem(lp); lp = NULL; } while(0)
  58. #define SAFE_SYSFREESTRING(lp)\
  59. if (lp != NULL) do { ::SysFreeString(lp); lp = NULL; } while(0)
  60. #define SAFE_AFXFREELIBRARY(hLib)\
  61. if (hLib != NULL) do { ::AfxFreeLibrary(hLib); hLib = NULL; } while(0)
  62. #define SAFE_RELEASE(lpInterface)\
  63. if (lpInterface != NULL) do { lpInterface->Release(); lpInterface = NULL; } while(0)
  64. //
  65. // General purpose files
  66. //
  67. #include "debugafx.h"
  68. #include "objplus.h"
  69. #include "strfn.h"
  70. #include "odlbox.h"
  71. #include "msg.h"
  72. #include "mdkeys.h"
  73. #include "ipa.h"
  74. #include "wizard.h"
  75. //#include "registry.h"
  76. #include "ddxv.h"
  77. #include "objpick.h"
  78. #include "accentry.h"
  79. #include "sitesecu.h"
  80. #include "utcls.h"
  81. //#include "ipctl.h"
  82. //#include "dtp.h"
  83. #include "dirbrows.h"
  84. extern "C" void WINAPI InitCommonDll();
  85. #endif // __COMPROP_H__