发新话题
打印

如何得到office安装了哪些应用程序

如何得到office安装了哪些应用程序

  How to see which Microsoft Office Applications are installed

This tip shows how you could see which MS Office Applications are installed on your system.  Create a new .exe project and add a module to it with the following code:

Option Explicit
** Declare Function RegOpenKey Lib _
"advapi32" Alias "RegOpenKeyA" (ByVal hKey _
As Long, ByVal lpSubKey As String, _
phkResult As Long) As Long

** Declare Function RegQueryValueEx _
Lib "advapi32" Alias "RegQueryValueExA" _
(ByVal hKey As Long, ByVal lpValueName As _
String, lpReserved As Long, lptype As _
Long, lpData As Any, lpcbData As Long) _
As Long

** Declare Function RegCloseKey

TOP

发新话题