| 312 | } |
| 313 | |
| 314 | BOOL 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 | |
| 350 | BOOL registryDeleteKeyInf(const char *path, const char *inf) |
| 351 | { |
no test coverage detected