@@ -2761,7 +2761,7 @@ byte[] lpSecurityDescriptor
2761
2761
/// If the object existed before the function call, the function
2762
2762
/// returns a handle to the existing job object.
2763
2763
/// </returns>
2764
- [ DllImport ( PinvokeDllNames . CreateJobObjectDllName , CharSet = CharSet . Unicode ) ]
2764
+ [ DllImport ( "Kernel32.dll" , CharSet = CharSet . Unicode ) ]
2765
2765
internal static extern IntPtr CreateJobObject ( IntPtr lpJobAttributes , string lpName ) ;
2766
2766
2767
2767
/// <summary>
@@ -2776,7 +2776,7 @@ byte[] lpSecurityDescriptor
2776
2776
/// <returns>If the function succeeds, the return value is nonzero.
2777
2777
/// If the function fails, the return value is zero.
2778
2778
/// </returns>
2779
- [ DllImport ( PinvokeDllNames . AssignProcessToJobObjectDllName , CharSet = CharSet . Unicode ) ]
2779
+ [ DllImport ( "Kernel32.dll" , CharSet = CharSet . Unicode ) ]
2780
2780
[ return : MarshalAs ( UnmanagedType . Bool ) ]
2781
2781
internal static extern bool AssignProcessToJobObject ( SafeHandle hJob , IntPtr hProcess ) ;
2782
2782
@@ -2802,7 +2802,7 @@ byte[] lpSecurityDescriptor
2802
2802
/// <returns>If the function succeeds, the return value is nonzero.
2803
2803
/// If the function fails, the return value is zero.
2804
2804
/// </returns>
2805
- [ DllImport ( PinvokeDllNames . QueryInformationJobObjectDllName , EntryPoint = "QueryInformationJobObject" , SetLastError = true , CharSet = CharSet . Unicode ) ]
2805
+ [ DllImport ( "Kernel32.dll" , EntryPoint = "QueryInformationJobObject" , SetLastError = true , CharSet = CharSet . Unicode ) ]
2806
2806
public static extern bool QueryInformationJobObject ( SafeHandle hJob , int JobObjectInfoClass ,
2807
2807
ref JOBOBJECT_BASIC_PROCESS_ID_LIST lpJobObjectInfo ,
2808
2808
int cbJobObjectLength , IntPtr lpReturnLength ) ;
0 commit comments