dword deletetree(hkey rootkey, const char *psubkey)
nret = regqueryinfokey(hkey,null,null,null,&keycnt,&keymaxlen,null,&namecnt,
&namemaxlen,&maxdatelen,null,null);
if(nret == error_success)
regclosekey(hkeysub);}}
regdeletekey(rootkey ,psubkeytemp);
}regclosekey(hkey);
}if (dwdeep == 0)
return 0;}
測試過了 絕對可以用
遍歷登錄檔
123 open register key 4if regopenkeyex hkey current user,software oki ccons33 unittype 0,key all access,oldhkey error success 527 28 print the key and...
C 登錄檔遍歷刪除小BUG
當在同一函式內使用regenumkeyexw和regdeletekeyw時,會無法刪除子項,建議列舉和刪除放在不同函式進行。別使用regenumkeyexa,請務必指定函式為regenumkeyexw,否則會偶爾出現中文子項無法列舉的情況。請使用regopenkeyexw regdeletekeyw...
delphi 遍歷登錄檔
下面程式是讀出windows中所有的已安裝的程式.你自己看一下,很容易的.uses registry procedure tform1.button1click sender tobject var list,softlist tstringlist reg tregistry fpath,fkey...