SOL9 2.0 Class: InterfaceIndex

 SOL9 C++ Class Library  SOL9 Samples  SOL9 Tutorial  SOL9 FAQ  SOL9 ClassTree 

Source code

/*
 * InterfaceIndex.h 
 * Copyright (c) 2011 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */


// SOL9
// 2011/1/1
#include <sol/Object.h>
#include <sol/StringT.h>

namespace SOL {

class InterfaceIndex :public Object {

private:
    NET_IFINDEX index

public:
    InterfaceIndex(__in const NET_IFINDEX id)
    :index(id)
    {
    }

public:
    
    NETIO_STATUS toLuid(__out NET_LUID *luid)
    {
        return toLuid(index, luid);
    } 

public:
    
    static NETIO_STATUS toLuid(__const NET_IFINDEX index, __out NET_LUID *luid)
    {
        //If sucess, this returns NO_ERROR
        return ConvertInterfaceIndexToLuid(index, luid);
    } 
};


}

Last modified: 1 Feb 2012

Copyright (c) 2009-2012 Antillia.com ALL RIGHTS RESERVED.