Replace api-ms-win-core-job-12-1-0.dll with Kernell32.dll (#10417)

This commit is contained in:
Ilya authored and Aditya Patwardhan committed 2019-09-03 14:25:17 -07:00
1 parent 27c48a7563
commit bbd54c317e
1 file changed
+3 -3
@@ -2761,7 +2761,7 @@ namespace Microsoft.PowerShell.Commands
/// If the object existed before the function call, the function
/// returns a handle to the existing job object.
/// </returns>
[DllImport(PinvokeDllNames.CreateJobObjectDllName, CharSet = CharSet.Unicode)]
[DllImport("Kernel32.dll", CharSet = CharSet.Unicode)]
internal static extern IntPtr CreateJobObject(IntPtr lpJobAttributes, string lpName);
/// <summary>
@@ -2776,7 +2776,7 @@ namespace Microsoft.PowerShell.Commands
/// <returns>If the function succeeds, the return value is nonzero.
/// If the function fails, the return value is zero.
/// </returns>
[DllImport(PinvokeDllNames.AssignProcessToJobObjectDllName, CharSet = CharSet.Unicode)]
[DllImport("Kernel32.dll", CharSet = CharSet.Unicode)]
[return: MarshalAs(UnmanagedType.Bool)]
internal static extern bool AssignProcessToJobObject(SafeHandle hJob, IntPtr hProcess);
@@ -2802,7 +2802,7 @@ namespace Microsoft.PowerShell.Commands
/// <returns>If the function succeeds, the return value is nonzero.
/// If the function fails, the return value is zero.
/// </returns>
[DllImport(PinvokeDllNames.QueryInformationJobObjectDllName, EntryPoint = "QueryInformationJobObject", SetLastError = true, CharSet = CharSet.Unicode)]
[DllImport("Kernel32.dll", EntryPoint = "QueryInformationJobObject", SetLastError = true, CharSet = CharSet.Unicode)]
public static extern bool QueryInformationJobObject(SafeHandle hJob, int JobObjectInfoClass,
ref JOBOBJECT_BASIC_PROCESS_ID_LIST lpJobObjectInfo,
int cbJobObjectLength, IntPtr lpReturnLength);