The following error codes are specific to the Setup API.
| INF Parsing Errors | Description |
|---|---|
| ERROR_EXPECTED_SECTION_NAME | A section name was expected, and not found. |
| ERROR_BAD_SECTION_NAME_LINE | The section name was not of the correct format. (For example, a name not terminated by a right-hand bracket ( ] ). |
| ERROR_SECTION_NAME_TOO_LONG | The section name exceeded the maximum length of MAX_SECT_NAME_LEN. |
| ERROR_GENERAL_SYNTAX | The general syntax is incorrect. |
| INF Runtime Errors | Description |
|---|---|
| ERROR_WRONG_INF_STYLE | The INF is not of the type specified in the function call. (This error will also be returned if an Windows NT 3.x INF file is passed into SetupOpenAppendInfFile). |
| ERROR_SECTION_NOT_FOUND | The section was not found in the INF file. |
| ERROR_LINE_NOT_FOUND | The line was not found in the INF section. |