#include <windows.h>
typedef MCIERROR (WINAPI* joMciSendString) ( LPCTSTR lpszCommand,
LPTSTR lpszReturnString,
UINT cchReturn,
HANDLE hwndCallback );
int main()
{
HMODULE hDll = LoadLibrary("winmm.dll");
if(!hDll)
{
printf("Erreur LoadLibrary\n");
system("pause");
return 0;
}
joMciSendString MyFunc = (joMciSendString)GetProcAddress(hDll, "mciSendStringA");
if(!MyFunc)
{
printf("Erreur GetProcAddress\n");
FreeLibrary(hDll);
system("pause");
return 0;
}
MyFunc("Set cdaudio door open wait", NULL, 0, NULL);
FreeLibrary(hDll);
system("pause");
return 0;
}
Ou bien tu link direct winmm.lib lol
if(!Meilleur("Joky")) return ERREUR;<