home *** CD-ROM | disk | FTP | other *** search
- /*
- * Author : Ranveer Chandra
- * Directory: VirtualWiFi_Root\notifyob
- * File Name: common.h
- * Purpose : Common macros and declarations
- */
-
- #ifndef COMMON_H_INCLUDED
-
- #define COMMON_H_INCLUDED
-
- #include <devguid.h>
-
- #define VERBOSE_TRACE
-
- enum ConfigAction {
-
- eActUnknown,
- eActInstall,
- eActAdd,
- eActRemove,
- eActUpdate,
- eActPropertyUIAdd,
- eActPropertyUIRemove
- };
-
- //
- // PnP ID, also referred to as Hardware ID, of the protocol interface.
- //
-
- const WCHAR c_szMuxProtocol[] = L"ms_vwifip";
-
- //
- // PnP ID, also referred to as Hardware ID, of the Miniport interface.
- //
-
- const WCHAR c_szMuxMiniport[] = L"ms_vwifimp";
-
- //
- // Name of the service as specified in the inf file in AddService directive.
- //
-
- const WCHAR c_szMuxService[] = L"vwifip";
-
- //
- // Path to the config string where the virtual miniport instance names
- // are stored.
- //
-
- const WCHAR c_szAdapterList[] =
- L"System\\CurrentControlSet\\Services\\vwifip\\Parameters\\Adapters";
-
- //
- // Value name in the registry where miniport device id is stored.
- //
-
- const WCHAR c_szUpperBindings[] = L"UpperBindings";
-
-
- const WCHAR c_szDevicePrefix[] = L"\\Device\\";
-
- #define ReleaseObj( x ) if ( x ) \
- ((IUnknown*)(x))->Release();
-
-
- #define DBG 1
-
- #if DBG
- void TraceMsg (LPWSTR szFormat, ...);
- void DumpChangeFlag (DWORD dwChangeFlag);
- void DumpBindingPath (INetCfgBindingPath* pncbp);
- void DumpComponent (INetCfgComponent *pncc);
- #else
- #define TraceMsg
- #define DumpChangeFlag( x )
- #define DumpBindingPath( x )
- #define DumpComponent( x )
- #endif
-
- HRESULT HrFindInstance (INetCfg *pnc,
- GUID &guidInstance,
- INetCfgComponent **ppnccMiniport);
-
- LONG AddToMultiSzValue( HKEY hkeyAdapterGuid,
- LPWSTR szMiniportGuid);
-
- LONG DeleteFromMultiSzValue( HKEY hkeyAdapterGuid,
- LPWSTR szMiniportGuid);
-
- LPWSTR AddDevicePrefix (LPWSTR lpStr);
- LPWSTR RemoveDevicePrefix (LPWSTR lpStr);
-
- HRESULT OpenInterfaceHandle( LPWSTR adapterGuid, HANDLE *pHandle);
-
-
- #endif // COMMON_H_INCLUDED
-
-