|
28 Apr |
MessageBox mit TimeOut WINAPI
|
typedef int (WINAPI *MessageBoxTimeOutWFunc)(HWND hWndParent,PWCHAR strText,PWCHAR strCaption, UINT uType,WORD wLanguageId,DWORD dwMilliseconds);
HMODULE hMod = LoadLibrary(“user32.dll”);
MessageBoxTimeOutWFunc pMessageBoxTimeout = (MessageBoxTimeOutWFunc)GetProcAddress(hMod,”MessageBoxTimeoutW”);
pMessageBoxTimeout(NULL,L”Text”,L”Titel”,MB_OK | MB_SETFOREGROUND,0,3000);
FreeLibrary(hMod);
