createjobobject (kernel32)
Last changed: Darin@Live.com-167.136.142.40

.
Summary

C# Signature:

[DllImport("kernel32.dll", CharSet=CharSet.Unicode)]
static extern IntPtr CreateJobObject([In] ref SECURITY_ATTRIBUTES
   lpJobAttributes, string lpName);

VB Signature:

<DllImport("kernel32.dll", CharSet := CharSet.Unicode)> _
Private Shared Function CreateJobObject(lpJobAttributes As SECURITY_ATTRIBUTES, lpName As String) As IntPtr
End Function

User-Defined Types:

SECURITY_ATTRIBUTES

Notes:

Creates or opens a process job object.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

VB Sample Code:

    Dim j_handle As IntPtr
    'Create new Job
    j_handle = CreateJobObject(Nothing, Nothing)

Alternative Managed API:

Do you know one? Please contribute it!

Documentation