AccessWeb API for App Activate/Deactivate

K

kiln

Can't really tell if they are the same, can't test since the AddrOf
function that is called is archaic, refs vba322.dll (office 97 I think),
and I can't find a likewise entry point in current dll set.

I guess no one is really maintaining the code bundles on the access web.
 
S

Stephen Lebans

You simply switch the native AddressOf(A2K or higher) method for the A97
AddrOf call.

You state that functions sHook and sUnHook are not included in the code
listing or in the referenced article. Do you not see them at the very
bottom of the referenced URL.

Sub sHook(Hwnd As Long, _
strFunction As String)
lpPrevWndProc = apiSetWindowLong(Hwnd, _
GWL_WNDPROC, _
AddrOf(strFunction))
End Sub

Sub sUnhook(Hwnd As Long)
Dim lngTmp As Long
lngTmp = apiSetWindowLong(Hwnd, _
GWL_WNDPROC, _
lpPrevWndProc)
lpPrevWndProc = 0
End Sub


--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top