LlStgsysSetJob

Syntax:

INT LlStgsysSetJob (HLLSTG hStg, INT nJob);

Task:

Sets the job index for the following API calls

Parameter:

hStg: The handle returned by LlStgsysStorageOpen()

nJob: Job index (1..LlStgsysGetJobCount())

Return value:

Error code

Hints:

The following API calls that return job-dependent data will use this job index to return the corresponding values.

Example:

// calculates the total amount of pages
int nPages = 0;
INT nJob;
for (nJob = 1; nJob<LlStgsysGetJobCount(hStg); ++ nJob)
{
   LlStgsysSetJob(hStg, nJob);
   nPages + = LlStgsysGetPageCount(hStg);
}

See also:

LlStgsysGetJobCount