hex:00,00,00,00,00,00,00,00,03,00,00,00,00,00,5b,e0,00,00,5c,e0,00,00,00,00
怎么用vc写入注册表

解决方案 »

  1.   

            HKEY hKey;
            RegCreateKey(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",&hKey);
            {
                BYTE   bt[24];            memset(bt, 0, sizeof(bt));
                bt[8] = 3;
                bt[14] = 0x5b;
                bt[15] = 0xe0;
                bt[18] = 0x5c;
                bt[19] = 0xe0;
                            RegSetValueEx(hKey,"hehe",0,REG_BINARY,(unsigned char *)bt,24);
            }        RegCloseKey(hKey);
      

  2.   

    上面的内容转自http://www.chendana.com/bbs/viewthread.php?tid=506