1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
/*Les variables de la fonction*/
unsigned long dwCookie;
DWORD RetourPW;
unsigned long dwType = 1;
wchar_t phrase2[5];
wcscpy(phrase2,L"-30");
const wchar_t *strwavefile = phrase2;
/*Définition et utilisation de la fonction (c'est une fonction de Dll)*/
typedef unsigned long (WINAPI *DLL_Function_AGPS6_PlayWave) (unsigned long, const wchar_t*, unsigned long);
LPCTSTR FonctionSon = _T("AGPS6_PlayWave") ;
DLL_Function_AGPS6_PlayWave PlayWave;
PlayWave = (DLL_Function_AGPS6_PlayWave)GetProcAddress(hDLL, FonctionSon);
RetourPW = PlayWave(dwCookie, strwavefile, dwType); |