This is a registry way of deleting files on booting. Is there an API equivalent for this. And does it work with wildcards ?
PendingFileRenameOperations
PendingFileRenameOperations
MoveFileEx with MOVEFILE_DELAY_UNTIL_REBOOT flag. But it ends up adding the Registry value you mentioned anyway.