Problem PInvoking SHLoadImageResource
Hi, I posted in the wrong initially so thats why i've had to post this again
i have the following declaration to PInvoke the SHLoadImageResource
function
<DllImport("coredll.dll")> _
Public Shared Function LoadLibrary( _
ByVal lpLibFileName As String _
) As IntPtr
End Function
<DllImport("aygshell.dll")> _
Public Shared Function SHLoadImageResource( _
ByVal hinst As IntPtr _
, ByVal uIdImageFile As Integer _
) As IntPtr
End Function
I try and use in my code but i'm getting a SystemMethodException, do i need
to use EntryPoint with the ordinal number. If so what is the ordinal number
for SHLoadImageResource in aygshell.dll
Dim hInst As IntPtr = LoadLibrary("Resource.dll")
Dim hImg As IntPtr = SHLoadImageResource(hInst, IDR_PNG1) <-- Missing
method Exception here
I have checked that aygshell.dll is in the Windows directory
Date:Mon, 30 Jul 2007 13:49:07 +0100
Author:
|