News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Interacting with Media Player

Started by sinsi, November 06, 2006, 11:26:33 AM

Previous topic - Next topic

sinsi

Revisiting old code, guess who discovered VK_MEDIA_NEXT_TRACK? Much better way of controlling media player and no need for admin privileges.
Sorry about the old thread but I seem to have an affinity for it...
Light travels faster than sound, that's why some people seem bright until you hear them.

dedndave

Quoteinclude \asm\win32.inc

???
i tried replacing it with \masm32\include\masm32rt.inc....
MPctrl.asm(6) : error A2008: syntax error : input_dn
MPctrl.asm(7) : error A2008: syntax error : input_up
MPctrl.asm(32) : error A2006: undefined symbol : INPUT

sinsi

Sorry, I forgot that windows.inc doesn't seem to have the INPUT structure.

KEYBDINPUT struct
wVk         dw ?
wScan       dw ?
dwFlags     dd ?
time        dd ?
dwExtraInfo dd ?
KEYBDINPUT ends

MOUSEINPUT struct
_dx         dd ?
_dy         dd ?
mouseData   dd ?
dwFlags     dd ?
time        dd ?
dwExtraInfo dd ?
MOUSEINPUT ends

HARDWAREINPUT struct
uMsg    dd ?
wParamL dw ?
wParamH dw ?
HARDWAREINPUT ends

INPUT struct
_type dd ?
union
  ki KEYBDINPUT <>
  mi MOUSEINPUT <>
  hi HARDWAREINPUT <>
ends
INPUT ends


Also, I use ebx to call an API, my linking happens via _imp__API, just replace "call ebx" with "call API".
What can I say, it's a hack, but 2 of my long-suffering guinea pigs have been using it for a few years now.
Light travels faster than sound, that's why some people seem bright until you hear them.