asp.net ÀûÓãףͣÉʵÏֹػúÖØÆô
ÎÒÕâÊÇÄÃÀ´±ðÈËÓõģ¬ÎªÁË·½±ãÒÔºó×Ô¼º¿´°É£¬¿´¶Ô´ó¼ÒÓаïæÂð
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace AppBLL
{
public class ShutDown
{
[StructLayout(LayoutKind.Sequential, Pack = 1)]
internal struct ToKprivlLuid
{
public int Count;
public long Luid;
public int Attr;
}
[DllImport("kernel32.dll", ExactSpelling = true)]
internal static extern IntPtr GetCurrentProcess();
[DllImport("advapi32.dll", ExactSpelling = true, SetLastError = true)]
internal static extern bool OpenProcessToken(IntPtr h, int acc, ref IntPtr phtok);
[DllImport("advapi32.dll", SetLastError = true)]
internal static extern bool LookupPrivilegeValue(string host, string name, ref long pluid);
[DllImport("advapi32.dll", ExactSpelling = true, SetLastError = true)]
internal static extern bool
AdjustTokenPrivileges(IntPtr htok, bool disall, ref ToKprivlLuid newst, int len, IntPtr prev, IntPtr relen);
[DllImport("user32.dll", ExactSpelling = true, SetLastError = true)]
internal static extern bool ExitWindowsEx(int flg, int rea);
//C#¹Ø»ú´úÂë
// ÒÔ϶¨ÒåÁËÔÚµ÷ÓÃWinAPIʱÐèÒªµÄ³£Êý¡£
//ÕâЩ³£Êýͨ³£¿ÉÒÔ´ÓPlatform SDKµÄ°üº¬Îļþ£¨Í·Îļþ£©ÖÐÕÒµ½
internal const int SE_PRIVILEGE_ENABLED = 0x00000002;
internal const int TOKEN_QUERY = 0x00000008;
internal const int TOKEN_ADJUST_PRIVILEGES = 0x00000020;
internal const string SE_SHUTDOWN_NAME = "SeShutdownPrivilege";
internal const int EWX_LOGOFF = 0x00000000;
internal const int EWX_SHUTDOWN = 0x00000001;
internal const int EWX_REBOOT = 0x00000002;
internal const int EWX_FORCE = 0x00000004;
internal const int EWX_POWEROFF
Ïà¹ØÎĵµ£º
asp.netÖÐ×öÊÓÆµ×ª»»£¬½«¸÷ÖÖÊÓÆµÎļþת»»³É.flv¸ñʽ ×öÒ»¸öÊÓÆµ×ª»»µÄDemo,ÏÖÔÚ³öÏֺܵÄÍøÉÏÔÚÏßÊÓÆµÆäÎļþ¸ñʽ¶¼ÊÇ.FLV¸ñʽ£¬ÄÇЩÊÓÆµÍøÕ¾´ó¸ÅÒ²ÓÐÒ»¸öÊÓÆµ×ª»»Èí¼þ£¬ËùÎÒÔÚÒ²ÊÔ×ÅÈ¥×öÁËÒ»¸ödemoÄóöÀ´ºÍ´ó¼Ò¹²Ïíһϣ¬ÓÉÓÚ×Ô¼ºµÄ¼¼ÊõÓÐÏÞ£¬×öµÄ²»ÔõôÑù£¬Ô¸ÓиßÈË¿´Íê¸ø
ÔÚÏÂÖ¸µãÒ»¶þ. ºÇ....¡¡·Ñ»°²»¶à˵ÁË£¬ÏÂÃæÀ´·Ö½ ......
asp.net Ôö¼Ó²¥·Å¿Ø¼þ&²¥·ÅÊÓÆµÎļþ2009-11-02 13:59/// <summary>//°ó¶¨ÊÓÆµ²¥·Å
/// °ó¶¨ÊÓÆµ²¥·Å
/// </summary>
/// <param name="width">²¥·ÅÆ÷¿í¶È</param>
/// <param name="height">²¥·ÅÆ÷¸ß¶ ......
asp.net½Ì³Ì:asp.net¿Ø¼þ¿ª·¢(¶þ)-¼òµ¥ÊôÐÔ
ÎÒÃÇ¿ª·¢³öÀ´µÄ¿Ø¼þÒ»°ã¶¼ÐèÒª¸úʹÓÿؼþµÄÈ˱à³ÌÈËÔ±½»»¥£¬ÆäÖн»»¥ÓÐÁ½¸ö;¾¶£ºÒ»¸öÊÇÊôÐÔ»¹ÓоÍÊÇʼþ¡£ÊôÐÔ¿ÉÄÜÊǼòµ¥µÄÀàÐÍÈ磺int¡¢stringµÈ²¢²»Ì«¸´ÔÓµÄÀàÐÍ£¬Ò²ÓбȽϸ´ÔÓµÄÀàÐÍÈ磺¼¯ºÏ¡£
¡¡¡¡Ò»¡¢ÊôÐÔʵÏÖ½»»¥
¡¡¡¡ÎÒÃÇ»¹ÊÇÑØÓÃÉÏÃæµÄÀý×ÓÀ´Ìí¼ÓÊôÐÔ PicShowʾÀý£º
......
vs2008½¨ÍøÕ¾ÊÇǧÍò±ðÔÚ±£´æÂ·¾¶Öк¬ÓБ#’£¬±ÈÈçÔÚ‘C#’µÄÎļþ¼ÐÀïÃæÔÙ½¨ÍøÕ¾£¬Èç¹û·¾¶Öк¬ÓБ#’£¬½«Ê¹Ä¸°æ½¨Á¢ÊÇÓдíÎ󣬶øÇÒ×ÓÒ³½¨Á¢ºóÒ²ÎÞ·¨Ê¹ÓÃÉè¼ÆÒ³Ãæ£¬»¹»áÓÐÆäËû·¾¶ÎÊÌ⣨±ÈÈçCSSÎļþÎÞ·¨¼ÓÔØ£©¡£Õâ¸öÎÒ½ñÍí¸Õ¸Õ½â¾ö£¬À§ÈÅÎÒÁËÒ»ÏÂÎ磬¶àÐ»ÍøÉÏÖÚÈ˵ÄÖ¸µã£¬ÌØ´Ëд³ö£¬ÌáÐÑ×Ô¼ ......
ÉùÃ÷£º
Ö»Ìṩºǫ́.csÎļþ´úÂë
Ïêϸ½Ì³ÌµØÖ·£ºhttp://download.csdn.net/source/2289546
1.ÐèÒª ±àд¾²Ì¬Ä£°åÒ³ ÎÒʹÓõÄÊÇ template.htm
2.ÔÚÄ£°åÒ³Öж¨Òåhtmlyem±ê¼Ç£¬±ê¼Ç·Ç¹Ì¶¨ÄÚÈÝ£¬ÔÚºǫ́´úÂëÖÐΪ±ê¼Ç¸³Öµ
3.ºǫ́´úÂëÈçÏ£º
using System;
using System.Data;
using System.Configuration;
using Syst ......