I seem to be stumbling tring to convert this to dot net, I am new to API calls perhapes I am missing something here? Here is what I have.
Vis studio shows no problems with code and it runs and builds without any errors, but no change in boot up time??? anyone good with vb6 - .net?Code:Declare Auto Function OpenEvent Lib "kernel32.dll" Alias "OpenEventA" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal lpName As String) As Long Declare Auto Function SetEvent Lib "kernel32.dll" (ByVal hEvent As Long) As Long Declare Auto Function CloseHandle Lib "kernel32.dll" (ByVal hObject As Long) As Long Private Const EVENT_MODIFY_STATE As Long = &H2 Public Sub Main() Dim H As Long H = OpenEvent(EVENT_MODIFY_STATE, False, "msgina: ShellReadyEvent") If H <> 0 Then SetEvent(H) CloseHandle(H) End If



LinkBack URL
About LinkBacks
(although I rarely reboot my system now adays, I might just start to do that if it is quick enuff)
Reply With Quote


Bookmarks