###User Defined Function###
_WinAPI_LookupIconIdFromDirectoryEx

###Description###
Searches through icon or cursor data for the icon or cursor that best fits the current display device.

###Syntax###
#include <WinAPIRes.au3>
_WinAPI_LookupIconIdFromDirectoryEx ( $pData [, $fIcon = 1 [, $xDesired = 0 [, $yDesired = 0 [, $iFlags = 0]]]] )


###Parameters###
@@ParamTable@@
$pData
	The icon or cursor directory data. Because this function does not validate the resource data, it
	causes a general protection (GP) fault or returns an undefined value if presbits is not pointing
	to validresource data.
$fIcon
	[optional] Specifies whether an icon or a cursor is sought, valid values:
	True     - The function is searching for an icon (Default).
	False    - The function is searching for a cursor.
$xDesired
	[optional] The desired width, in pixels, of the icon or cursor. If this parameter is zero (Default), the function uses the
	system metric value.
$yDesired
	[optional] The desired height, in pixels, of the icon or cursor. If this parameter is zero (Default), the function uses the
	system metric value.
$iFlags
	[optional] This parameter can be one or more of the following values.
	$LR_DEFAULTCOLOR (Default)
	$LR_MONOCHROME
@@End@@

###ReturnValue###
@@ReturnTable@@
Success 	An integer resource identifier for the icon or cursor that best fits the current display device.
Failure 	0, call <a href="_WinAPI_GetLastError.htm">_WinAPI_GetLastError()</a> to get extended error information.
@@End@@


###Remarks###
The icon directory is loaded from a resource file with resource type $RT_GROUP_ICON (or $RT_GROUP_CURSOR),
and an integer resource name for the specific icon to be loaded. _WinAPI_LookupIconIdFromDirectoryEx() returns
an integer identifier that is the resource name of the icon that best fits the current display device.


###Related###


###See Also###
@@MsdnLink@@ LookupIconIdFromDirectoryEx


###Example###
@@IncludeExample@@
