Skype录音答录机编程思路和代码
2008-09-01 19:25:37 来源:WEB开发网//
// 定义函数变量
//
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);
说明:
- ››Skype视频通话有望CES期间登录iPhone
- ››Skype官网出现iPhone应用帮助文档,随后被删除
- ››Skype新版整合Facebook增加视频会议功能
- ››Skype 2.0.1 for iPhone 评测
- ››Skype升级iPhone版应用 支持多任务处理
- ››Skype向所有设备和台式应用开放软件开发包
- ››Skype称将推多平台:支持手机与电视视频通话
- ››Skype终于出iPhone版了 还支持3G网络
- ››Skype 2.0 for iPhone 支持3G下工作
- ››Skype 2.0 for iPhone 已经可以工作在3G模式下
- ››Skype 周四登陆 Verizon 9 款黑莓 Android 手机
- ››Skype 发布 Symbian 应用 用户可拨打免费网络电话...
更多精彩
赞助商链接