mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Replace api-ms-win-core-job-12-1-0.dll with Kernell32.dll (#10417)
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user