# Function Reference

# _WinAPI_DrawIcon

Draws an icon or cursor into the specified device context

#include <WinAPIGdiDC.au3>
_WinAPI_DrawIcon ( $hDC, $iX, $iY, $hIcon )

## Parameters

$hDC | Handle to the device context into which the icon or cursor is drawn
$iX | X coordinate of the upper-left corner of the icon
$iY | Y coordinate of the upper-left corner of the icon
$hIcon | Handle to the icon to be drawn

## Return Value

Success: | True
Failure: | False, call _WinAPI_GetLastError() to get extended error information

## Related

_WinAPI_DrawIconEx

## See Also

Search DrawIcon in MSDN Library.