<DllImport("kernel32.dll", CharSet := CharSet.Unicode)> _
Private Shared Function CreateJobObject(lpJobAttributes As SECURITY_ATTRIBUTES, lpName As String) As IntPtr
End Function
The [SECURITY_ATTRIBUTES] structure contains the security descriptor for an object and specifies whether the handle retrieved by specifying this structure is inheritable. This structure provides security settings for objects created by various functions, such as Kernel32.CreateFile, Kernel32.CreatePipe, Kernel32.CreateProcess, or Advapi32.RegCreateKeyEx.