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