Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I successfully integrated the [volume level] code in my program. Yay for me. I find it on internet. I'm not that smart yet. But I want to be... maybe with your help.


[DllImport("winmm.dll")]
public static extern int waveOutGetVolume(IntPtr hwo, out uint dwVolume);
[DllImport("winmm.dll")]
public static extern int waveOutSetVolume(IntPtr hwo, uint dwVolume);
double volume = 100;
void Volume()
{
    double NewVolume = ((ushort.MaxValue / 100) * volume);
    waveOutSetVolume(IntPtr.Zero, (uint)NewVolume);
}


Now I am curious [How to see] all the classes and [some samples using and calling] those classes from this winmm.dll.
I imagine there is somewhere a list with all the properties and classes from that dll on the internet.
Is it?
Thank you very much !

What I have tried:

the code is in description. ^
Posted
Updated 13-Feb-17 22:57pm
v3

1 solution

Quote:
I imagine there is somewhere a list with all the properties and classes from that dll on the internet.
Yes, and Google is the tool that will find it for you.
 
Share this answer
 
Comments
_Q12_ 14-Feb-17 5:27am    
I am not that advanced to search this high level of complexity.
But with a little help... is all that I ask.
Thanks again.
Richard MacCutchan 14-Feb-17 5:53am    
Are you saying that you cannot figure out how to type "winmm.dll" into Google?
_Q12_ 14-Feb-17 6:08am    
no.
I am saying that I can not find a list with all the classes and properties that this .dll contains !!!
Richard MacCutchan 14-Feb-17 6:08am    
Where did you find this library? If it is a Microsoft product then go to MSDN and look at the documentation. If it is a third-party product (i.e, from somewhere else) then you will need to contact whoever provided it.
_Q12_ 14-Feb-17 6:10am    
google says: "winmm.dll is a module for the Windows Multimedia API, which contains low-level audio and joystick functions. winmm.dll is a system process that is needed for your PC to work properly."
It's a microsoft product.
I find it when I was looking after codes on how to implement volume sound in a c# application. This was the best suggestion I find and I managed to make it work in my project. Now I want more... :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900