安装MSDN的说法,调用logonuser需要这个进程有SE_TCB_NAME权限,
怎样才能使当前进程拥有SE_TCB_NAME权限?MSDN:
In Windows 2000, the process calling LogonUser requires the SE_TCB_NAME privilege. The privilege does not need to be enabled. The LogonUser function enables the privilege as necessary. If the calling process does not have this privilege, LogonUser fails and GetLastError returns ERROR_PRIVILEGE_NOT_HELD. Beginning with Whistler, this privilege is no longer required.