• Welcome to Valhalla Legends Archive.
 

ResetAwayIdle

Started by UserLoser, September 02, 2003, 07:03 PM

Previous topic - Next topic

UserLoser

C++ from EmptyPlugin:
typedef BOOL (WINAPI* ResetAwayIdleProc)(void);

VB:
Public Function NetResetAwayIdle&()
   rtbAdd vbRed, "NetResetAwayIdle" ' So I know if anything happens here...
   NetResetAwayIdle& = 1
End Function


How come this isn't working?  I havn't had any trouble at all with any other functions...I get an error in MessageHook

Spht

Are you referencing it correctly as a revision 3 function?

UserLoser

#2
Public Type PluginInformation3
   Interface2 As PluginInformation2
   PRegGetRegistryPath As Long
   PNetResetAwayIdle As Long
   PUIGetWindow As Long
   PSysIsService As Long
End Type

...

With Interface.Interface3
   .PNetResetAwayIdle = AddressOfFunc(AddressOf NetResetAwayIdle)
End With

...

Public Function AddressOfFunc(ByVal aLongAddr As Long) As Long
   AddressOfFunc= aLongAddr
End Function


yes