VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Converts a normal folder in to a system folder. Replaces the standard icon for a folder by the icon

Mat  (1 Submission)   Windows System Services   VB 6.0   Unknown Difficulty   Wed 17th December 2003   Mon 8th February 2021

Converts a normal folder in to a system folder. Replaces the standard icon for a folder by the icon of your choice. Replaces the white

API Declarations


Private Declare Function PathMakeSystemFolder Lib "shlwapi.dll" Alias "PathMakeSystemFolderA" (ByVal pszPath As String) As Long
Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long
Private Declare Function SHBrowseForFolder Lib "shell32.dll" Alias "SHBrowseForFolderA" (lpBrowseInfo As BROWSEINFO) As Long
Private Declare Function SHGetPathFromIDList Lib "shell32.dll" Alias "SHGetPathFromIDListA" (ByVal pidl As Long, ByVal pszPath As String) As Long

Private Const BIF_RETURNONLYFSDIRS = &H1
Private Type SHITEMID 'mkid
cb As Long
abID() As Byte
End Type
Private Type ITEMIDLIST 'idl
mkid As SHITEMID
End Type

Private Type BROWSEINFO 'bi
hOwner As Long
pidlRoot As Long
pszDisplayName As String
lpszTitle As String
ulFlags As Long
lpfn As Long
lParam As Long
iImage As Long
End Type
Private Type OPENFILENAME
lStructSize As Long
hwndOwner As Long
hInstance As Long
lpstrFilter As String
lpstrCustomFilter As String
nMaxCustFilter As Long
nFilterIndex As Long
lpstrFile As String
nMaxFile As Long
lpstrFileTitle As String
nMaxFileTitle As Long
lpstrInitialDir As String
lpstrTitle As String
flags As Long
nFileOffset As Integer
nFileExtension As Integer
lpstrDefExt As String
lCustData As Long
lpfnHook As Long
lpTemplateName As String
End Type

Rate Converts a normal folder in to a system folder. Replaces the standard icon for a folder by the icon (1(1 Vote))
Converts a normal folder in to a system folder. Replaces the standard icon for a folder by the icon.bas

Converts a normal folder in to a system folder. Replaces the standard icon for a folder by the icon Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters