WEB开发网
开发学院软件开发VC Skype录音答录机编程思路和代码 阅读

Skype录音答录机编程思路和代码

 2008-09-01 19:25:37 来源:WEB开发网   
核心提示: 定义函数变量//typedef MMRESULT (WINAPI *PFN_waveInOpen) ( LPHWAVEIN phwi,UINT uDeviceID,LPWAVEFORMATEX pwfx,DWORD dwCallback,DWORD dwCallbackInstance,

//
// 定义函数变量
//
typedef MMRESULT (WINAPI *PFN_waveInOpen) ( LPHWAVEIN phwi,
                      UINT uDeviceID,
          LPWAVEFORMATEX pwfx,
          DWORD dwCallback,
          DWORD dwCallbackInstance,
          DWORD fdwOpen );
typedef MMRESULT (WINAPI *PFN_waveInClose) ( HWAVEIN hwi );
typedef MMRESULT (WINAPI *PFN_waveOutOpen) ( LPHWAVEOUT phwo,
          UINT uDeviceID,
          LPWAVEFORMATEX pwfx,
          DWORD dwCallback,
          DWORD dwCallbackInstance,
          DWORD fdwOpen );
typedef MMRESULT (WINAPI *PFN_waveOutClose) ( HWAVEOUT hwo );
typedef MMRESULT (WINAPI *PFN_waveInPrepareHeader) ( HWAVEIN hwi, LPWAVEHDR pwh, UINT cbwh );
typedef MMRESULT (WINAPI *PFN_waveOutWrite) ( HWAVEOUT hwo, LPWAVEHDR pwh, UINT cbwh );
//
// 修改Win32 API函数地址
//
CAPIHook g_waveInOpen("winmm.dll", "waveInOpen", (PROC) Hook_waveInOpen, TRUE);
CAPIHook g_waveInClose("winmm.dll", "waveInClose", (PROC) Hook_waveInClose, TRUE);
CAPIHook g_waveOutOpen("winmm.dll", "waveOutOpen", (PROC) Hook_waveOutOpen, TRUE);
CAPIHook g_waveOutClose("winmm.dll", "waveOutClose", (PROC) Hook_waveOutClose, TRUE);
CAPIHook g_waveInPrepareHeader("winmm.dll", "waveInPrepareHeader", (PROC) Hook_waveInPrepareHeader, TRUE);
CAPIHook g_waveOutWrite("winmm.dll", "waveOutWrite", (PROC) Hook_waveOutWrite, TRUE);

说明:

上一页  1 2 3 4 5 6  下一页

Tags:Skype 录音 答录机

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接