MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / createRegPath

Function createRegPath

ThirdParty/ASIO/common/register.cpp:198–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198static LONG createRegPath (HKEY mainkey,char *szregpath,char *sznewpath)
199{
200 HKEY hkey,hksub;
201 LONG cr,rc = -1;
202 char newregpath[MAX_PATH_LEN];
203
204 sprintf(newregpath,"%s\\%s",szregpath,sznewpath);
205 if (!(cr = findRegPath(mainkey,newregpath))) {
206 if ((cr = RegOpenKey(mainkey,szregpath,&hkey)) == ERROR_SUCCESS) {
207 if ((cr = RegCreateKey(hkey,sznewpath,&hksub)) == ERROR_SUCCESS) {
208 RegCloseKey(hksub);
209 rc = 0;
210 }
211 RegCloseKey(hkey);
212 }
213 }
214 else if (cr > 0) rc = 0;
215
216 return rc;
217}
218
219static LONG createRegStringValue (HKEY mainkey,char *szregpath,char *valname,char *szvalstr)
220{

Callers 1

RegisterAsioDriverFunction · 0.85

Calls 1

findRegPathFunction · 0.85

Tested by

no test coverage detected