VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Simple program to extract an icon from any file

Mohannad Sulaiman Abu Sall  (4 Submissions)   Graphics   VB 6.0   Unknown Difficulty   Sat 21st September 2002   Mon 8th February 2021

Simple program to extract an icon from any file

API Declarations



Private Const MAX_PATH = 260

Private Type SHFILEINFO
hIcon As Long ' out: icon
iIcon As Long ' out: icon index
dwAttributes As Long ' out: SFGAO_ flags
szDisplayName As String * MAX_PATH ' out: display name (or path)
szTypeName As String * 80 ' out: type name
End Type

Private Const SHGFI_ICON = &H100
Private Const SHGFI_LARGEICON = &H0
Private Const SHGFI_SMALLICON = &H1


Private Declare Function DrawIcon Lib "user32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal hIcon As Long) As Long
Private Declare Function SHGetFileInfo Lib "shell32.dll" Alias "SHGetFileInfoA" (ByVal pszPath As String, ByVal dwFileAttributes As Long, psfi As SHFILEINFO, ByVal cbFileInfo As Long, ByVal uFlags As Long) As Long

Dim Fico As SHFILEINFO


Rate Simple program to extract an icon from any file (1(1 Vote))
Simple program to extract an icon from any file.bas

Simple program to extract an icon from any file Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters