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.

73 lines
1.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997 - 2000
  5. //
  6. // File: H N C B A S E . H
  7. //
  8. // Contents: Base include file for HNetCfg service. Defines globals.
  9. //
  10. // Notes:
  11. //
  12. // Author: jonburs 23 May 2000
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include <atlbase.h>
  17. extern CComModule _Module;
  18. #include <atlcom.h>
  19. #include "hncatl.h"
  20. #define IID_PPV_ARG(Type, Expr) \
  21. __uuidof(Type), reinterpret_cast<void**>(static_cast<Type **>((Expr)))
  22. #define ARRAYSIZE(x) (sizeof((x)) / sizeof((x)[0]))
  23. //
  24. // Return value to use for policy violations
  25. //
  26. #define HN_E_POLICY E_ACCESSDENIED
  27. // Return value to use for sharing configuration conflict
  28. #define HNETERRORSTART 0x200
  29. #define E_ANOTHERADAPTERSHARED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, HNETERRORSTART+1)
  30. #define E_ICSADDRESSCONFLICT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, HNETERRORSTART+2)
  31. // Buffer sizes to use for notifications
  32. #ifndef NOTIFYFORMATBUFFERSIZE
  33. #define NOTIFYFORMATBUFFERSIZE 1024
  34. #endif
  35. #ifndef HNWCALLBACKBUFFERSIZE
  36. #define HNWCALLBACKBUFFERSIZE 1024
  37. #endif