AD
摘要:在Group里面添加和删除User:public void AddUserToGroup(string userId, string groupName) { try { using (PrincipalContext pc = new PrincipalContext(ContextType.Domain, "COMPANY")) { GroupPrincipal group = GroupPrincipal.FindByIdentity(pc, groupName); group.Members.Ad...
阅读全文
posted @
2013-08-08 17:15
啊風
阅读(337)
推荐(0)
winmm.dll获取和设置声音
摘要:[DllImport("winmm.dll")] private static extern int waveOutGetVolume(IntPtr hwo, out uint dwVolume); [DllImport("winmm.dll")] pr...
阅读全文
posted @
2013-08-02 14:16
啊風
阅读(993)
推荐(0)