MSDN sagt zu SRSetRestorePoint:
Zitat:
Remarks
You must initialize
COM security to allow NetworkService, LocalService and System to call back into any process that uses SRSetRestorePoint. This is necessary for SRSetRestorePoint to operate properly. For information on setting up the
COM calls to CoInitializeEx and CoInitializeSecurity, see Using System Restore.
Übrigens fehlt in deinem Code ein Gegenstück zu LoadLibrary; müsste CloseHandle sein.
MfG Dalai