首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

!高!vc中怎么屏蔽如下页面的声音

2013-03-26 
!!!!!!高高手请进!vc中如何屏蔽如下页面的声音!http://www.1ting.com/player/9b/player_152840.htmlHMODUL

!!!!!!高高手请进!vc中如何屏蔽如下页面的声音!
http://www.1ting.com/player/9b/player_152840.html

HMODULE hDSound = LoadLibrary(_T("DSound.dll"));
char *pDirectSoundCreate = (char *)GetProcAddress(hDSound, "DirectSoundCreate");  
DWORD lOldProtect=0; 
VirtualProtect(pDirectSoundCreate, 3, PAGE_EXECUTE_READWRITE, &lOldProtect);
BYTE szByte[]={0xC2,0x0C,0x00};
CopyMemory(pDirectSoundCreate,szByte,sizeof(szByte));
VirtualProtect(pDirectSoundCreate,3,lOldProtect,&lOldProtect);

除了DirectSoundCreate之外,我还对midiStreamOpen waveOutWrite sndPlaySoundW 等函数做了屏蔽!但是针对上面页面的声音不起任何作用!

[解决办法]
你是想不让电脑播放声音?

热点排行