windows-nt/Source/XPSP1/NT/net/rras/ras/ppp/rasiphlp/rassrvr.h
2020-09-26 16:20:57 +08:00

107 lines
1.7 KiB
C

/*
Copyright (c) 1998, Microsoft Corporation, all rights reserved
Description:
History:
*/
#ifndef _RASSRVR_H_
#define _RASSRVR_H_
#include "rasiphlp.h"
typedef DWORD (MPRADMINGETIPADDRESSFORUSER)(
IN WCHAR* wszUserName,
IN WCHAR* wszPortName,
IN OUT IPADDR* pnboIpAddress,
OUT BOOL* fNotifyDll
);
typedef VOID (MPRADMINRELEASEIPADDRESS)(
IN WCHAR* wszUserName,
IN WCHAR* wszPortName,
IN OUT IPADDR* pnboIpAddress
);
typedef struct IPINFO
{
IPADDR nboWINSAddress;
IPADDR nboWINSAddressBackup;
IPADDR nboDNSAddress;
IPADDR nboDNSAddressBackup;
IPADDR nboServerIpAddress;
IPADDR nboServerSubnetMask;
} IPINFO;
extern BOOL RasSrvrRunning;
DWORD
RasSrvrInitialize(
IN MPRADMINGETIPADDRESSFORUSER* pfnMprGetAddress,
IN MPRADMINRELEASEIPADDRESS* pfnMprReleaseAddress
);
VOID
RasSrvrUninitialize(
VOID
);
DWORD
RasSrvrStart(
VOID
);
VOID
RasSrvrStop(
IN BOOL fParametersChanged
);
DWORD
RasSrvrAcquireAddress(
IN HPORT hPort,
IN IPADDR nboIpAddress,
OUT IPADDR* pnboIpAddressAllocated,
IN WCHAR* wszUserName,
IN WCHAR* wszPortName
);
VOID
RasSrvrReleaseAddress(
IN IPADDR nboIpAddress,
IN WCHAR* wszUserName,
IN WCHAR* wszPortName,
IN BOOL fDeregister
);
DWORD
RasSrvrActivateIp(
IN IPADDR nboIpAddress,
IN DWORD dwUsage
);
DWORD
RasSrvrQueryServerAddresses(
IN OUT IPINFO* pIpInfo
);
VOID
RasSrvrDhcpCallback(
IN IPADDR nboIpAddr
);
VOID
RasSrvrEnableRouter(
BOOL fEnable
);
VOID
RasSrvrAdapterUnmapped(
VOID
);
#endif // #ifndef _RASSRVR_H_