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
Returns a list of INF files located in a caller-specified directory to a call-supplied buffer.
Code examples:
Listing INF files in a specified directory
BOOL SetupGetInfFileList(
  PCTSTR DirectoryPath,    // optional, the directory path
  DWORD InfStyle,          // style of the INF file
  PTSTR ReturnBuffer,      // optional, receives the file list
  DWORD ReturnBufferSize,  // size of the supplied buffer
  PDWORD RequiredSize      // optional, buffer size needed
FoxPro declaration:
DECLARE INTEGER SetupGetInfFileList IN setupapi;
    STRING    DirectoryPath,;
    INTEGER   InfStyle,;
    STRING  @ ReturnBuffer,;
    INTEGER   ReturnBufferSize,;
    INTEGER @ RequiredSize
An optional parameter that points to a null-terminated string containing the path of the directory in which to search. If this value is NULL, the %windir%\inf directory is used.

Specifies the style of INF file to search for.

If not NULL, points to a caller-supplied buffer in which this function returns the list of all INF files of the desired style(s) that were found in the specified subdirectory.

Specifies the size of the buffer pointed to by the ReturnBuffer parameter.

If not NULL, points to a caller-supplied variable in which this function returns the required size for the buffer pointed to by the ReturnBuffer parameter.
Return value:
If the function succeeds, the return value is a non-zero value. If the function fails, the return value is zero.
My comment:
Under WinMe this function returns -- to my experience -- only a small part of INF files existing in a directory.
Word Index links for the SetupGetInfFileList :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2001-10-24 20:00:31
Modified: 2001-11-26 16:03:47
Visited in last 7 days: 38
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 (
23 sec.Function: 'OpenFile'
Function group: 'File Management'
43 sec.Function: 'waveOutGetPosition'
Function group: 'Windows Multimedia'
1.03 min.Function: 'CeRegDeleteKey'
Function group: 'Remote Application Programming (RAPI)'
1.38 min.Function: 'CreateDesktop'
1.68 min.Function: 'GetRTTAndHopCount'
2.02 min.Function: 'FileIconInit'
2.3 min.Example: 'How to play AVI file on the _screen'
2.67 min.Function: 'CreateProcessWithLogonW'
Function group: 'Process and Thread'
2.98 min.Function: 'mmioOpen'
Function group: 'Windows Multimedia'
3.23 min.Example: 'Enumerating Processes -- WinNT'
Advertise here!