Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem connecting to an MS Access Database Pin
TheBlindWatchmaker22-Sep-06 11:40
TheBlindWatchmaker22-Sep-06 11:40 
GeneralRe: Problem connecting to an MS Access Database Pin
Alaric_22-Sep-06 11:58
professionalAlaric_22-Sep-06 11:58 
QuestionWatching Data Send and Recieved for a particular internet connection Pin
logicon22-Sep-06 6:31
logicon22-Sep-06 6:31 
AnswerRe: Watching Data Send and Recieved for a particular internet connection Pin
Judah Gabriel Himango22-Sep-06 6:42
sponsorJudah Gabriel Himango22-Sep-06 6:42 
Questionhow to use List Pin
waheed awan22-Sep-06 5:46
waheed awan22-Sep-06 5:46 
AnswerRe: how to use List Pin
Judah Gabriel Himango22-Sep-06 5:51
sponsorJudah Gabriel Himango22-Sep-06 5:51 
AnswerRe: how to use List Pin
User 665822-Sep-06 5:52
User 665822-Sep-06 5:52 
Questionformat of MIB_IPFORWARDROW structure? Pin
b_girl22-Sep-06 5:32
b_girl22-Sep-06 5:32 
Hey, I'm making use of Iphlpapi.dll, particularily CreateIpForwardEntry(ref PMIB_IPFORWARDROW pRoute)

I'm a little unclear as to what format I need to be using for the MIB_IPFORWARDROW structure

This is my declaration (?) of the structure:

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]<br />
    public struct PMIB_IPFORWARDROW<br />
    {<br />
        public UInt32 dwForwardDest;<br />
        public UInt32 dwForwardMask;<br />
        public UInt32 dwForwardPolicy;<br />
        public UInt32 dwForwardNextHop;<br />
        public UInt32 dwForwardIfIndex;<br />
        public UInt32 dwForwardType;<br />
        public UInt32 dwForwardProto;<br />
        public UInt32 dwForwardAge;<br />
        public UInt32 dwForwardNextHopAS;<br />
        public UInt32 dwForwardMetric1;<br />
        public UInt32 dwForwardMetric2;<br />
        public UInt32 dwForwardMetric3;<br />
        public UInt32 dwForwardMetric4;<br />
        public UInt32 dwForwardMetric5;<br />
    }


The ones I'm most confused about are dwForwardDest, dwForwardMask and dwForwardNextHop.

If I had a destination network of 10.11.0.0, mask 255.255.0.0 and the 'next hop' would be say... 10.11.7.3. The corresponding 'route add' command that I normally run from the command line is:
route add 10.11.0.0 mask 255.255.0.0 10.11.7.3

I get the feeling that I need to convert each octet to hex, but what do I do from there?

Any help would be greatly appreciated...
AnswerRe: format of MIB_IPFORWARDROW structure? Pin
Guffa22-Sep-06 6:39
Guffa22-Sep-06 6:39 
GeneralRe: format of MIB_IPFORWARDROW structure? Pin
b_girl22-Sep-06 7:19
b_girl22-Sep-06 7:19 
AnswerRe: format of MIB_IPFORWARDROW structure? Pin
Guffa22-Sep-06 9:25
Guffa22-Sep-06 9:25 
GeneralRe: format of MIB_IPFORWARDROW structure? Pin
b_girl22-Sep-06 9:40
b_girl22-Sep-06 9:40 
AnswerRe: format of MIB_IPFORWARDROW structure? Pin
Guffa22-Sep-06 9:47
Guffa22-Sep-06 9:47 
GeneralRe: format of MIB_IPFORWARDROW structure? Pin
User 665822-Sep-06 9:57
User 665822-Sep-06 9:57 
GeneralRe: format of MIB_IPFORWARDROW structure? Pin
b_girl22-Sep-06 10:15
b_girl22-Sep-06 10:15 
AnswerRe: format of MIB_IPFORWARDROW structure? Pin
Judah Gabriel Himango22-Sep-06 6:39
sponsorJudah Gabriel Himango22-Sep-06 6:39 
GeneralRe: format of MIB_IPFORWARDROW structure? Pin
b_girl22-Sep-06 7:15
b_girl22-Sep-06 7:15 
QuestionHow to get the size in bytes of a file name? Pin
Yustme22-Sep-06 5:00
Yustme22-Sep-06 5:00 
AnswerRe: How to get the size in bytes of a file name? Pin
Judah Gabriel Himango22-Sep-06 5:06
sponsorJudah Gabriel Himango22-Sep-06 5:06 
GeneralRe: How to get the size in bytes of a file name? Pin
User 665822-Sep-06 5:55
User 665822-Sep-06 5:55 
GeneralRe: How to get the size in bytes of a file name? Pin
Judah Gabriel Himango22-Sep-06 6:28
sponsorJudah Gabriel Himango22-Sep-06 6:28 
GeneralRe: How to get the size in bytes of a file name? Pin
Guffa22-Sep-06 6:41
Guffa22-Sep-06 6:41 
AnswerRe: How to get the size in bytes of a file name? Pin
Guffa22-Sep-06 5:15
Guffa22-Sep-06 5:15 
GeneralRe: How to get the size in bytes of a file name? Pin
Yustme22-Sep-06 7:54
Yustme22-Sep-06 7:54 
AnswerRe: How to get the size in bytes of a file name? Pin
Guffa22-Sep-06 9:46
Guffa22-Sep-06 9:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.