IsNetworkAlive call = page fault??? 
Author Message
 IsNetworkAlive call = page fault???

This one seems like it should be so simple - can anyone
point out what I messing up? This get page fault as soon as
sensapi call is made ....VB6 caused an invalid page fault in
module SENSAPI.DLL at 017f:60001097.

Thanks
Dale

Public Const NETWORK_ALIVE_LAN As Long = &H1   'The computer
has one or more LAN cards that are active.
Public Const NETWORK_ALIVE_WAN As Long = &H2   'The computer
has one or more active RAS connections.
Public Const NETWORK_ALIVE_AOL As Long = &H4     'w95/98 is
on AOL

Public Type QOCINFO
        dwSize As Long
        dwFlags As Long
        dwInSpeed As Long
        dwOutSpeed As Long
End Type

    Public Declare Function IsNetworkAlive Lib "sensapi.dll"
_
(ByVal dwFlag As Long) As Long    ' Also tried As Boolean

==============

Private Sub Command1_Click()

Label1.Caption = IsNetworkAlive(NETWORK_ALIVE_LAN)

End Sub



Sun, 02 Mar 2003 03:00:00 GMT  
 IsNetworkAlive call = page fault???

Thanks - got it...needed to be (ByRef dwFlags ....

Appreciate the help.

Dale


Quote:
> This one seems like it should be so simple - can anyone
> point out what I messing up? This get page fault as soon
as
> sensapi call is made ....VB6 caused an invalid page fault
in
> module SENSAPI.DLL at 017f:60001097.

> Thanks
> Dale

> Public Const NETWORK_ALIVE_LAN As Long = &H1   'The
computer
> has one or more LAN cards that are active.
> Public Const NETWORK_ALIVE_WAN As Long = &H2   'The
computer
> has one or more active RAS connections.
> Public Const NETWORK_ALIVE_AOL As Long = &H4     'w95/98
is
> on AOL

> Public Type QOCINFO
>         dwSize As Long
>         dwFlags As Long
>         dwInSpeed As Long
>         dwOutSpeed As Long
> End Type

>     Public Declare Function IsNetworkAlive Lib
"sensapi.dll"
> _
> (ByVal dwFlag As Long) As Long    ' Also tried As Boolean

> ==============

> Private Sub Command1_Click()

> Label1.Caption = IsNetworkAlive(NETWORK_ALIVE_LAN)

> End Sub



Wed, 05 Mar 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. IsNetworkAlive call = page fault???

2. Invalid Page Fault When Function Called

3. VB4-32 invalid page fault when calling OLE DLL

4. Invalid Page Faults caused in call to crPESelectPrinter

5. Page Fault error in Kernel32.dll when vb calls printing in MSAccess

6. Api 'IsNetWorkAlive' in Sensapi.dll

7. invalid page fault VBA332.dll

8. VBA332.DLL invalid page fault

9. Invalid Page Fault, VBA332.DLL

10. Invalid Page Fault in VBA332

11. Data Tips causing invalid page fault

12. invalid page fault in vba332.dll

 

 
Powered by phpBB® Forum Software