25 references to NativeMethods
System.Data (25)
fx\src\data\System\Data\OleDb\OleDbEnumerator.cs (2)
46
NativeMethods
.ISourcesRowset srcrowset = null;
49
srcrowset = (
NativeMethods
.ISourcesRowset) value;
fx\src\data\System\Data\OleDb\OleDbWrapper.cs (3)
443
private
NativeMethods
.ITransactionJoin _value;
447
_value = (unknown as
NativeMethods
.ITransactionJoin);
450
internal
NativeMethods
.ITransactionJoin Value {
fx\src\data\System\Data\SqlClient\SqlConnection.cs (20)
1890
hFileMap =
NativeMethods
.OpenFileMappingA(0x4/*FILE_MAP_READ*/, false, mapFileName);
1893
IntPtr pMemMap =
NativeMethods
.MapViewOfFile(hFileMap, 0x4/*FILE_MAP_READ*/, 0, 0, IntPtr.Zero);
2355
NativeMethods
.AllocateAndInitializeSid(
2372
NativeMethods
.AllocateAndInitializeSid(
2398
+
NativeMethods
.GetLengthSid(pUserSid)
2399
+
NativeMethods
.GetLengthSid(pAdminSid);
2406
if (
NativeMethods
.InitializeAcl(pDacl, cbAcl, ACL_REVISION))
2407
if (
NativeMethods
.AddAccessDeniedAce(pDacl, ACL_REVISION, WRITE_DAC, pUserSid))
2408
if (
NativeMethods
.AddAccessAllowedAce(pDacl, ACL_REVISION, GENERIC_READ, pUserSid))
2409
if (
NativeMethods
.AddAccessAllowedAce(pDacl, ACL_REVISION, GENERIC_ALL, pAdminSid))
2410
if (
NativeMethods
.InitializeSecurityDescriptor(pSecurityDescriptor, SECURITY_DESCRIPTOR_REVISION))
2411
if (
NativeMethods
.SetSecurityDescriptorDacl(pSecurityDescriptor, true, pDacl, false)) {
2420
NativeMethods
.FreeSid(pAdminSid);
2422
NativeMethods
.FreeSid(pUserSid);
2483
hFileMap =
NativeMethods
.CreateFileMappingA(
2496
pMemMap =
NativeMethods
.MapViewOfFile(hFileMap, 0x6/*FILE_MAP_READ|FILE_MAP_WRITE*/, 0, 0, IntPtr.Zero);
2524
NativeMethods
.UnmapViewOfFile(pMemMap);
2529
NativeMethods
.CloseHandle(hFileMap);
2591
NativeMethods
.UnmapViewOfFile(pMemMap);
2595
NativeMethods
.CloseHandle(hMemMap);