>bool closecomputer(int kind)1 c% A1 Q1 {) Y+ z% a, K4 [, G
> // Get a token for this process.( b# H: g9 C. ~! M; S2 [
> // Get the LUID for the shutdown privilege.
> tkp.PrivilegeCount = 1; // one privilege to set
> // Get the shutdown privilege for this process.
> if (GetLastError() != ERROR_SUCCESS)
>}</P>
| 欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) | Powered by Discuz! X2.5 |