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