19 references to NativeMethods
Microsoft.Build.Tasks.Core (19)
ManifestUtil\ComImporter.cs (3)
48if (NativeMethods.SfcIsFileProtected(IntPtr.Zero, path) != 0) 54try { NativeMethods.LoadTypeLibEx(path, NativeMethods.RegKind.RegKind_None, out obj); }
ManifestUtil\EmbeddedManifestReader.cs (11)
23hModule = NativeMethods.LoadLibraryExW(path, IntPtr.Zero, NativeMethods.LOAD_LIBRARY_AS_DATAFILE); 28NativeMethods.EnumResNameProc callback = EnumResNameCallback; 29NativeMethods.EnumResourceNames(hModule, NativeMethods.RT_MANIFEST, callback, IntPtr.Zero); 35NativeMethods.FreeLibrary(hModule); 46IntPtr hResInfo = NativeMethods.FindResource(hModule, pName, NativeMethods.RT_MANIFEST); 51IntPtr hResource = NativeMethods.LoadResource(hModule, hResInfo); 52NativeMethods.LockResource(hResource); 53uint bufsize = NativeMethods.SizeofResource(hModule, hResInfo);
ManifestUtil\SecurityUtil.cs (5)
727NativeMethods.SetDllDirectoryW(clrDllDir); 728hModule = NativeMethods.LoadLibraryExW(Path.Combine(clrDllDir, "clr.dll"), IntPtr.Zero, NativeMethods.LOAD_LIBRARY_AS_DATAFILE); 756NativeMethods.FreeLibrary(hModule); 759NativeMethods.SetDllDirectoryW(null);