BOOL CALLBACK enum_callback(LPGUID guid, LPCWSTR desc, LPCWSTR /*module*/, void *context)
{
//"ACTS Frontend V1.0"
const WCHAR a [] = _T("X");
if(0 == memcmp(a,desc,sizeof(a)))
{
*(GUID*)context = *guid;
return FALSE;
}
return TRUE;
}
GUID guid;
DirectSoundEnumerate(enum_callback,&guid);