|
调用IE的收藏夹(5) lpValue As String, _ iniFile As String) Call WritePrivateProfileString(lpSectionName, lpKeyName, lpValue, iniFile) End Sub Private Function GetFolderPath(CSIDL As Long) As String
Dim sPath As String Dim sTmp As String sPath = Space$(MAX_PATH) If SHGetFolderPath(Me.hWnd, _ CSIDL, _ 0&, _ SHGFP_TYPE_CURRENT, _ sPath) = S_OK Then GetFolderPath = Left$(sPath, InStr(sPath, Chr$(0)) - 1) End If End Function
|