摘要:
/// /// Reverses or restores the meaning of the left and right mouse buttons. /// /// If this parameter is TRUE, the left button generates right-button messages and the righ... 阅读全文
摘要:
InputLanguage.CurrentInputLanguage input=InputLanguage.InstalledInputLanguages[1]; 阅读全文
摘要:
/// /// Empties the Recycle Bin on the specified drive. /// /// A handle to the parent window of any dialog boxes that might be... 阅读全文
摘要:
//锁定计算机[DllImportAttribute("user32.dll")]public static extern void LockWorkStation();禁止关闭计算机private const int WM_QUERYENDSESSION = 0x0011;//windows消息 ... 阅读全文
摘要:
Process p = new Process();//创建进程对象 string drivename = cboDrive.Text;//盘符 string shareName = txtShareName.Text;//共享名 ... 阅读全文
摘要:
using System.Management;using System.IO; //System.Management.dll //创建WMI查询 ManagementObjectSearcher searcher = new ManagementObje... 阅读全文
摘要:
using (RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer")) { key.SetValue... 阅读全文