2004年08月06日

#include

#pragma comment(lib, “dxguid.lib”)

int main()
{
????CoInitialize(NULL);
????
????IDirectPlayVoiceTest*
????????pVoiceTest = NULL;
????HRESULT hr = CoCreateInstance(CLSID_DirectPlayVoiceTest,
????????NULL,
????????CLSCTX_INPROC_SERVER,
????????IID_IDirectPlayVoiceTest,
????????(LPVOID*) &pVoiceTest );

????hr = pVoiceTest->CheckAudioSetup(NULL,
????????NULL,
????????NULL,
????????/*DVFLAGS_QUERYONLY,*/
????????DVFLAGS_ALLOWBACK);
????pVoiceTest->Release();

????CoUninitialize();

????return 1;
}