There’s a program known as Macshift ( http://devices.natetrue.com/macshift/ ), the
source codes are available too.
But however, when I tried to compile with Dev
C++ or Visual C++ on WinXP, there were
compilation errors:
netcon.h: No such file or directory
In function `void ResetAdapter(char*)’:
80: warning: `__stdcall__’ attribute only
applies to function types
80: error: `NETCON_PROPERTIES’ undeclared (first
use this function)
80: error: (Each undeclared identifier is
reported only once for each function it appears
in.)
80: error: expected primary-expression before
‘)’ token
86: error: invalid conversion from `void
(*)(tagNETCON_PROPERTIES*)’ to `void*’
96: error: `INetConnectionManager’ undeclared
(first use this function)
96: error: `pNCM’ undeclared (first use this
function)
100: error: `__uuidof’ undeclared (first use
this function)
105: error: `IEnumNetConnection’ undeclared
(first use this function)
105: error: `pENC’ undeclared (first use this
function)
106: error: `NCME_DEFAULT’ undeclared (first use
this function)
111: error: `INetConnection’ undeclared (first
use this function)
111: error: `pNC’ undeclared (first use this
function)
113: error: `pNCP’ undeclared (first use this
function)
123: error: `NcFreeNetConProperties’ cannot be
used as a function
Any idea how to fix it? Thanks.