MCPcopy Create free account
hub / github.com/JHRobotics/softgpu / registryDeleteInf

Function registryDeleteInf

winreg.c:314–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314BOOL registryDeleteInf(const char *path, const char *inf)
315{
316 HKEY root;
317 const char *key;
318 const char *subkey;
319 const char *root_inf = NULL;
320
321 if(registrySplitPath(path, &root, &key, &subkey))
322 {
323 for(const rootkey_t *rt = &rootkeys[0]; rt->name != NULL; rt++)
324 {
325 if(rt->key == root)
326 {
327 root_inf = rt->inf_root;
328 break;
329 }
330 }
331
332 if(root_inf != NULL)
333 {
334 if(subkey == NULL)
335 {
336 sprintf(inf_line, "%s,%s,,0x00000004\r\n", root_inf, key);
337 }
338 else
339 {
340 sprintf(inf_line, "%s,%s,%s,0x00000004\r\n", root_inf, key, subkey);
341 }
342
343 return addLine(inf, inf_line);
344 }
345 }
346
347 return FALSE;
348}
349
350BOOL registryDeleteKeyInf(const char *path, const char *inf)
351{

Callers 1

apply_reg_fixesFunction · 0.85

Calls 2

registrySplitPathFunction · 0.85
addLineFunction · 0.85

Tested by

no test coverage detected