Re: GetAdaptersInfo API & Windows ME

From: Randy Birch (rgb_removethis_at_mvps.org)
Date: 08/23/04

  • Next message: Tim: "Re: Getting DEVMODE print job information from PRINTER_NOTIFY_INFO_DATA"
    Date: Sun, 22 Aug 2004 23:45:38 -0400
    
    

    Here's an "alternate" method of calling the API using byte arrays rather
    than strings as per the KB article. Perhaps it works on ME? No one has
    complained to me (yet) that it doesn't.
    http://vbnet.mvps.org/code/network/getadaptersinfo-dhcpserveraddress.htm

    This demo does not show all that the KB demo does, but you should be able to
    get the information you require by seeing how the data is handled.

    -- 
    Randy Birch
    MVP Visual Basic
    http://vbnet.mvps.org/
    Please respond only to the newsgroups so all can benefit.
    "Jimmy Jam" <jjam@yahoo.com> wrote in message 
    news:OO04alLiEHA.396@TK2MSFTNGP12.phx.gbl...
    :I have been using the GetAdaptersInfo API to retrieve DHCP server info (IP
    : Address, lease obtained, lease expires).
    : I get the correct information on 2K and XP, but not Windows ME even though
    : it is supported to the best of my understanding.
    :
    : http://support.microsoft.com/?kbid=223025
    :
    : Any ideas what the dealy-o is?
    :
    : Thanks in advance.
    :
    : JJ
    :
    : 
    

  • Next message: Tim: "Re: Getting DEVMODE print job information from PRINTER_NOTIFY_INFO_DATA"

    Relevant Pages

    • PInvoke Issues...
      ... I think I'm having PInvoke issues because I imported the service API ... strings and the DWORD correctly - yes? ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: DLL Marshalling : How do I treat a char FAR * HUGE * FAR * in C# ?
      ... The P/Invoke layer doesn't know how to marsal arrays back to the managed ... are you supplying the memory where the strings are written to? ... > API call by doing a type conversion for each parameter. ... > public static extern int XcDatabaseCodes( ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Equivalent to GetKeyNameText for WM_APPCOMMAND messages?
      ... >> Is there an equivalent of the GetKeyNameText API for the WM_APPCOMMAND ... I need to create user-readable strings to use in my keyboard ... WM_APPCOMMAND has nothing directly to do with keyboard input. ...
      (microsoft.public.win32.programmer.ui)
    • Re: Compare words (not Strings)
      ... > In the core API, Strings can be checked either case sensitively are ... > use Soundex, Metaphone, or Levenshtein. ... > Soundex and Metaphone return Strings which are approximate pronunciations ... database might hold spices. ...
      (comp.lang.java.programmer)
    • Re: Suggested Alternative Unicode Implementation (for Rudy+ miscothers)
      ... Only if you were using strings other that UTF16 in your application. ... You want conversions? ... A versions of function prototypes as appropriate to an applications ... i.e. you have an ANSIString in your hand, you call the A API. ...
      (borland.public.delphi.non-technical)