Using Win32 functions in Visual FoxPro Image Gallery
Setup API functions
..msdn
SetupCloseInfFile
SetupDiDestroyClassImageList
SetupDiGetClassImageIndex
SetupDiGetClassImageListEx
SetupGetInfFileList
SetupGetInfInformation
SetupOpenInfFile
Code examples:
Listing INF files in a specified directory
SetupGetInfFileList
..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
Declaration:
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
Parameters:
DirectoryPath
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.

InfStyle
Specifies the style of INF file to search for.

ReturnBuffer
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.

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

RequiredSize
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  
FreeTranslation.com 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: 14
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.167.250.64)
2 sec.Function: 'UnloadUserProfile'
5 sec.Function: 'LoadResource'
7 sec.Function: 'GlobalSize'
9 sec.Function: 'FillConsoleOutputCharacter'
12 sec.Function: 'CreateCompatibleBitmap'
14 sec.Function: 'FindClose'
17 sec.Function: 'waveInStop'
19 sec.Function: 'SystemTimeToFileTime'
22 sec.Function: 'WSAGetLastError'
24 sec.Function: 'CeCreateFile'
Google
Advertise here!