3 Copyright 2004 by the Massachusetts Institute of Technology
7 Permission to use, copy, modify, and distribute this software and its
8 documentation for any purpose and without fee is hereby granted,
9 provided that the above copyright notice appear in all copies and that
10 both that copyright notice and this permission notice appear in
11 supporting documentation, and that the name of the Massachusetts
12 Institute of Technology (M.I.T.) not be used in advertising or publicity
13 pertaining to distribution of the software without specific, written
16 M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
17 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
18 M.I.T. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
19 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
21 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
29 DWORD InstallLoopBack(LPCTSTR pConnectionName, LPCTSTR ip, LPCTSTR mask);
30 BOOL IsLoopbackInstalled(void);
31 DWORD UnInstallLoopBack(void);
32 int RenameConnection(PCWSTR GuidString, PCWSTR pszNewName);
33 DWORD SetIpAddress(LPCWSTR guid, LPCWSTR ip, LPCWSTR mask);
34 HRESULT LoopbackBindings (LPCWSTR loopback_guid);
35 BOOL UpdateHostsFile( LPCWSTR swName, LPCWSTR swIp, LPCSTR szFilename, BOOL bPre );
40 #define DRIVER_DESC "Microsoft Loopback Adapter"
41 #define DRIVER _T("loopback")
42 #define MANUFACTURE _T("microsoft")
43 #define DEFAULT_NAME _T("AFS")
44 #define DEFAULT_IP _T("10.254.254.253")
45 #define DEFAULT_MASK _T("255.255.255.252")
51 printf("PAUSED - PRESS ENTER TO CONTINUE\n"); \
61 #define SLEEP Sleep(10*1000)