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.

77 lines
2.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997-1999.
  5. //
  6. // File: M A C R O S. H
  7. //
  8. // Contents: Local declarations for the Notify object code for the sample filter.
  9. //
  10. // Notes:
  11. //
  12. // Author: kumarp 26-March-98
  13. //
  14. //----------------------------------------------------------------------------
  15. #ifndef _MACROS_H
  16. #define _MACROS_H
  17. // =================================================================
  18. // Defines
  19. #define FALL_THROUGH // For informational purpose in a switch statement
  20. #define NOTHING // For informational purpose in a for loop
  21. #define IM_NAME_LENGTH 0x2e // = len ("\Device\<Guid>") in unicode
  22. // =================================================================
  23. // string constants
  24. //
  25. static const WCHAR c_szAtmEpvcP[] = L"ATMEPVCP";
  26. static const WCHAR c_szEpvcDevice[] = L"Device";
  27. const WCHAR c_szSFilterParams[] = L"System\\CurrentControlSet\\Services\\ATMEPVCP\\Parameters";
  28. const WCHAR c_szSFilterNdisName[] = L"ATMEPVCP";
  29. const WCHAR c_szAtmAdapterPnpId[] = L"AtmAdapterPnpId";
  30. const WCHAR c_szUpperBindings[] = L"UpperBindings";
  31. const WCHAR c_szDevice[] = L"\\Device\\";
  32. const WCHAR c_szInfId_MS_ATMEPVCM[] = L"MS_ATMEPVCM";
  33. const WCHAR c_szBackslash[] = L"\\";
  34. const WCHAR c_szParameters[] = L"Parameters";
  35. const WCHAR c_szAdapters[] = L"Adapters";
  36. const WCHAR c_szRegKeyServices[] = L"System\\CurrentControlSet\\Services";
  37. const WCHAR c_szRegParamAdapter[] = L"System\\CurrentControlSet\\Services\\ATMEPVCP\\Parameters\\Adapters";
  38. const WCHAR c_szIMMiniportList[] = L"IMMiniportList";
  39. const WCHAR c_szIMiniportName[] = L"Name";
  40. // ====================================================================
  41. // macros to be used.
  42. //
  43. #define ReleaseAndSetToNull(_O) \
  44. ReleaseObj(_O); \
  45. _O = NULL ;
  46. #define TraceBreak(_s) TraceMsg(_s);BREAKPOINT();
  47. #define MemAlloc(_Len) malloc(_Len);
  48. #define MemFree(_pv) free(_pv);
  49. #define celems(_x) (sizeof(_x) / sizeof(_x[0]))
  50. ;
  51. #endif