How to simulate mouse in win9x

i’m trying to do the same thing as many game controllers are capable of and
create macros that can be mapped to certain joystick buttons. i want to
know how to be able to send the win9x kernel a message that says “button 'a’
has been pressed!”, or “mouse button 1 was clicked at (x,y)”. the kernel
then would dish out that message to whatever window that message should go
to, or maybe to the desktop, or the taskbar, or to whatever app is running

how do i do that???
if u dont understand, tell me why, and maybe someone who does can help me
make myself clear
my system: win98se, amd xp1700 @ ~1550mhz, 256mb pc2100ddr sdram, abit
kr7a-raid mobo, pny geforce3 ti200 vid, creative sb live x-gamer 5.1 snd,
40g 7200 ata100 west. dig. hdd, 100mb ethernet, cable internet_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail.
http://www.hotmail.com

i want to know how to be able to send the win9x kernel a message that
says “button ‘a’ has been pressed!”, or “mouse button 1 was clicked at
(x,y)”. the kernel then would dish out that message to whatever
window that message should go to, or maybe to the desktop, or the
taskbar, or to whatever app is running

You’re in the wrong place; SDL won’t help you accomplish that.

–ryan.