!!!!!!高高手请进!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 等函数做了屏蔽!但是针对上面页面的声音不起任何作用!
[解决办法]
你是想不让电脑播放声音?