Using Win32 functions in Visual FoxPro Image Gallery
Setup API functions
..msdn
SetupCloseInfFile
SetupDiDestroyClassImageList
SetupDiGetClassImageIndex
SetupDiGetClassImageListEx
SetupGetInfFileList
SetupGetInfInformation
SetupOpenInfFile
Code examples:
Enumerating devices installed on the local machine
How to view system icons for the classes installed on the local machine
SetupDiGetClassImageListEx
..msdn    Add comment     W32 Constants      Translate this page
Builds an image list of bitmaps for every class installed on a local or remote system.
Code examples:
Enumerating devices installed on the local machine
How to view system icons for the classes installed on the local machine
Declaration:
WINSETUPAPI BOOL WINAPI
    SetupDiGetClassImageListEx(
    OUT PSP_CLASSIMAGELIST_DATA ClassImageListData,
    IN PCTSTR MachineName,
    OPTIONAL IN PVOID  Reserved
);
FoxPro declaration:
DECLARE INTEGER SetupDiGetClassImageListEx IN setupapi;
    STRING @ClassImageListData,;
    STRING MachineName,;
    INTEGER Reserved
Parameters:
ClassImageListData
A pointer to an SP_CLASSIMAGELIST_DATA structure to receive information regarding the class image list, including a handle to the image list.

MachineName
A pointer to NULL-terminated string that supplies the name of a remote system for whose classes SetupDiGetClassImageListEx must build the bitmap.

Reserved
Must be NULL.
Return value:
The function returns TRUE if it is successful.
Usage:
#DEFINE IMAGELISTDATA_SIZE 12

cClassImageListData = PADR(CHR(IMAGELISTDATA_SIZE),;
    IMAGELISTDATA_SIZE, CHR(0))

= SetupDiGetClassImageListEx(;
    @cClassImageListData, NULL, 0)  && local machine
My comment:
The cbSize field of the SP_CLASSIMAGELIST_DATA structure must be initialized with the size of the structure, in bytes, before calling this function or it will fail.

The image list built by this function should be destroyed by calling SetupDiDestroyClassImageList.
Word Index links for the SetupDiGetClassImageListEx :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-12-18 17:40:58
Modified: 2008-12-18 17:45:46
Visited in last 7 days: 18
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.92.141.211)
5 sec.Function: 'InternetTimeToSystemTime'
10 sec.Function: 'FillMemory'
15 sec.Function: 'setsockopt'
21 sec.Function: 'GetOEMCP'
26 sec.Function: 'PathSearchAndQualify'
31 sec.Function: 'SetConsoleCursorPosition'
38 sec.Function: 'GetDoubleClickTime'
44 sec.Function: 'GdipCreateFontFamilyFromName'
50 sec.Function: 'UrlEscape'
55 sec.Function: 'GetAsyncKeyState'
Google
Advertise here!