We can use normal imports for shell32 now.
This commit is contained in:
parent
fdb799aa6a
commit
536ee943e4
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue