通过dllimport改变音量参数的问题

[DllImport("user32.dll")]
private extern static IntPtr SendMessage(IntPtr handle, uint message, uint param, uint sount_mute);
问题来了:请问其中的五个参数都代表什么意思,请详细解答

3个回答

参考
http://msdn.microsoft.com/zh-cn/magazine/ms646275(en-us,VS.85).aspx

APPCOMMAND_VOLUME_DOWN 减少音量
9
Lower the volume.

APPCOMMAND_VOLUME_MUTE 静音
8
Mute the volume.

APPCOMMAND_VOLUME_UP 增加
10
Raise the volume.

IntPtr handle
是窗口句柄

uint message传递我刚才说的WM_APPCOMMAND

wParam
A handle to the window where the user clicked the button or pressed the key. This can be a child window of the window receiving the message. For more information about processing this message, see the Remarks section.

lParam
Use the following code to get the information contained in the lParam parameter.参照我之前给的3个常量之一。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐