<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hola. <br>
Estuve tratando de hacer este programa en Visual C++.net 2005 Express
para apagar la PC:<br>
<span style="color: rgb(91, 239, 75);"></span><span
 style="font-size: 12pt; font-family: "Times New Roman";"><font
 color="#993399">#include<iostream><br>
<br>
using namespace std;<br>
<br>
int main()<br>
{   <br>
    cout<<"Mi  PC is SHUTDOWN.... <<endl;<br>
    system("SHUTDOWN -s -t 10");<br>
    cin.get();<br>
<br>
    return 0;<br>
}</font>
<br>
</span><span style="font-size: 12pt; font-family: "Times New Roman";">El
mensaje que devuelve es:<br>
<font color="#000099">"The operation completed successfully.<br>
A required privileged is not help by the client."<br>
<font color="#000000"><br>
Si cambio </font></font></span><span
 style="font-size: 12pt; font-family: "Times New Roman";"><font
 color="#993399">-s <font color="#000000">por</font> -l <font
 color="#000000">que es para cerrar mi cesión funciona perfectamente.<br>
Alguien sabe que tengo que hacer para que me funcione. Quisiera, de ser
posible, que fuese utilizando esta vía.<br>
De antemano muchas gracias.<br>
</font></font></span>
<div class="moz-signature">-- <br>
<title></title>
<pre class="moz-signature" cols="72"><b><i><big><font color="#000099"><font
 face="Times New Roman">“Conoce a los de tu aldea y conocerás al mundo,
 porque el amor, la soledad, la rabia, el odio…,
 son iguales en Moscú, Nueva York y La Habana,
 porque lo único que cambia es la escenografía.” </font></font></big></i></b></pre>
</div>
</body>
</html>