flat assembler
Message board for the users of flat assembler.

Index > Windows > mixerGetControlDetails always gives error

Author
Thread Post new topic Reply to topic
Aux



Joined: 27 Aug 2007
Posts: 10
Aux 22 Sep 2007, 20:13
Hello! I'm writting a little utility which shows current main volume when it is changed with multimedia keyboard. Actually it opens mixer and listens for MM_MIXM_CONTROL_CHANGE event like sndvol32 do. The probmlem is that I need to read current volume by calling mixerGetControlDetails from winmm.dll and this call always gives me error with code 1 (MIXERR_INVALCONTROL). I've written same code in Delphi and it works. I compared memory for required MIXERCONTROLDETAILS structure in delphi and fasm binaries - they are the same (except for last member since it is a pointer to another int variable). I can not understand where is the problem. Maybe someone will help me a bit? Full source can be seen here - http://hexmode.org/zInfox32.Asm Thanks in advance!
Post 22 Sep 2007, 20:13
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.