IE相關的API (轉)
Public Const CSIDL_FAVORITES = &H6
Public Declare Function LaunchInteControlPanel Lib "inetcpl.cpl" (ByVal hwndParent As Long) As Long
Public Declare Function LaunchConnectionDialog Lib "inetcpl.cpl" (ByVal hwndParent As Long) As Long
Public Declare Function LaunchSecurityDialog Lib "inetcpl.cpl" (ByVal hwndParent As Long) As Long
Public Declare Function LaunchSiteCertDialog Lib "inetcpl.cpl" (ByVal hwndParent As Long) As Long
Public Declare Function OpenFontsDialog Lib "inetcpl.cpl" (ByVal hwndParent As Long) As Long
Public Declare Function DoOrganizeFavDlg Lib "shdocvw.dll" (ByVal hwndParent As Long, ByVal lpszPath As String) As Long
Public Declare Function SHGetSpecialFolderPath Lib "32.dll" Alias "SHGetSpecialFolderPathA" (ByVal hwndOwner As Long, ByVal lpszPath As String, ByVal nFolder As Long, ByVal fCreate As Long) As Long
'--------------------------------------------------
Private Sub Command1_Click()
Dim rc As Long
rc = LaunchInternetControlPanel(Me.hWnd)
De.Print GetLastError
If rc = 0 Then
MsgBox "LaunchInternetControlPanel failed!", vbExclamation
End If
End Sub
Private Sub Command2_Click()
Dim rc As Long
rc = LaunchConnectionDialog(Me.hWnd)
Debug.Print GetLastError
If rc = 0 Then
MsgBox "LaunchConnectionDialog failed!", vbExclamation
End If
End Sub
Private Sub Command3_Click()
Dim rc As Long
Dim strFavPath As String * MAX_PATH
SHGetSpecialFolderPath Me.hWnd, strFavPath, CSIDL_FAVORITES, False
rc = DoOrganizeFavDlg(Me.hWnd, strFavPath)
Debug.Print GetLastError
If rc = 0 Then
MsgBox "DoOrganizeFavDlg failed!", vbExclamation
End If
End Sub
Private Sub Command4_Click()
Dim rc As Long
rc = LaunchSiteCertDialog(Me.hWnd)
Debug.Print GetLastError
If rc = 0 Then
MsgBox "LaunchSiteCertDialog failed!", vbExclamation
End If
End Sub
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10752043/viewspace-990723/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 反射相關的API反射API
- UIView的動畫相關APIUIView動畫API
- SparkSQL 相關APISparkSQLAPI
- 反射相關API反射API
- Api函式列表——與檔案相關 (轉)API函式
- 音樂相關apiAPI
- 透過API訪問IE Cache (轉)API
- GitLab 相關 API 使用GitlabAPI
- D3佈局的相關apiAPI
- 理解socket.io(一)---相關的APIAPI
- Windows API 程式相關筆記WindowsAPI筆記
- 相關API學習網址API
- Akka之Source相關API總結API
- HBase篇--HBase操作Api和Java操作Hbase相關ApiAPIJava
- react-redux/redux相關API,用法原理ReactReduxAPI
- webrtc原理及相關api使用邏輯WebAPI
- nodeJS丶Buff使用及相關APINodeJSAPI
- 大小寫相關API(tolower, toupper, islower, isupper)API
- 求 PHP 轉 java 的相關教程PHPJava
- Solaris的硬體相關命令(轉)
- Spring中AOP相關的API及原始碼解析SpringAPI原始碼
- 呼叫 Rational CM API 實現 Rational ClearQuest 的相關操作API
- 關於轉儲Oracle索引資訊的相關命令Oracle索引
- Http請求相關(轉)HTTP
- web service相關轉摘Web
- 原生JS中DOM節點相關API合集JSAPI
- 搭建vue3版taro以及相關apiVueAPI
- Java 相關的編譯技術(轉)Java編譯
- 晶片驗證的相關概念(轉載)晶片
- Html5多媒體相關的API---videoHTMLAPIIDE
- HTML5中與頁面顯示相關的APIHTMLAPI
- 有關API字串--API programmer請看 (轉)API字串
- ASP.NET Web API與Owin OAuth:呼叫與使用者相關的Web APIASP.NETWebAPIOAuth
- [TCP]轉TCP相關知識TCP
- 利益相關者分析(轉載)
- reverse index 反轉索引相關Index索引
- 在Flask中構建API介面的相關概念FlaskAPI
- spark streaming原始碼分析4 DStream相關APISpark原始碼API