84 references to UnsafeNativeMethods
System.DirectoryServices.AccountManagement (84)
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (6)
130UnsafeNativeMethods.Pathname pathCracker = new UnsafeNativeMethods.Pathname(); 131UnsafeNativeMethods.IADsPathname pathName = (UnsafeNativeMethods.IADsPathname)pathCracker; 191de.Invoke("SetOption", new object[]{UnsafeNativeMethods.ADS_OPTION_ENUM.ADS_OPTION_PASSWORD_METHOD, 192UnsafeNativeMethods.ADS_PASSWORD_ENCODING_ENUM.ADS_PASSWORD_ENCODE_CLEAR});
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (4)
1271private UnsafeNativeMethods.IADsPathname _pathCracker; 1340UnsafeNativeMethods.Pathname pathNameObj = new UnsafeNativeMethods.Pathname(); 1341_pathCracker = (UnsafeNativeMethods.IADsPathname)pathNameObj;
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (11)
853ulong lockoutTime = (ulong)ADUtils.LargeIntToInt64((UnsafeNativeMethods.IADsLargeInteger)de.Properties["lockoutTime"][0]); 2096UnsafeNativeMethods.IAdsObjectOptions objOptions = (UnsafeNativeMethods.IAdsObjectOptions)this.ctxBase.NativeObject; 2208UnsafeNativeMethods.IAdsObjectOptions objOptions = (UnsafeNativeMethods.IAdsObjectOptions)this.ctxBase.NativeObject; 2482UnsafeNativeMethods.DomainControllerInfo info = Utils.GetDcName(null, dnsDomainName, null, flags); 2527long negativeLockoutDuration = ADUtils.LargeIntToInt64((UnsafeNativeMethods.IADsLargeInteger)domainNC.Properties["lockoutDuration"][0]); 2538UnsafeNativeMethods.Pathname pathCracker = new UnsafeNativeMethods.Pathname(); 2539UnsafeNativeMethods.IADsPathname pathName = (UnsafeNativeMethods.IADsPathname)pathCracker;
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (9)
337UnsafeNativeMethods.Pathname pathNameObj = new UnsafeNativeMethods.Pathname(); 338UnsafeNativeMethods.IADsPathname pathCracker = (UnsafeNativeMethods.IADsPathname)pathNameObj; 1000filetime = ADUtils.LargeIntToInt64((UnsafeNativeMethods.IADsLargeInteger)values[0]); 1295UnsafeNativeMethods.ADsLargeInteger largeIntObj = new UnsafeNativeMethods.ADsLargeInteger(); 1296UnsafeNativeMethods.IADsLargeInteger largeInt = (UnsafeNativeMethods.IADsLargeInteger)largeIntObj;
System\DirectoryServices\AccountManagement\AD\ADUtils.cs (4)
35UnsafeNativeMethods.IAdsObjectOptions objOptions = (UnsafeNativeMethods.IAdsObjectOptions)de.NativeObject; 315internal static long LargeIntToInt64(UnsafeNativeMethods.IADsLargeInteger largeInt) 506foreach (UnsafeNativeMethods.IADsDNWithBinary value in wellKnownObjectValues)
System\DirectoryServices\AccountManagement\AD\SDSCache.cs (1)
72UnsafeNativeMethods.DomainControllerInfo info = Utils.GetDcName(null, contextName, null, flags);
System\DirectoryServices\AccountManagement\AD\TokenGroupsSet.cs (4)
143UnsafeNativeMethods.Pathname pathCracker = new UnsafeNativeMethods.Pathname(); 144UnsafeNativeMethods.IADsPathname pathName = (UnsafeNativeMethods.IADsPathname)pathCracker;
System\DirectoryServices\AccountManagement\Context.cs (3)
109int hr = UnsafeNativeMethods.ADsOpenObject(adsPath, userName, password, (int)authenticationType, ref g, out value); 125unmanagedResult = ((UnsafeNativeMethods.IADs)value).Get("name"); 848foreach (UnsafeNativeMethods.IADsDNWithBinary value in wellKnownObjectValues)
System\DirectoryServices\AccountManagement\SAM\SAMGroupsSet.cs (3)
16internal SAMGroupsSet(UnsafeNativeMethods.IADsMembers iADsMembers, SAMStoreCtx storeCtx, DirectoryEntry ctxBase) 55UnsafeNativeMethods.IADs nativeMember = (UnsafeNativeMethods.IADs)_groupsEnumerator.Current;
System\DirectoryServices\AccountManagement\SAM\SAMMembersSet.cs (15)
17internal SAMMembersSet(string groupPath, UnsafeNativeMethods.IADsGroup group, bool recursive, SAMStoreCtx storeCtx, DirectoryEntry ctxBase) 34UnsafeNativeMethods.IADsMembers iADsMembers = group.Members(); 107UnsafeNativeMethods.IADs nativeMember = (UnsafeNativeMethods.IADs)_membersEnumerator.Current; 139UnsafeNativeMethods.Pathname pathCracker = new UnsafeNativeMethods.Pathname(); 140UnsafeNativeMethods.IADsPathname pathName = (UnsafeNativeMethods.IADsPathname)pathCracker; 248_group = (UnsafeNativeMethods.IADsGroup)de.NativeObject; 250UnsafeNativeMethods.IADsMembers iADsMembers = _group.Members(); 454UnsafeNativeMethods.IADsMembers iADsMembers = _group.Members(); 491UnsafeNativeMethods.IADsMembers iADsMembers = _group.Members(); 582private UnsafeNativeMethods.IADsGroup _group; // the group whose membership we're currently enumerating over 583private readonly UnsafeNativeMethods.IADsGroup _originalGroup; // the group whose membership we started off with (before recursing) 599public UnsafeNativeMethods.IADsGroup group;
System\DirectoryServices\AccountManagement\SAM\SAMQuerySet.cs (4)
828UnsafeNativeMethods.IADsGroup iADsGroup = (UnsafeNativeMethods.IADsGroup)groupDE.NativeObject; 829UnsafeNativeMethods.IADsMembers iADsMembers = iADsGroup.Members(); 831foreach (UnsafeNativeMethods.IADs nativeMember in ((IEnumerable)iADsMembers))
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (6)
628UnsafeNativeMethods.IADsMembers iadsMembers = (UnsafeNativeMethods.IADsMembers)userDE.Invoke("Groups"); 764UnsafeNativeMethods.IADsGroup iADsGroup = (UnsafeNativeMethods.IADsGroup)groupDE.NativeObject; 1056UnsafeNativeMethods.WKSTA_INFO_100 wkstaInfo = 1057Marshal.PtrToStructure<UnsafeNativeMethods.WKSTA_INFO_100>(buffer);
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_LoadStore.cs (5)
1012UnsafeNativeMethods.IADsGroup iADsGroup = (UnsafeNativeMethods.IADsGroup)de.NativeObject; 1028UnsafeNativeMethods.IADsMembers iADsMembers = iADsGroup.Members(); 1041UnsafeNativeMethods.IADs iADs = (UnsafeNativeMethods.IADs)nativeMembers[0];
System\DirectoryServices\AccountManagement\Utils.cs (9)
504UnsafeNativeMethods.POLICY_ACCOUNT_DOMAIN_INFO info = *(UnsafeNativeMethods.POLICY_ACCOUNT_DOMAIN_INFO*)pBuffer; 558internal static UnsafeNativeMethods.DomainControllerInfo GetDcName(string computerName, string domainName, string siteName, int flags) 576UnsafeNativeMethods.DomainControllerInfo domainControllerInfo = 577Marshal.PtrToStructure<UnsafeNativeMethods.DomainControllerInfo>(domainControllerInfoPtr); 808UnsafeNativeMethods.DSROLE_PRIMARY_DOMAIN_INFO_BASIC dsRolePrimaryDomainInfo = 809Marshal.PtrToStructure<UnsafeNativeMethods.DSROLE_PRIMARY_DOMAIN_INFO_BASIC>(dsRoleInfoPtr); 811return (dsRolePrimaryDomainInfo.MachineRole == UnsafeNativeMethods.DSROLE_MACHINE_ROLE.DsRole_RoleBackupDomainController || 812dsRolePrimaryDomainInfo.MachineRole == UnsafeNativeMethods.DSROLE_MACHINE_ROLE.DsRole_RolePrimaryDomainController);