国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看
打開APP
未登錄
開通VIP,暢享免費電子書等14項超值服
開通VIP
首頁
好書
留言交流
下載APP
聯(lián)系客服
winmm.dll 函數(shù)詳細(xì)引用方法(C#)
nxhujiee
>《◆易語言》
2016.04.15
關(guān)注
[csharp]
view plain
copy
//發(fā)送一個游戲桿消息到指定的窗口
[DllImport("winmm.dll")]
public static extern int joySetCapture(IntPtr hWnd, int uJoyID, int uPeriod, bool fChanged);
//查詢指定的游戲桿設(shè)備的位置和活動性
[DllImport("winmm.dll")]
public static extern int joyGetPos(int uJoyID, ref JOYINFO pji);
//查詢一個游戲桿設(shè)備的位置和它的按扭狀態(tài)
[DllImport("winmm.dll")]
public static extern int joyGetPosEx(int uJoyID, ref JOYINFOEX pji);
//檢取描述指定媒介控制接口錯誤代碼的字符串
[DllImport("winmm.dll")]
public static extern Int32 mciGetErrorString(Int32 errorCode, StringBuilder errorText, Int32 errorTextSize);
//向指定的媒介控制接口設(shè)備發(fā)送一個字符串
[DllImport("winmm.dll")]
public static extern Int32 mciSendString(string command,string buffer, int bufferSize, IntPtr hwndCallback);
//將指定的MIDI輸入設(shè)備連接到輸出設(shè)備
[DllImport("winmm.dll")]
public static extern UInt32 midiConnect(IntPtr hMidi, IntPtr hmo, IntPtr pReserved);
//斷開MIDI輸入設(shè)備和輸出設(shè)備的連接
[DllImport("winmm.dll")]
public static extern UInt32 midiDisconnect(IntPtr hMidi, IntPtr hmo, IntPtr pReserved);
//關(guān)閉指定的音樂儀器數(shù)字接口的輸入設(shè)備
[DllImport("winmm.dll", SetLastError = true)]
public static extern uint midiInClose(IntPtr hMidiIn);
//查詢指定的音樂儀器數(shù)字接口的輸入設(shè)備,以確定其性能
[DllImport("winmm.dll", SetLastError = true)]
public static extern MMRESULT midiInGetDevCaps(UIntPtr uDeviceID, ref MIDIINCAPS caps, uint cbMidiInCaps);
//查詢指定的音樂儀器數(shù)字接口的輸入設(shè)備,以確定其性能
[DllImport("winmm.dll", SetLastError = true)]
public static extern uint midiInGetNumDevs();
//打開指定的音樂儀器數(shù)字接口的輸入設(shè)備
[DllImport("winmm.dll", SetLastError=true)]
public static extern uint midiInOpen(IntPtr hMidiIn);
//在給定的MIDI輸入設(shè)備上輸入,并將所有掛起的輸入緩沖區(qū)標(biāo)記為已執(zhí)行的
[DllImport("winmm.dll", SetLastError = true)]
public static extern uint midiInReset(IntPtr hMidiIn);
//啟動在指定的音樂儀器數(shù)字接口的輸入設(shè)備上的輸入
[DllImport("winmm.dll", SetLastError = true)]
public static extern uint midiInStart(IntPtr hMidiIn);
//關(guān)閉指定的音樂儀器數(shù)字接口的輸出設(shè)備
[DllImport("winmm.dll")]
public static extern uint midiOutClose(IntPtr hMidiOut);
//查詢指定的音樂儀器數(shù)字接口的輸出設(shè)備,以確定其性能
[DllImport("winmm.dll", SetLastError = true)]
public static extern MMRESULT midiOutGetDevCaps(UIntPtr uDeviceID, ref MIDIOUTCAPS lpMidiOutCaps, uint cbMidiOutCaps);
//檢取有關(guān)MIDI輸出設(shè)備指定采取的文本說明
[DllImport("winmm.dll")]
public static extern uint midiOutGetErrorText(uint mmrError, StringBuilder pszText, uint cchText);
//檢取系統(tǒng)中存在的MIDI輸出設(shè)備的數(shù)量
[DllImport("winmm.dll", SetLastError = true)]
public static extern uint midiOutGetNumDevs();
//打開指定的MIDI輸出設(shè)備進(jìn)行回放
[DllImport("winmm.dll")]
public static extern uint midiOutOpen(out IntPtr lphMidiOut, uint uDeviceID, IntPtr dwCallback, IntPtr dwInstance, uint dwFlags);
//向指定的MIDI輸出設(shè)備發(fā)送一條短MIDI消息
[DllImport("winmm.dll")]
public static extern uint midiOutShortMsg(IntPtr hMidiOut, uint dwMsg);
//關(guān)閉一個打開的MIDI流
[DllImport("winmm.dll")]
public extern static Int32 midiStreamClose(IntPtr hMidiStream);
//為輸出,打開一個MIDI流
[DllImport("winmm.dll")]
public extern static Int32 midiStreamOpen(ref IntPtr hMidiStream, ref Int32 puDeviceID, Int32 cMidi, IntPtr dwCallback, IntPtr dwInstance, Int32 fdwOpen);
//暫停一個MIDI流的播放
[DllImport("winmm.dll")]
public static extern Int32 midiStreamPause(IntPtr hMidiStream);
//關(guān)掉指定MIDI輸出設(shè)備的所有MIDI通道
[DllImport("winmm.dll")]
public static extern Int32 midiStreamStop(IntPtr hMidiStream);
//關(guān)閉指定的混頻器
[DllImport("winmm.dll")]
public static extern Int32 mixerClose(IntPtr hmx);
//檢取和一個聲頻指線路相關(guān)的單一控件的細(xì)節(jié)
[DllImport("winmm.dll")]
public static extern Int32 mixerGetControlDetails(IntPtr hmxobj, ref MIXERCONTROLDETAILS pmxcd, UInt32 fdwDetailsmixer);
//查詢指定的混頻器以確定其性能
[DllImport("winmm.dll", SetLastError = true)]
public static extern uint MixerGetDevCaps(int mixerId, ref MixerCaps mixerCaps, int mixerCapsSize);
//獲取指定混頻器的標(biāo)識符
[DllImport("winmm.dll", SetLastError=true)]
public static extern MMRESULT mixerGetID(int hmxobj, uint puMxId, MixerFlags fdwId);
//檢取和一個聲頻線路相關(guān)的一個或多個控件
[DllImport("winmm.dll")]
public static extern Int32 mixerGetLineControls(IntPtr hmxobj, ref MIXERLINECONTROLS pmxlc, UInt32 fdwControls);
//檢取混頻器有關(guān)特有線路的信息
[DllImport("winmm.dll")]
public static extern Int32 mixerGetLineInfo(IntPtr hmxobj, ref MixerLine pmxl, UInt32 fdwInfo);
//返回系統(tǒng)中存在的混頻器的數(shù)量
[DllImport("winmm.dll", SetLastError = true)]
public static extern uint mixerGetNumDevs();
//打開指定的混頻器,在應(yīng)用程序關(guān)閉該句柄前保證該設(shè)備不被移走
[DllImport("winmm.dll")]
public static extern Int32 mixerOpen(ref IntPtr phmx, uint pMxId,IntPtr dwCallback, IntPtr dwInstance, UInt32 fdwOpen);
//設(shè)置和一個聲頻指線路相關(guān)的單一控件的細(xì)節(jié)
[DllImport("winmm.dll")]
public static extern Int32 mixerSetControlDetails(IntPtr hmxobj, ref MIXERCONTROLDETAILS pmxcd, UInt32 fdwDetails);
//播放一個波形聲音
[DllImport("winmm.dll", SetLastError = true)]
public static extern bool PlaySound(string pszSound, UIntPtr hmod, uint fdwSound);
[DllImport("winmm.dll", SetLastError = true)]
public static extern bool PlaySound(byte[] pszSound, IntPtr hmod, SoundFlags fdwSound);
//設(shè)置應(yīng)用程序或驅(qū)動程序使用的最小定時器分辨率
[DllImport("winmm.dll", SetLastError = true)]
public static extern uint timeBeginPeriod(uint uMilliseconds);
//清除應(yīng)用程序或驅(qū)動程序使用的最小定時器分辨率
[DllImport("winmm.dll", SetLastError = true)]
public static extern uint timeEndPeriod(uint uMilliseconds);
//查詢定時器設(shè)備以確定其性能
[DllImport("winmm.dll", SetLastError = true)]
public static extern UInt32 timeGetDevCaps(ref TimeCaps timeCaps,UInt32 sizeTimeCaps);
//檢取從WINDOWS開始已逝去的毫秒數(shù)
[DllImport("winmm.dll", SetLastError = true)]
public static extern UInt32 timeGetSystemTime(ref MmTime mmTime, UInt32 sizeMmTime);
//檢取從WINDOWS開始已逝去的毫秒數(shù),此函數(shù)比上一條函數(shù)開銷小
[DllImport("winmm.dll", SetLastError = true)]
public static extern uint timeGetTime();
//毀掉指定的定時器回調(diào)事件
[DllImport("winmm.dll", SetLastError = true)]
public static extern UInt32 timeKillEvent(UInt32 timerEventId);
//設(shè)置一個定時器回調(diào)事件
[DllImport("winmm.dll", SetLastError = true)]
public static extern UInt32 timeSetEvent(UInt32 msDelay, UInt32 msResolution,TimerEventHandler handler, ref UInt32 userCtx, UInt32 eventType);
//關(guān)閉指定的波形輸入設(shè)置
[DllImport("winmm.dll", SetLastError = true)]
static extern uint waveInClose(IntPtr hwi);
// 返回系統(tǒng)中存在的波形輸入設(shè)備的數(shù)量
[DllImport("winmm.dll", SetLastError = true)]
public static extern uint waveInGetNumDevs();
//為錄音而打開一個波形輸入設(shè)備
[DllImport("winmm.dll")]
public static extern uint waveInOpen(ref IntPtr hWaveIn, uint deviceId, ref WaveFormate wfx, IntPtr dwCallBack, uint dwInstance, uint dwFlags);
//為波形輸入準(zhǔn)備一個輸入緩沖區(qū)
[DllImport("winmm.dll", SetLastError = true)]
public static extern MMRESULT waveInPrepareHeader(IntPtr hwi, ref WaveHDR pwh, uint cbwh);
//停止給定的波形輸入設(shè)備的輸入,且將當(dāng)前位置清零
[DllImport("winmm.dll", SetLastError = true)]
public static extern uint waveInReset(IntPtr hwi);
// //啟動在指定的波形輸入設(shè)備的輸入
[DllImport("winmm.dll", SetLastError = true)]
public static extern uint waveInStart(IntPtr hwi);
[DllImport("winmm.dll", SetLastError = true)]
public static extern int waveInAddBuffer(int hWaveIn,ref WaveHDR lpWaveInHdr,int uSize);
// 查詢一個指定的波形輸入設(shè)備以確定其性能
[DllImport("winmm.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern uint waveInGetDevCaps(IntPtr hwo, ref WAVEINCAPS pwoc, uint cbwoc);
////清除由waveInPrepareHeader函數(shù)實現(xiàn)的準(zhǔn)備
[DllImport("winmm.dll", SetLastError = true)]
public static extern MMRESULT waveInUnprepareHeader(IntPtr hwi, ref WaveHDR pwh, uint cbwh);
//關(guān)閉指定的波形輸出設(shè)備
[DllImport("winmm.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern uint waveOutClose(IntPtr hwo);
// 查詢一個指定的波形輸出設(shè)備以確定其性能
[DllImport("winmm.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern uint waveOutGetDevCaps(IntPtr hwo, ref WAVEOUTCAPS pwoc, uint cbwoc);
//檢取由指定的錯誤代碼標(biāo)識的文本說明
[DllImport("winmm.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern uint waveOutGetErrorText(uint mmrError, StringBuilder pszText, uint cchText);
//檢取系統(tǒng)中存在的波形輸出設(shè)備的數(shù)量
[DllImport("winmm.dll", SetLastError = true)]
public static extern uint waveOutGetNumDevs();
//查詢一個波形輸出設(shè)備當(dāng)前播放的速度
[DllImport("winmm.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern uint waveOutGetPlaybackRate(IntPtr hwo, uint dwRate);
// 查詢指定波形輸出設(shè)備的當(dāng)前音量設(shè)置
[DllImport("winmm.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern uint waveOutGetVolume(IntPtr hwo, uint dwVolume);
//為播放打開一個波形輸出設(shè)備
[DllImport("winmm.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern uint waveOutOpen(ref IntPtr hWaveOut, IntPtr uDeviceID, ref WaveFormate lpFormat, IntPtr dwCallback, IntPtr dwInstance, uint dwFlags);
//暫停指定波形輸出設(shè)備上的播放
[DllImport("winmm.dll")]
public static extern uint waveOutPause(IntPtr hwo);
//為播放準(zhǔn)備一個波形緩沖區(qū)
[DllImport("winmm.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern uint waveOutPrepareHeader(IntPtr hWaveOut, ref WaveHDR lpWaveOutHdr, int uSize);
//停止給定的波形輸出設(shè)備的輸出,且將當(dāng)前位置清零
[DllImport("winmm.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern uint waveOutReset(IntPtr hwo);
//設(shè)置指定波形輸出設(shè)備的速度
[DllImport("winmm.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern uint waveOutSetPlaybackRate(IntPtr hwo, uint dwRate);
//設(shè)置指定的波形輸出設(shè)備的音量
[DllImport("winmm.dll", SetLastError = true, CallingConvention = CallingConvention.Winapi)]
public static extern int waveOutSetVolume(int uDeviceID, int dwVolume);
//清除由waveOutPrepareHeader函數(shù)實現(xiàn)的準(zhǔn)備
[DllImport("winmm.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern uint waveOutUnprepareHeader(IntPtr hwo, ref WaveHDR pwh, uint cbwh);
//向指定的波形輸出設(shè)備發(fā)送一個數(shù)據(jù)塊
[DllImport("winmm.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern uint waveOutWrite(IntPtr hwo, ref WaveHDR pwh, uint cbwh);
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請
點擊舉報
。
打開APP,閱讀全文并永久保存
查看更多類似文章
猜你喜歡
類似文章
c#類,封裝了鍵盤,和鼠標(biāo)模擬,和內(nèi)存讀取(申精)(頁 1) - 網(wǎng)絡(luò)安全 - ZDNet...
C#獲取進(jìn)程的主窗口句柄
驅(qū)動程序安裝類(C#)
C# 實現(xiàn)對硬件的控制
共享內(nèi)存操作類(C#源碼)
Winio64在64位系統(tǒng)中初始化失敗問題
更多類似文章 >>
生活服務(wù)
首頁
萬象
文化
人生
生活
健康
教育
職場
理財
娛樂
藝術(shù)
上網(wǎng)
留言交流
回頂部
聯(lián)系我們
分享
收藏
點擊這里,查看已保存的文章
導(dǎo)長圖
關(guān)注
一鍵復(fù)制
下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!
聯(lián)系客服
微信登錄中...
請勿關(guān)閉此頁面
先別劃走!
送你5元優(yōu)惠券,購買VIP限時立減!
5
元
優(yōu)惠券
優(yōu)惠券還有
10:00
過期
馬上使用
×