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)
23
hModule =
NativeMethods
.LoadLibraryExW(path, IntPtr.Zero,
NativeMethods
.LOAD_LIBRARY_AS_DATAFILE);
28
NativeMethods
.EnumResNameProc callback = EnumResNameCallback;
29
NativeMethods
.EnumResourceNames(hModule,
NativeMethods
.RT_MANIFEST, callback, IntPtr.Zero);
35
NativeMethods
.FreeLibrary(hModule);
46
IntPtr hResInfo =
NativeMethods
.FindResource(hModule, pName,
NativeMethods
.RT_MANIFEST);
51
IntPtr hResource =
NativeMethods
.LoadResource(hModule, hResInfo);
52
NativeMethods
.LockResource(hResource);
53
uint bufsize =
NativeMethods
.SizeofResource(hModule, hResInfo);
ManifestUtil\SecurityUtil.cs (5)
727
NativeMethods
.SetDllDirectoryW(clrDllDir);
728
hModule =
NativeMethods
.LoadLibraryExW(Path.Combine(clrDllDir, "clr.dll"), IntPtr.Zero,
NativeMethods
.LOAD_LIBRARY_AS_DATAFILE);
756
NativeMethods
.FreeLibrary(hModule);
759
NativeMethods
.SetDllDirectoryW(null);