摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文