 |
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: |
 |
|
|
 |
 |
| 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2008-12-18 17:40:58 | | Modified: | 2008-12-18 17:45:46 | Visited in last 7 days: 24 |