摘要:
http://stackoverflow.com/questions/3571627/show-hide-the-console-window-of-a-c-sharp-console-application using System.Runtime.InteropServices;[DllImport("kernel32.dll")]static extern IntPtr GetConsol... 阅读全文
摘要:
http://stackoverflow.com/questions/3571627/show-hide-the-console-window-of-a-c-sharp-console-application using System.Runtime.InteropServices;[DllImport("kernel32.dll")]static extern IntPtr GetConsol... 阅读全文
摘要:
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace ConsoleApplication5 { class Program { static void Main(string[] args) ... 阅读全文
摘要:
ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_Product"); foreach (ManagementObject wmi in searcher.Get()) { wmi.GetPropertyValue("Name"... 阅读全文
摘要:
http://msdn.microsoft.com/en-us/library/hh266706(v=VS.110).aspx 阅读全文
摘要:
1. WINRAR版本 2. 将所有文件放在同一个文件夹下 3. 选中所有文件点击右键 -> Add to archive 4. General设置 5. Advanced 设置 6. 确定开始制作安装文件 7. 制作完成 阅读全文
摘要:
// This sample demonstrates the use of the WindowsIdentity class to impersonate a user. // IMPORTANT NOTES: // This sample requests the user to enter a password on the console screen. // Because the console window does not support methods allowing the password to be masked, // it will be visible to 阅读全文
摘要:
http://msdn.microsoft.com/en-us/library/aa384906(v=vs.85).aspxHKEY_LOCAL_MACHINE = &H80000002strComputer = "."Set ObjRegistry = _ GetObject("winmgmts:{impersonationLevel = impersonate}!\\" _ & strComputer & "\root\default:StdRegProv")strPath = "SOFTWARE 阅读全文
摘要:
CREATE DEFINER=`root`@`localhost` PROCEDURE `getData`(deviceName varchar(45),startTime datetime,endTime datetime)BEGINset @s1 = concat('SELECT * FROM ', deviceName , ' where view_time between ''' , startTime , ''' and ''' , endTime ,''' ; 阅读全文
摘要:
public class Program { static void Main(string[] args) { var alarm = new Alarm() { Code = "1588-OPER-2", Grade = "1", Source = "55A3E6C7E2A0560A956D3933F42E5AA2", Time = DateTime.Now, Te... 阅读全文
|