您的位置:程序门 -> vb -> 基础类



如何判断注册表中是否存在某一项


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


如何判断注册表中是否存在某一项[已结贴,结贴人:zq102605]
发表于:2007-02-15 14:14:17 楼主
我想判断注册表
hkey_current_user\software\vb   and   vba   program   settings
下是否有“绩效考核管理系统”这个程序的注册信息
也就是判断是否存在   hkey_current_user\software\vb   and   vba   program   settings\绩效考核管理系统

如何做
发表于:2007-02-15 14:17:281楼 得分:20
long   regopenkeyex(
    hkey   hkey,
    lpctstr   lpsubkey,
    dword   uloptions,
    regsam   samdesired,
    phkey   phkresult
);

public   declare   function   regopenkeyex   lib   "advapi32.dll "   alias   "regopenkeyexa "   (byval   hkey   as   long,   byval   lpsubkey   as   string,   byval   uloptions   as   long,   byval   samdesired   as   long,   phkresult   as   long)   as   long


发表于:2007-02-15 14:23:092楼 得分:0
您能解释说明一下么


快速检索

最新资讯
热门点击