I want to use this Function from the user32.dll ...
I don't know how to declare it in my VBA6 code
Printable View
I want to use this Function from the user32.dll ...
I don't know how to declare it in my VBA6 code
Use the VB API viewer, if you have VB IDE, else post it here and i will look it up and post Declare
if it's SetWindowLong like your title then:
Code:Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
add this in the general declarations
Code:Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Thanks
Where could i get documentation about user32.dll ?