Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than Interfaces, prefix the name with the module name and a period.
IExtractIcon (Interfaces)
.
C# Signature:
[ComImport()]
[Guid("000214eb-0000-0000-c000-000000000046")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IExtractIcon
{
[PreserveSig]
IntPtr GetIconLocation(uint uFlags,
[MarshalAs(UnmanagedType.LPStr)] StringBuilder szIconFile,
int cchMax,
out int piIndex,
out uint pwFlags);
[PreserveSig]
IntPtr Extract(IntPtr pszFile,
uint nIconIndex,
out IntPtr phiconLarge,
out IntPtr phiconSmall,
uint nIconSize);
}
<PreserveSig()> _
Function GetIconLocation(ByVal uFlags As Integer, _
<MarshalAs(UnmanagedType.LPStr)> _
ByRef szIconFile As StringBuilder, _
ByVal cchMax As Integer, _
ByRef piIndex As Integer, _
ByRef pwFlags As Integer) As IntPtr
Public Interface IExtractIcon
<PreserveSig()> _
Function Extract(ByVal pszFile As IntPtr, _
ByVal nIconIndex As Integer, _
ByVal phiconLarge As IntPtr, _
ByVal phiconSmall As IntPtr, _
ByVal nIconSize As Integer) As Integer
End Interface
User-Defined Types:
None.
Notes:
GetIconLocation() must be declared before Extract()! If you don't, you will get a cryptic runtime error (Read/write of protected memory).
The parameters phiconLarge and phiconSmall are out-parameters in C#!
Please edit this page!
Do you have...
helpful tips?
corrections to the existing content?
alternate definitions?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.