Hello,
I want to call "SRSetRestorePoint" from an InstallScript but always get the exception 0x80040703 "Description: Failed to find DLL function: SrClientSRSetRestorePoint"
This is my code:
prototype BOOL SrClient.SRSetRestorePoint(POINTER, POINTER);
function NUMBER u_CreateWindowsRestorePoint()
NUMBER nStatus;
BOOL bResult;
LONG lSequenceNumber;
begin
RESTOREPOINTINFO.szDescription = "TestRestorePoint";
RESTOREPOINTINFO.dwRestorePtType = APPLICATION_INSTALL;
RESTOREPOINTINFO.dwEventType = BEGIN_SYSTEM_CHANGE;
bResult = SRSetRestorePoint(&RESTOREPOINTINFO, &STATEMGRSTATUS);
if (bResult = TRUE) then
lSequenceNumber = STATEMGRSTATUS.llSequenceNumber;
nStatus = STATEMGRSTATUS.nStatus;
endif;
endif;
I suppose that the prototype definition is not correct but waht would be the right syntax that accepts the respective structures?
The WINAPI function definition is
BOOL SRSetRestorePoint( _In_ PRESTOREPOINTINFO pRestorePtSpec, _Out_ PSTATEMGRSTATUS pSMgrStatus );
Regards
Sebastian
Edited by Sebbo11, 28 March 2014 - 07:15.