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

We can use normal imports for shell32 now.

parent fdb799aa
......@@ -10,15 +10,11 @@
#include <shellapi.h>
#include "params.h"
void launch(char what[255])
void launch(const char *what)
{
HMODULE hMod;
FARPROC pControl_RunDLL;
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);
}
......
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