Announcement

Collapse
No announcement yet.

New Include file request

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • New Include file request

    Hi, would it be possible to have the 'sensapi' (system event notification service api) functions as an include file ?

    These are functions like IsNetworkAlive(%NETWORK_ALIVE_LAN) which returns True is the network cards are working etc.

    Regards

    Adrian Aitken

    ------------------

  • #2
    No Problem. Meantime, try this:
    Code:
    %NETWORK_ALIVE_LAN = &H00000001
    %NETWORK_ALIVE_WAN = &H00000002
    %NETWORK_ALIVE_AOL = &H00000004
     
    TYPE QOCINFO
        dwSize     AS DWORD
        dwFlags    AS DWORD
        dwInSpeed  AS DWORD
        dwOutSpeed AS DWORD
    END TYPE
     
    DECLARE FUNCTION IsDestinationReachable LIB "sensapi.dll" _
        ALIAS "IsDestinationReachableA" (lpszDestination AS ASCIIZ, _
        lpQOCInfo AS QOCINFO) AS LONG
     
    DECLARE FUNCTION IsNetworkAlive LIB "sensapi.dll" ALIAS "IsNetworkAlive"
        (lpdwFlags AS DWORD) AS LONG
    Functions require Windows 2000, or ((Win95/98/Me or NT 4.0) with Internet
    Explorer 5.0 or later). AOL flag is only valid on Win95/98.

    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Comment

    Working...
    X