Ejemplo n.º 1
0
        public static int ADsOpenObject(string path, string userName, string password, int flags, out Guid iid, out object ppObject)
        {
            int num;

            try
            {
                num = UnsafeNativeMethods.IntADsOpenObject(path, userName, password, flags, out iid, out ppObject);
            }
            catch (EntryPointNotFoundException entryPointNotFoundException)
            {
                throw new InvalidOperationException(StringResources.AdsiNotInstalled);
            }
            return(num);
        }