I have used SE_SHUTDOWN_NAME privilege to shutdown. Ref: https://docs.microsoft.com/en-us/windows/win32/secauthz/enabling-and-disabling-privileges-in-c--
Any C++ examples how to use SeRemoteShutdownPrivilege function in this LookupPrivilege function?,because when I try to give remote system name as argument,it shows ERROR_NOT_ASSIGNED