SetupGetIntField  163.HEJ 

[New - Windows NT]

The SetupGetIntField function retrieves an integer value from the specified field of a line in an INF file.

BOOL SetupGetIntField(

    PINFCONTEXT Context,

// context of a line in an INF file

    DWORD FieldIndex,

// index of an integer field in the line

    PINT IntegerValue

// receives the retreived integer field

   );

 

 

Parameters

Context

Pointer to the context for a line in an INF file.

FieldIndex

The 1-based index of the field within the specified line from which the integer should be retrieved.

A FieldIndex of 0 can be used to retrieve an integer key (For example, consider the following INF line, 431 = 1, 2, 4. The value 431 would be put into the variable pointed at by IntegerValue if SetupGetIntField was called with a FieldIndex of 0).

Integer Value

Pointer to a caller-supplied variable that receives the integer. If the field is not an integer, the function fails and a call to GetLastError11C2VS7 returns ERROR_INVALID_DATA.

 

Return Values

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE. To get extended error information, call GetLastError11C2VS7.

Remarks

The integer field may start with a positive (+) or negative (-) sign. It will be interpreted as a decimal number, unless it is prefixed in the file with 0x or 0X, in which case it is hexadecimal.

See Also

SetupGetBinaryField, SetupGetMultiSzField, SetupGetStringField