Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

112 lines
2.3 KiB

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1997.
//
// File: N C R A S . H
//
// Contents: Common code for RAS connections.
//
// Notes:
//
// Author: shaunco 20 Oct 1997
//
//----------------------------------------------------------------------------
#pragma once
#include "netconp.h"
#include <ras.h>
#include <rasuip.h>
#include <rasapip.h>
#include <rasuip.h>
VOID
RciFree (
RASCON_INFO* pRasConInfo);
BOOL
FExistActiveRasConnections ();
HRESULT
HrRciGetRasConnectionInfo (
IN INetConnection* pCon,
OUT RASCON_INFO* pRasConInfo);
HRESULT
HrRasEnumAllActiveConnections (
OUT RASCONN** ppRasConn,
OUT DWORD* pcRasConn);
HRESULT
HrRasEnumAllActiveServerConnections (
OUT RASSRVCONN** paRasSrvConn,
OUT DWORD* pcRasSrvConn);
HRESULT
HrRasEnumAllEntriesWithDetails (
IN PCWSTR pszPhonebook,
OUT RASENUMENTRYDETAILS** paRasEntryDetails,
OUT DWORD* pcRasEntryDetails);
HRESULT
HrFindRasConnFromGuidId (
IN const GUID* pguid,
OUT HRASCONN* phRasConn,
OUT RASCONN* pRasConn OPTIONAL);
HRESULT
HrRasGetEntryProperties (
IN PCWSTR pszPhonebook,
IN PCWSTR pszEntry,
OUT RASENTRY** ppRasEntry,
OUT DWORD* pcbRasEntry);
HRESULT
HrRasGetSubEntryProperties (
IN PCWSTR pszPhonebook,
IN PCWSTR pszEntry,
IN DWORD dwSubEntry,
OUT RASSUBENTRY** ppRasSubEntry);
HRESULT
HrRasGetNetconStatusFromRasConnectStatus (
IN HRASCONN hRasConn,
OUT NETCON_STATUS* pStatus);
HRESULT
HrRasHangupUntilDisconnected (
IN HRASCONN hRasConn);
HRESULT
HrNetConToSharedConnection (
IN INetConnection* pCon,
OUT LPRASSHARECONN prsc);
HRESULT
HrRasIsSharedConnection (
IN LPRASSHARECONN prsc,
OUT PBOOL pfShared);
#if 0
HRESULT
HrRasQueryLanConnTable (
IN LPRASSHARECONN prsc,
OUT NETCON_PROPERTIES** ppLanTable,
OUT LPDWORD pdwLanCount);
HRESULT
HrRasShareConnection (
IN LPRASSHARECONN prsc,
IN GUID* pPrivateLanGuid OPTIONAL);
HRESULT
HrRasUnshareConnection (
OUT PBOOL pfWasShared);
#endif
DWORD
RasSrvTypeFromRasDeviceType(
RASDEVICETYPE rdt
);