52 char DriverNameA[200];
54 static LPWSTR SoundDriverW =
L"Primary Sound Driver";
55 static LPWSTR SoundDriverA =
L"Primary Sound Driver";
57 if (lpDSEnumCallbackW)
74 return lpDSEnumCallbackW(DeviceGuid,
Buffer, DriverName, lpContext);
97 DriverNameA[(
sizeof(DriverNameA) /
sizeof(
char))-1] = 0;
100 return lpDSEnumCallbackA(DeviceGuid, (
LPSTR)
Buffer, DriverNameA, lpContext);
123 if (lpDSEnumCallbackA ==
NULL && lpDSEnumCallbackW ==
NULL)
193 CurInfo = CurInfo->
lpNext;
char * strcpy(char *DstString, const char *SrcString)
#define LoadResourceString(hInst, uID)
HRESULT EnumAudioDeviceInterfaces(LPFILTERINFO *OutRootInfo)
HINSTANCE dsound_hInstance
HRESULT DSoundEnumerate(LPDSENUMCALLBACKA lpDSEnumCallbackA, LPDSENUMCALLBACKW lpDSEnumCallbackW, LPVOID lpContext, BOOL bPlayback)
BOOL DoDSoundCallback(LPDSENUMCALLBACKA lpDSEnumCallbackA, LPDSENUMCALLBACKW lpDSEnumCallbackW, LPGUID DeviceGuid, UINT ResourceId, LPWSTR ProductName, LPWSTR DriverName, LPVOID lpContext)
HRESULT WINAPI DirectSoundCaptureEnumerateA(LPDSENUMCALLBACKA lpDSEnumCallback, LPVOID lpContext)
HRESULT WINAPI DirectSoundEnumerateW(LPDSENUMCALLBACKW lpDSEnumCallback, LPVOID lpContext)
HRESULT WINAPI DirectSoundEnumerateA(LPDSENUMCALLBACKA lpDSEnumCallback, LPVOID lpContext)
HRESULT WINAPI DirectSoundCaptureEnumerateW(LPDSENUMCALLBACKW lpDSEnumCallback, LPVOID lpContext)
#define IDS_PRIMARY_RECORD_DEVICE
#define IDS_PRIMARY_PLAYBACK_DEVICE
#define WideCharToMultiByte
BOOL(CALLBACK * LPDSENUMCALLBACKW)(LPGUID, LPCWSTR, LPCWSTR, LPVOID)
#define DSERR_INVALIDPARAM
BOOL(CALLBACK * LPDSENUMCALLBACKA)(LPGUID, LPCSTR, LPCSTR, LPVOID)
unsigned __int3264 UINT_PTR
#define IsEqualGUID(rguid1, rguid2)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
struct tagFILTERINFO * lpNext
WCHAR szPname[MAXPNAMELEN]
WCHAR szPname[MAXPNAMELEN]
#define RtlZeroMemory(Destination, Length)
UINT WINAPI waveOutGetDevCapsW(UINT_PTR uDeviceID, LPWAVEOUTCAPSW lpCaps, UINT uSize)
UINT WINAPI waveInGetDevCapsW(UINT_PTR uDeviceID, LPWAVEINCAPSW lpCaps, UINT uSize)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
int WINAPI LoadStringA(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPSTR lpBuffer, _In_ int cchBufferMax)