We can use normal imports for shell32 now.

oldstable
Alexandre Julliard 2002-02-02 18:15:27 +00:00
parent fdb799aa6a
commit 536ee943e4
1 changed files with 4 additions and 8 deletions

View File

@ -10,15 +10,11 @@
#include <shellapi.h>
#include "params.h"
void launch(char what[255])
{
HMODULE hMod;
FARPROC pControl_RunDLL;
void launch(const char *what)
{
extern void WINAPI Control_RunDLL(HWND hWnd, HINSTANCE hInst, LPCSTR cmd, DWORD nCmdShow);
hMod = LoadLibrary("shell32.dll");
pControl_RunDLL = GetProcAddress(hMod, "Control_RunDLL");
pControl_RunDLL(GetDesktopWindow(), 0, what, SW_SHOW);
FreeLibrary(hMod);
Control_RunDLL(GetDesktopWindow(), 0, what, SW_SHOW);
exit(0);
}