Ignore:
Timestamp:
Oct 10, 2001, 6:22:20 PM (24 years ago)
Author:
phaller
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/iphlpapi/iphlpapi.cpp

    r5792 r6989  
    1 /* $Id: iphlpapi.cpp,v 1.1 2001-05-24 17:35:34 sandervl Exp $ */
     1/* $Id: iphlpapi.cpp,v 1.2 2001-10-10 16:22:19 phaller Exp $ */
    22/*
    33 *      IPHLPAPI library
     
    55 */
    66
     7
     8/****************************************************************************
     9 * includes
     10 ****************************************************************************/
     11
     12#include <odin.h>
     13#include <odinwrap.h>
     14#include <os2sel.h>
     15
    716#include <os2win.h>
    817#include <odinwrap.h>
    918#include <winversion.h>
    1019
     20#include "iphlpapi.h"
     21
     22ODINDEBUGCHANNEL(IPHLPAPI-IPHLPAPI)
     23
    1124
    1225//******************************************************************************
    1326//******************************************************************************
    14 DWORD WIN32API GetAdaptersInfo(DWORD arg1, DWORD arg2)
     27ODINFUNCTION2(DWORD,            GetAdaptersInfo,
     28              PIP_ADAPTER_INFO, pAdapterInfo,
     29              PULONG,           pOutBufLen)
    1530{
    16   dprintf(("GetAdaptersInfo %x %x - STUB", arg1, arg2));
     31  dprintf(("GetAdaptersInfo not implemented"));
     32 
     33  static PIP_ADAPTER_INFO pipAdapters = NULL;
     34  static ULONG ulAdaptersSize = 0;
     35 
     36  if (NULL == pipAdapters)
     37  {
     38    // gather the information and save it
     39   
     40    // determine number of IP adapters (interfaces) in the system
     41   
     42    // os2_ioctl() SIOSTATIF42
     43  }
     44 
     45  // OK, just copy over the information as far as possible
     46 
     47  return ERROR_SUCCESS;
     48}
     49
     50
     51//******************************************************************************
     52//******************************************************************************
     53ODINFUNCTION2(DWORD,       GetNetworkParams,
     54              PFIXED_INFO, pFixedInfo,
     55              PULONG,      pOutBufLen)
     56{
     57  dprintf(("GetNetworkParams not implemented"));
    1758  return ERROR_NOT_SUPPORTED; //NT returns this
    1859}
    1960//******************************************************************************
    2061//******************************************************************************
    21 DWORD WIN32API GetNetworkParams(DWORD arg1, DWORD arg2)
    22 {
    23   dprintf(("GetNetworkParams %x %x - STUB", arg1, arg2));
    24   return ERROR_NOT_SUPPORTED; //NT returns this
    25 }
    26 //******************************************************************************
    27 //******************************************************************************
     62
     63
     64DWORD AddIPAddress(IPAddr Address, // IP address to add
     65                   IPMask IpMask, // subnet mask for IP address
     66                   DWORD IfIndex, // index of adapter
     67                   PULONG NTEContext, // Net Table Entry context
     68                   PULONG NTEInstance // Net Table Entry Instance
     69                  );
     70// SIOCAIFADDR
     71
     72DWORD DeleteIPAddress(
     73                      ULONG NTEContext // net table entry context
     74                     );
     75// SIOCDIFADDR
Note: See TracChangeset for help on using the changeset viewer.