Using Win32 functions in Visual FoxPro Image Gallery
Setup API functions
Code examples:
Listing INF files in a specified directory
..msdn    Add comment     W32 Constants      Translate this page
The SetupOpenInfFile function opens an INF file and returns a handle to it.
Code examples:
Listing INF files in a specified directory
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
Points to a null-terminated string containing the name (and optional path) of the INF file to be opened.

An optional parameter that points to a null-terminated string containing the class of INF file desired.

Specifies the style of INF file to open.

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:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2001-10-24 20:06:02
Modified: 2001-11-26 16:03:47
Visited in last 7 days: 37
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
18 sec.Function: 'getprotobyname'
36 sec.Function: 'GdipCreateHICONFromBitmap'
54 sec.Function: 'RegQueryValueEx'
1.2 min.Function: 'GetPrivateProfileString'
1.48 min.Function: 'CryptEncrypt'
1.8 min.Function: 'GdipCreateMatrix'
2.08 min.Function: 'GetClassInfo'
2.38 min.Function: 'DefWindowProc'
2.68 min.Function: 'GetFileInformationByHandle'
2.97 min.Function: 'NetFileEnum'
Advertise here!