rundll32.exe user32.dll,LockWorkStation
#include <stdlib.h> int main() { system("rundll32.exe user32.dll,LockWorkStation "); return 0; }