李晓亮的博客

导航

2008年6月23日

【转】C#通过WMI设置NTFS目录共享和目录安全

摘要: 1) 目录共享:通过WMI的Win32_Share类的Create()方法来实现。 2) 目录安全:通过WMI的Win32_LogicalFileSecuritySetting类的SetSecurityDescriptor()方法来实现,涉及到win32_trustee和win32_ace类。 完整代码 如下: using System; using System.Collections.... 阅读全文

posted @ 2008-06-23 20:57 LeeXiaoLiang 阅读(684) 评论(0) 推荐(0) 编辑

【转】C#子线程使用FolderBrowserDialog的问题延伸

摘要: 本文转自:http://www.diybl.com/course/4_webprogram/asp.net/asp_netxl/2007125/90477.html Q:子线程如何使用FolderBrowserDialog A: private void button1_Click(object sender, EventArgs e) ...{ S... 阅读全文

posted @ 2008-06-23 20:25 LeeXiaoLiang 阅读(751) 评论(0) 推荐(0) 编辑

【转】实现多行toolTips的类模块

摘要: 注:本文转自CSDN论坛 这里有一个类模块,就是用来实现多行 toolTips 的. Option Explicit '=============================================================' ' Module Name : mdlA... 阅读全文

posted @ 2008-06-23 15:17 LeeXiaoLiang 阅读(417) 评论(0) 推荐(0) 编辑