Службы ос windows



страница6/7
Дата12.09.2022
Размер452 Kb.
#131041
1   2   3   4   5   6   7
kontr app (5)

    Навигация по данной странице:
  • Return Values
Value

Meaning

1

pJob receives an array of JOB_INFO_1 structures

2

pJob receives an array of JOB_INFO_2 structures

3

pJob receives an array of JOB_INFO_3 structures



pJob
[out] Pointer to a buffer that receives an array of JOB_INFO_1, JOB_INFO_2, or JOB_INFO_3 structures. The buffer must be large enough to receive the array of structures and any strings or other data to which the structure members point.
To determine the required buffer size, call EnumJobs with cbBuf set to zero. EnumJobs fails, GetLastError returns ERROR_INSUFFICIENT_BUFFER, and the pcbNeeded parameter returns the size, in bytes, of the buffer required to hold the array of structures and their data.
cbBuf
[in] Specifies the size, in bytes, of the pJob buffer.
pcbNeeded
[out] Pointer to a variable that receives the number of bytes copied if the function succeeds. If the function fails, the variable receives the number of bytes required.
pcReturned
[out] Pointer to a variable that receives the number of JOB_INFO_1, JOB_INFO_2, or JOB_INFO_3 structures returned in the pJob buffer.
        1. Return Values


If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
        1. Remarks


The

Поделитесь с Вашими друзьями:
1   2   3   4   5   6   7




База данных защищена авторским правом ©vossta.ru 2022
обратиться к администрации

    Главная страница