home *** CD-ROM | disk | FTP | other *** search
/ PCNET 2006 September - Disc 1 / PCNET_CD_2006_09.iso / surpriz / MSRMesh-VirtualWIFI.MSI / common.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-06-24  |  2.2 KB  |  98 lines

  1. /*
  2.  * Author   : Ranveer Chandra
  3.  * Directory: VirtualWiFi_Root\notifyob
  4.  * File Name: common.h
  5.  * Purpose  : Common macros and declarations 
  6.  */
  7.  
  8. #ifndef COMMON_H_INCLUDED
  9.  
  10. #define COMMON_H_INCLUDED
  11.  
  12. #include <devguid.h>
  13.  
  14. #define VERBOSE_TRACE
  15.  
  16. enum ConfigAction {
  17.  
  18.     eActUnknown, 
  19.     eActInstall, 
  20.     eActAdd, 
  21.     eActRemove,
  22.     eActUpdate,
  23.     eActPropertyUIAdd,
  24.     eActPropertyUIRemove
  25. };       
  26.  
  27. //
  28. // PnP ID, also referred to as Hardware ID, of the protocol interface.
  29. //
  30.  
  31. const WCHAR c_szMuxProtocol[] = L"ms_vwifip";
  32.  
  33. //
  34. // PnP ID, also referred to as Hardware ID, of the Miniport interface.
  35. //
  36.  
  37. const WCHAR c_szMuxMiniport[] = L"ms_vwifimp";
  38.  
  39. //
  40. // Name of the service as specified in the inf file in AddService directive.
  41. //
  42.  
  43. const WCHAR c_szMuxService[] = L"vwifip";
  44.  
  45. //
  46. // Path to the config string where the virtual miniport instance names
  47. // are stored.
  48. //
  49.  
  50. const WCHAR c_szAdapterList[] =
  51.                   L"System\\CurrentControlSet\\Services\\vwifip\\Parameters\\Adapters";
  52.  
  53. //
  54. // Value name in the registry where miniport device id is stored.
  55. //
  56.  
  57. const WCHAR c_szUpperBindings[] = L"UpperBindings";
  58.  
  59.  
  60. const WCHAR c_szDevicePrefix[] = L"\\Device\\";
  61.  
  62. #define ReleaseObj( x )  if ( x ) \
  63.                             ((IUnknown*)(x))->Release();
  64.  
  65.  
  66. #define DBG                        1
  67.  
  68. #if DBG
  69. void TraceMsg (LPWSTR szFormat, ...);
  70. void DumpChangeFlag (DWORD dwChangeFlag);
  71. void DumpBindingPath (INetCfgBindingPath* pncbp);
  72. void DumpComponent (INetCfgComponent *pncc);
  73. #else
  74. #define TraceMsg
  75. #define DumpChangeFlag( x )
  76. #define DumpBindingPath( x )
  77. #define DumpComponent( x )
  78. #endif
  79.  
  80. HRESULT HrFindInstance (INetCfg *pnc,
  81.                         GUID &guidInstance,
  82.                         INetCfgComponent **ppnccMiniport);
  83.  
  84. LONG AddToMultiSzValue( HKEY hkeyAdapterGuid,
  85.                         LPWSTR szMiniportGuid);
  86.  
  87. LONG DeleteFromMultiSzValue( HKEY hkeyAdapterGuid,
  88.                              LPWSTR szMiniportGuid);
  89.  
  90. LPWSTR AddDevicePrefix (LPWSTR lpStr);
  91. LPWSTR RemoveDevicePrefix (LPWSTR lpStr);
  92.  
  93. HRESULT OpenInterfaceHandle( LPWSTR adapterGuid, HANDLE *pHandle);
  94.  
  95.  
  96. #endif // COMMON_H_INCLUDED
  97.  
  98.