Interesting, but For some reason whether this function does not exist (It does, saw msdn on it) or what, I'm confused.
Why do I have to declare the function, and then NOT be able to run the app because the function is not found in KERNEL32.DLL.
If the function is not found I want to drive on, continue etc....
But I can't run the function without declaring it??
Thanks,
Scott
------------------
Scott
mailto:[email protected][email protected]</A>
Why do I have to declare the function, and then NOT be able to run the app because the function is not found in KERNEL32.DLL.
If the function is not found I want to drive on, continue etc....
But I can't run the function without declaring it??
Thanks,
Scott
Code:
'Declare Function IsDebuggerPresent Lib "kernel32" () As Long hLib = LoadLibrary("KERNEL32.DLL") procaddr = GetProcAddress(hLib,"IsDebuggerPresent") If IsFalse procaddr Then MsgBox "Could not find the function, or DLL:" & $CRLF & "IsDebuggerPresent, in KERNEL32.DLL",%MB_ICONSTOP,"Error loading library" Else Call Dword ProcAddr Using IsDebuggerPresent() End If
Scott
mailto:[email protected][email protected]</A>
Comment