是不是用函数 RegQueryValueEx()?
如果是的话能否给个例子?

解决方案 »

  1.   

    http://www.china-pub.com/computers/emook/0953/info.htm
    http://www.pcvc.net/category/content.asp?sendid=48
    http://www.china-pub.com/computers/emook/0953/info.htm
      

  2.   

    有email吗?我给你发一个注册表类,很好用的。
      

  3.   

    void C...Dlg::OnOK() 
    {
    HKEY hKey;   
    LPTSTR path=".DEFAULT\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\"; //路径名 
    if(::RegOpenKeyEx(HKEY_USERS, path,0,KEY_READ,&hKey)!=ERROR_SUCCESS)
    return ;
    char name[]="DisableRegistryTools";//键值名         
    LPBYTE data=0;//求取数据
    DWORD dw=0;
    DWORD type=REG_DWORD;
    if(::RegQueryValueEx(hKey,name,0,&type,data,&dw)!=ERROR_SUCCESS)
    return ;
    AfxMessageBox("OK");
    ::RegCloseKey(hKey);
    }