private void SubscribeForEvents() { ptrBackupEvent = new InternalCAPI.ServerBackupCallback(BackupFunction); ptrCleanupEvent = new InternalCAPI.ServerCleanupCallback(CleanupFunction); CeBackupServerException.RaiseIfNotSucceeded(InternalCAPI.SubscribeForBackupEvents(ptrBackupEvent)); CeBackupServerException.RaiseIfNotSucceeded(InternalCAPI.SubscribeForCleanupEvents(ptrCleanupEvent)); }