Commit 536ee943 authored by Alexandre Julliard's avatar Alexandre Julliard

We can use normal imports for shell32 now.

parent fdb799aa
...@@ -10,15 +10,11 @@ ...@@ -10,15 +10,11 @@
#include <shellapi.h> #include <shellapi.h>
#include "params.h" #include "params.h"
void launch(char what[255]) void launch(const char *what)
{ {
HMODULE hMod; extern void WINAPI Control_RunDLL(HWND hWnd, HINSTANCE hInst, LPCSTR cmd, DWORD nCmdShow);
FARPROC pControl_RunDLL;
hMod = LoadLibrary("shell32.dll"); Control_RunDLL(GetDesktopWindow(), 0, what, SW_SHOW);
pControl_RunDLL = GetProcAddress(hMod, "Control_RunDLL");
pControl_RunDLL(GetDesktopWindow(), 0, what, SW_SHOW);
FreeLibrary(hMod);
exit(0); exit(0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment