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
SetupOpenInfFile
..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
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com 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: 23
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.90.207.75)
16 sec.Function: 'GdipGetDpiY'
32 sec.Function: 'ClosePrinter'
50 sec.Function: 'ImageList_GetIconSize'
1.1 min.Function: 'InternetOpen'
1.37 min.Function: 'SHGetSpecialFolderLocation'
1.65 min.Function: 'GdiFlush'
1.92 min.Function: 'GetFileSize'
2.2 min.Function: 'AttachVirtualDisk'
2.47 min.Function: 'AVIStreamStart'
2.75 min.Function: 'CloseWindow'
Google
Advertise here!