Search found 4 matches

by SadStar
Thu Dec 08, 2016 11:54 pm
Forum: Tricks 'n' Tips
Topic: LAN info - Windows only
Replies: 55
Views: 22637

Re: LAN info - Windows only

after fixing peeks() for unicode,
why unicode?
where unicode?

-----------------------------
https://msdn.microsoft.com/en-us/library/windows/desktop/aa366062(v=vs.85).aspx

AdapterName
Type: char[MAX_ADAPTER_NAME_LENGTH + 4]
An ANSI character string of the name of the adapter.

Description ...
by SadStar
Thu Dec 08, 2016 12:27 am
Forum: Tricks 'n' Tips
Topic: LAN info - Windows only
Replies: 55
Views: 22637

Re: LAN info - Windows only

I suggest to try the next option
- Change the names of structures in order to eliminate the naming conflict


Structure IP_ADDR_STRING_X
NextAdapter.i
IpAddress.a[16];IP_ADDRESS_STRING
IpMask.a[16];IP_ADDRESS_STRING
Context.i
EndStructure

Structure FIXED_INFO_X
HostName.a[132] ;MAX_HOSTNAME ...
by SadStar
Wed Dec 07, 2016 2:34 am
Forum: Tricks 'n' Tips
Topic: LAN info - Windows only
Replies: 55
Views: 22637

Re: LAN info - Windows only

if allow I will publish the test code by way of illustration of my approach
to parsing of result of the GetAdaptersInfo_ ()

My way - without Dim IP_ADAPTER_INFO.IP_ADAPTER_INFO1(CardsFound)




Structure IP_ADDR_STRING
NextAdapter.i
IpAddress.a[16];IP_ADDRESS_STRING
IpMask.a[16];IP_ADDRESS ...
by SadStar
Thu Nov 24, 2016 8:42 am
Forum: Tricks 'n' Tips
Topic: LAN info - Windows only
Replies: 55
Views: 22637

Re: LAN info - Windows only

Dear Sirs.
All above codes are essentially wrong though work in some special cases.
Namely - when on each adapter only one IP address.

Please watch attentively structure declaration
https://msdn.microsoft.com/en-us/library/windows/desktop/aa366062(v=vs.85).aspx
---------------------------
Namely ...