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
Ïà¹ØÎĵµ£º
ÍøÂçÎı¾±à¼Æ÷----Fckeditor֮ʹÓÃƪ
1.ÏÂÔØFckeditor£¬asp.net°æ·ÖÁ½²¿·Ö£¬FCKeditorºÍFCKeditor.Net: ASP.Net Control¡£
¹Ù·½ÍøÕ¾£ºhttp://ckeditor.com/download
2.FckeditorÔÚÏîÄ¿Öеļ¯³É¡£
ºÜ¼òµ¥£¬²»ÔÙ׸Êö¡£
²Î¿¼ÎÄÏ×£ºhttp://www.cnblogs.com/zhubo/archive/2008/10/21/using_fckeditor_net.html
³£ ......
1.·ûºÅ“/”Ö¸³ÌÐòÔËÐÐËùÔÚ¸ùĿ¼£¬¼´IIsËùÔÚĿ¼¡£
Èç¹ûiisËùÔÚĿ¼Ϊ£ºd:\programs
½â¾ö·½°¸Îªd:\programs\d
Íøվ·¾¶Îª£ºd:\programs\d\web\
·ûºÅ“/”´ú±íµÄÊÇ£ºd:\programs£¬²»¹ÜÄãµÄÍøվǰÃæÓжàÉÙ¼¶£¬¶¼Ó¦¸Ã×÷Ϊһ¸öÕûÌå¡£
2.·ûºÅ“~/”£¬ÔòÊÇÖ¸ÍøÕ¾ËùÔÚ¸ùĿ¼¡£¼´d:\programs\ ......
asp.net½Ì³Ì:asp.net¿Ø¼þ¿ª·¢£¨Ò»£©-ÏÔʾ¿Ø¼þÄÚÈÝ
asp.net¿Ø¼þµÄÏÔʾ×ÔÈ»»áÀë²»¿ªÊä³öHTML¡¢CSS¡¢JavascriptµÈǰ̨µÄÏÔʾÄÚÈÝ£¬ËùÒÔ¿ª·¢Ò»¸ö¿Ø¼þµÄʱºòµÚÒ»¼þʾÍÊÇÒªÖªµÀÈçºÎÊä³ö¿Í»§¶ËÒªÏÔʾµÄÄÚÈÝ¡£
¡¡¡¡Ò»¡¢Ñ¡Ôñ»ùÀà
¡¡¡¡asp.netÖÐËùÓеıê×¼¿Ø¼þ¶¼¿ÉÒÔÄùýÀ´×÷Ϊ»ùÀ࣬Èç¹ûÎÒÃÇÒª¿ª·¢µÄ¿Ø¼þÖ»ÊǶÔÔÓеıê×¼¿Ø¼þ×öÒ ......
1.¶ÔÏó³õʼ»¯£¨OnInit·½·¨£©
Ò³ÃæÖеĿؼþ(°üÀ¨Ò³Ãæ±¾Éí)¶¼ÊÇÔÚËüÃÇ×î³õµÄFORMÖб»Ê״γõʼ»¯µÄ¡£Í¨¹ýÔÚASPXÒ³ÃæµÄºǫ́´úÂëÎļþµÄ¹¹ÔìÆ÷ÖÐÉùÃ÷ÄãµÄ¶ÔÏó£¬Ò³Ã潫֪µÀ¶ÔÏóµÄÀàÐÍ£¬²¢ÖªµÀÐèÒª´´½¨¶àÉÙ¸öÕâÑùµÄ¶ÔÏó¡£Ò»µ©ÄãÔÚ¹¹ÔìÆ÷ÖÐÉùÃ÷ÁËÄãµÄ¿Ø¼þ£¬Äã¾Í¿ÉÒÔÔÚËüµÄÈκÎ×ÓÀ࣬·½·¨£¬Ê¼þ»òÕßÊôÐÔÖзÃÎʵ½Ë ......
ÉùÃ÷£º
Ö»Ìṩºǫ́.csÎļþ´úÂë
Ïêϸ½Ì³ÌµØÖ·£ºhttp://download.csdn.net/source/2289546
1.ÐèÒª ±àд¾²Ì¬Ä£°åÒ³ ÎÒʹÓõÄÊÇ template.htm
2.ÔÚÄ£°åÒ³Öж¨Òåhtmlyem±ê¼Ç£¬±ê¼Ç·Ç¹Ì¶¨ÄÚÈÝ£¬ÔÚºǫ́´úÂëÖÐΪ±ê¼Ç¸³Öµ
3.ºǫ́´úÂëÈçÏ£º
using System;
using System.Data;
using System.Configuration;
using Syst ......