MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / FUnregisterExtensions

Function FUnregisterExtensions

wdriver.cpp:3263–3281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3261// Remove Astrolog specific data from the Windows registry.
3262
3263flag FUnregisterExtensions()
3264{
3265 // Delete .as extension pointing to Astrolog File Type.
3266 if (SHDeleteKey(HKEY_CURRENT_USER,
3267 "Software\\Classes\\.as") != ERROR_SUCCESS)
3268 goto LError;
3269
3270 // Delete icon for .as extension files.
3271 if (SHDeleteKey(HKEY_CURRENT_USER,
3272 "Software\\Classes\\Astrolog.as") != ERROR_SUCCESS)
3273 goto LError;
3274
3275 if (wi.wCmd == cmdUnsetup)
3276 PrintNotice("Unregistered Astrolog as owner of file extension \".as\".\n");
3277 return fTrue;
3278LError:
3279 PrintError("Failed to unregister Astrolog file extensions.");
3280 return fFalse;
3281}
3282#endif // WSETUP
3283#endif // WIN
3284

Callers 2

NProcessSwitchesWFunction · 0.85
NWmCommandFunction · 0.85

Calls 2

PrintNoticeFunction · 0.85
PrintErrorFunction · 0.85

Tested by

no test coverage detected