I've got all my errors solved but I may have miss converted the wparam and lparam of SendMessage.
What is the Aurora equivalent of a dword? ??? I used int but maybe it should be unsigned int?
This is how I declare it:
declare import,SendMessage alias SendMessageA(
hwnd as unsigned int, // handle to receiving window
uMsg as unsigned int, // the message
wParam as unsigned int, // additional info depending on message
lParam as unsigned int // additional info depending on message
), unsigned int; // result depending on message
Thanks Bruce!
A DWORD is an unsigned int.
If you get confused with Window's types (and i think we all do at some stage) you can use these handy typedefs:
http://www.ionicwind.com/forums/index.php/topic,824.0.html
Basically, you include the file presented in the thread above and declare the Win32API commands as you see them on MSDN.com. So for example your code would be:
#include "WindowsTypes.inc"
declare import, SendMessage alias SendMessageA(
HWND hWnd,
UINT Msg,
WPARAM wParam,
LPARAM lParam
), LRESULT;
To implement your 'SendMessage' function:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/messagesandmessagequeues/messagesandmessagequeuesreference/messagesandmessagequeuesfunctions/sendmessage.asp
Thanks Kale! :)
Got the file in my include folder now. Your work is much appreciated.