Troubleshooting GetThisJobID
Verify that the IsProductLaunchedInYourEnvironment
function returns true
when running in the scheduler environment.
Verify that the job ID is a valid ASCII string.
If the buffer
argument is NULL, verify that the required
length of the buffer is stored in the location to which the length
argument points and true
is returned. The required buffer length must include
space for the string null terminator.
If the buffer
argument is not NULL and the value
to which the length
argument points (the buffer length) is large enough
to contain the job ID, including the terminal null byte, verify that the job
ID is copied to the buffer and true
is returned.