<DllImport("shell32.dll", CharSet:=CharSet.Auto)> _
Function ExtractIconEx(ByVal szFileName As String, _
ByVal nIconIndex As Integer, _
ByVal phiconLarge As IntPtr, _
ByVal phiconSmall As IntPtr, _
ByVal nIcons As UInteger) As UInteger
End Function
VB Signature:
Declare Function ExtractIconEx _
Lib "shell32.dll" _
Alias "ExtractIconExA" _
(ByVal lpszFile As String, _
ByVal nIconIndex As Integer, _
ByRef phiconLarge As Integer, _
ByRef phiconSmall As Integer, _
ByVal nIcons As Long) As Integer
User-Defined Types:
None.
Notes:
None.
Tips & Tricks:
Please add some!
Sample Code:
namespace Martin.Hyldahl.Examples.ExtractIconEx
{
/*
* Example using ExtractIconEx
* Created by Martin Hyldahl (alanadin@post8.tele.dk)
* http://www.hyldahlnet.dk
*/
using System;
using System.Drawing;
using System.Runtime.InteropServices;
/// <summary>
/// Example using ExtractIconEx
/// </summary>
public class ExtractIconExample
{
/* CONSTRUCTORS */
static ExtractIconExample()
{
}
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" in the upper right corner and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).
Profile your .NET code
Boost the performance of your application with ANTS Profiler
This download also contains the FREE PInvoke.net Visual Studio Add-in