 |
SetupOpenInfFile ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The SetupOpenInfFile function opens an INF file and returns a handle to it. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
HINF SetupOpenInfFile(
PCTSTR FileName, // name of the INF to open
PCTSTR InfClass, // optional, the class of the INF file
DWORD InfStyle, // specifies the style of the INF file
PUINT ErrorLine // optional, receives error information
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER SetupOpenInfFile IN setupapi;
STRING FileName,;
INTEGER InfClass,;
INTEGER InfStyle,;
INTEGER @ ErrorLine
|
 |
 |
 |
| Parameters: |
 |
FileName
Points to a null-terminated string containing the name (and optional path) of the INF file to be opened.
InfClass
An optional parameter that points to a null-terminated string containing the class of INF file desired.
InfStyle
Specifies the style of INF file to open.
ErrorLine
An optional parameter that points to a caller-supplied variable to which this function returns the (1-based) line number where an error occurred during loading of the INF file. |
 |
 |
| Return value: |
 |
| The function returns a handle to the opened INF file if it is successful. Otherwise, the return value is INVALID_HANDLE_VALUE (-1). |
 |
 |
| My comment: |
 |
| See SetupCloseInfFile. |
 |
 |
| Word Index links for the SetupOpenInfFile : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-10-24 20:06:02 | | Modified: | 2001-11-26 16:03:47 | Visited in last 7 days: 15 |