TJwOnNewJobObject = procedure (Sender : TJwJobObjectSessionList; ProcessHandle : TJwProcessHandle; ProcessSessionID, CurrentSessionID : TJwSessionId; var NewJobObject : TJwJobObject) of object;
|
Parameters |
Description |
|
Sender |
defines the job object list instance that calls this event |
|
ProcessHandle |
defines the process to be assigned to the job |
|
ProcessSessionID |
defines the session id that the given process belongs to |
|
CurrentSessionID |
defines a session index. The event method can be called several times for one call of AssignProcessToJob. This happens when the job list contains a lot less job objects than the process session ID. E.g. if the job object list contains no jobs (Count = 0) and a job with session ID 2 is to be assigned, the event method is called 3 times (session 0,1,2) and the process is assigned to the job object with index 2. |
|
NewJobObject |
receives a valid instance of a job object. Must not be nil; otherwise AssignProcessToJob will fail. |
TJwOnNewJobObject is called by TJwJobObjectSessionList.AssignProcessToJob for every new job object that mus be created. The callback event must create a new job object and return it through parameter NewJobObject. The return value must not be nil. The new job object does not need to have a name.
|
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc. |
|
What do you think about this topic? Send feedback!
|