摘要: Create a Windows Service project using VB.NET. Open Server Explorer and expand the tree node which says Management Classes. Right click on Processes node and select "Generate Managed Class". This will add a reference to the System.Management namespace. Now import System.Management namespac 阅读全文
posted @ 2011-04-13 11:04 Black Bean 阅读(374) 评论(0) 推荐(0) 编辑
摘要: public static string Encrypt(string strPWtoEncrypt) { string CurrentFunction = "" + CommonSettings.ModNFunComStr + "Encrypt"; try { string strPword=string.Empty; byte bytCount; int intTemp; for (bytCount = 1; bytCount <= strPWtoEncrypt.Length; bytCount++) { intTemp = Convert.T 阅读全文
posted @ 2011-04-13 09:35 Black Bean 阅读(241) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Security.AccessControl;using System.IO;using System.Collections;namespace Customization.Service{ public class FolderSecurity { public static bool SetFolderACL(String FolderPath, String UserName, FileSystemRights Rights, Acc 阅读全文
posted @ 2011-04-13 09:31 Black Bean 阅读(366) 评论(1) 推荐(0) 编辑