This document is archived and information here might be outdated. Recommended version. |
Lock current job. An existing lock will cause failure.
[Visual Basic .NET]
Public Function LockJob ( _
) As Boolean
[C#]
public bool LockJob (
);
[C++]
HRESULT LockJob(
void
);
Enters the MachineName and ProcessID values into the Jobs table.
This method is usually the next call after setting the LockingJob. If the method returns FALSE, then the lock is already held by another machine or process id.