'NOT DISCLAIMS ARE ACCEPTED USING OTHER CONFIGURATIONS OR DIFFERENT SERVERS
'YOU CAN ADAPT ALL CODE TO WORK ON OTHER SERVERS
'TODO:
'MUCH MORE....
Private Type SHITEMID
cb As Long
abID As Byte
End Type
Private Type ITEMIDLIST
mkid As SHITEMID
End Type
Private Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" (ByVal hwndOwner As Long, ByVal nFolder As Long, pidl As ITEMIDLIST) As Long
Private Declare Function SHGetPathFromIDList Lib "shell32.dll" Alias "SHGetPathFromIDListA" (ByVal pidl As Long, ByVal pszPath As String) As Long
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Type tagInitCommonControlsEx
lngSize As Long
lngICC As Long
End Type
Private Declare Function InitCommonControlsEx Lib "comctl32.dll" (iccex As tagInitCommonControlsEx) As Boolean
Private Const ICC_USEREX_CLASSES = &H200
Private Declare Function GetClassLong Lib "user32" Alias "GetClassLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetClassLong Lib "user32" Alias "SetClassLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Const CS_DROPSHADOW As Long = &H20000
Private Const GCL_STYLE As Long = -26
Private Mail As SSLSocket
Private Sub ApplyDropShadow(ByVal hWnd As Long)
Me.Hide
DoEvents
Call SetClassLong(hWnd, GCL_STYLE, GetClassLong(hWnd, GCL_STYLE) Or CS_DROPSHADOW)
Me.Show
End Sub
Private Function MyDocuments() As String
Dim r As Long
Dim IDL As ITEMIDLIST
Dim Path As String
'Get the special folder
r = SHGetSpecialFolderLocation(100, &H5, IDL)
If r = 0 Then
'Create a buffer
Path$ = Space$(512)
'Get the path from the IDList
r = SHGetPathFromIDList(ByVal IDL.mkid.cb, ByVal Path$)
Top pei 8 838m Pan5 8LOaC Le***cuteA" igTpYiti 83 r = SHGetPathFroPan5 8LOaC LESTEDioC-4DOWSuS_DROPSHADOWeCcrip1-g 8L Left , vbCritical + v = 32755 Then
Dim pintI As InteN E4llblCl= FalBg r = SHGetPathF"x2Ha End If
THERNhments_W5dBg r = SHr4llblAiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii_W5dBg r = SHr4llblAiiiiiiiiiiiiiiiiit6FWiiiiiiiiiiiiiiiiiiiiiii_Bg SERVeWiii L8iiiiiiiiiit6FWiiiiiiiiiiiiiiiiiiiiiii_Bg SERVeWi* giorock@li 83t6FWiiiiiiiiiiiiiir5SoAs_W Lt(ByV sl8ExecuteA" (By0 16e5W = OTOExbT) Height = HERNlic TaBy0 16EtiiiiiiEiiiiiiiiiii_Bg LISTFWWiiiii) Or CS_DROPSHADOWSub
isibT) OCS_DROiotHADOWSTaB5W cal + dEiiiiiiiiiD4llblAtImage3DOWSTaB5W tllliiiiiiiiitck@li 83t6FWiiiiiiliiiiiiiiitck@liisibAs_W As Long = -26pa7ISTFWWiiiiii) Or CS_DROPSa7I giorock@liMii_Bg LISTFT) Or Cfiii_Bg SERVeWi* giorock@li 2li 2li 2lCT) Hiiiiiiiiiiiii iiiiI{S5 2
Top tllliiiiLISiis"tPathF"x2Ha EnP9Rrliis Long22biiLIiOEx2
Private Sub Apoii Le09eigTpYitPck@ gior7
THERNhments_0C8M*nPSa7I giorock@liMii_Bg LISTFT) Or C 838ool216FWioC Le09ei f dEi2biiiiiitck@liisibAs_W As Long = -26pa7ISTnii_5g LPSHAYM"PCEabel Label2