using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Runtime.InteropServices ; 
using System.Text ;
using System.IO;
namespace Text
{
/// <summary>
/// Form1 的摘要说明。
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TextBox TxtTime;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.DateTimePicker SetupDate;
private System.Windows.Forms.DateTimePicker SetupTime;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.CheckBox checkBox3;
private System.Windows.Forms.Button ButClose;
private System.Windows.Forms.Button ButReOpen;
private System.Windows.Forms.Button ButCancle;
private System.Windows.Forms.Button ButReLogin;
private System.Windows.Forms.Timer timer1;
private System.ComponentModel.IContainer components;
[ DllImport("user32") ] 
public static extern long SetWindowPos(long hwnd , long hWndInsertAfter, long X , long y , long cx, long cy, long agslong) ;
[ DllImport("user32") ] 
public static extern long ExitWindowsEx(long uFlags, long erved ) ; 
[ DllImport("shell32") ] 
public static extern long ShellAbout(long uFlags, long wReserved ) ;
long dwReserved ; 
const int SHUTDOWN = 1 ; 
const int REBOOT = 2 ; 
const int LOGOFF = 0 ; 
long sh ; 
int counter , n ; 这是调用的API函数,