#include "stdafx.h"
#include "Windows.h"
int (__stdcall * MyLockWorkStation)();
int main(int argc, char* argv[])
{
HINSTANCE hinstLib;
printf("Hello World!/n");
hinstLib = LoadLibrary("USER32.DLL");
if (hinstLib)
{
MyLockWorkStation = (int (__stdcall *)())
GetProcAddress(hinstLib, "LockWorkStation");
if (MyLockWorkStation != NULL)
(MyLockWorkStation) ();
}
FreeLibrary(hinstLib);
return 0;
}
#include "Windows.h"
int (__stdcall * MyLockWorkStation)();
int main(int argc, char* argv[])
{
HINSTANCE hinstLib;
printf("Hello World!/n");
hinstLib = LoadLibrary("USER32.DLL");
if (hinstLib)
{
MyLockWorkStation = (int (__stdcall *)())
GetProcAddress(hinstLib, "LockWorkStation");
if (MyLockWorkStation != NULL)
(MyLockWorkStation) ();
}
FreeLibrary(hinstLib);
return 0;
}