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.

42 lines
938 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1998 - 2001
  5. //
  6. // File : hnmbase.h
  7. //
  8. // Contents : Base include file for HNetMon. Includes ATL stuff.
  9. //
  10. // Notes :
  11. //
  12. // Author : Raghu Gatta (rgatta) 11 May 2001
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #ifndef __HNMBASE_H_
  17. #define __HNMBASE_H_
  18. #include <atlbase.h>
  19. extern CComModule _Module;
  20. #include <atlcom.h>
  21. #define IID_PPV_ARG(Type, Expr) \
  22. __uuidof(Type), reinterpret_cast<void**>(static_cast<Type **>((Expr)))
  23. #define ARRAYSIZE(x) (sizeof((x)) / sizeof((x)[0]))
  24. #ifndef AddRefObj
  25. #define AddRefObj (obj) (( obj ) ? (obj)->AddRef () : 0)
  26. #endif
  27. #ifndef ReleaseObj
  28. #define ReleaseObj(obj) (( obj ) ? (obj)->Release() : 0)
  29. #endif
  30. #endif // __HNMBASE_H_