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