This is a c++ code of an API FUNCTION. Can anybody translate in VB format. Actually I am worried about parameters conversion also about handle. How can i pass handle of application.
note : function is used to retrieve reference/handle to an icon.
Declaration starts here
------------------------
HICON ExtractIcon(
HINSTANCE hInst, // instance handle
LPCTSTR lpszExeFileName, // file name
UINT nIconIndex // icon index
);
Parameters details
------------------
hInst
[in] Handle to the instance of the application calling the function.
lpszExeFileName
[in] Pointer to a null-terminated string specifying the name of an executable file, DLL, or icon file.
nIconIndex
[in] Specifies the zero-based index of the icon to retrieve. For example, if this value is 0, the function returns a handle to the first icon in the specified file.