Commit 91570a55 authored by Roman Pišl's avatar Roman Pišl Committed by Alexandre Julliard

rstrtmgr: Fake API implementation by returning success.

parent a5d441c1
......@@ -54,7 +54,11 @@ DWORD WINAPI RmGetList(DWORD dwSessionHandle, UINT *pnProcInfoNeeded, UINT *pnPr
RM_PROCESS_INFO *rgAffectedApps[], LPDWORD lpdwRebootReasons)
{
FIXME("%d, %p, %p, %p, %p stub!\n", dwSessionHandle, pnProcInfoNeeded, pnProcInfo, rgAffectedApps, lpdwRebootReasons);
return ERROR_CALL_NOT_IMPLEMENTED;
if (pnProcInfoNeeded)
*pnProcInfoNeeded = 0;
if (pnProcInfo)
*pnProcInfo = 0;
return ERROR_SUCCESS;
}
/***********************************************************************
......@@ -68,7 +72,7 @@ DWORD WINAPI RmRegisterResources(DWORD dwSessionHandle, UINT nFiles, LPCWSTR rgs
{
FIXME("%d, %d, %p, %d, %p, %d, %p stub!\n", dwSessionHandle, nFiles, rgsFilenames,
nApplications, rgApplications, nServices, rgsServiceNames);
return ERROR_CALL_NOT_IMPLEMENTED;
return ERROR_SUCCESS;
}
/***********************************************************************
......@@ -79,7 +83,9 @@ DWORD WINAPI RmRegisterResources(DWORD dwSessionHandle, UINT nFiles, LPCWSTR rgs
DWORD WINAPI RmStartSession(DWORD *sessionhandle, DWORD flags, WCHAR sessionkey[])
{
FIXME("%p, %d, %p stub!\n", sessionhandle, flags, sessionkey);
return ERROR_CALL_NOT_IMPLEMENTED;
if (sessionhandle)
*sessionhandle = 0xdeadbeef;
return ERROR_SUCCESS;
}
/***********************************************************************
......@@ -88,7 +94,7 @@ DWORD WINAPI RmStartSession(DWORD *sessionhandle, DWORD flags, WCHAR sessionkey[
DWORD WINAPI RmRestart(DWORD handle, DWORD flags, RM_WRITE_STATUS_CALLBACK status)
{
FIXME("%u, 0x%08x, %p stub!\n", handle, flags, status);
return ERROR_CALL_NOT_IMPLEMENTED;
return ERROR_SUCCESS;
}
/***********************************************************************
......@@ -97,7 +103,7 @@ DWORD WINAPI RmRestart(DWORD handle, DWORD flags, RM_WRITE_STATUS_CALLBACK statu
DWORD WINAPI RmEndSession(DWORD handle)
{
FIXME("%u stub!\n", handle);
return ERROR_CALL_NOT_IMPLEMENTED;
return ERROR_SUCCESS;
}
/***********************************************************************
......@@ -106,5 +112,5 @@ DWORD WINAPI RmEndSession(DWORD handle)
DWORD WINAPI RmShutdown(DWORD handle, ULONG flags, RM_WRITE_STATUS_CALLBACK status)
{
FIXME("%u, 0x%08x, %p stub!\n", handle, flags, status);
return ERROR_CALL_NOT_IMPLEMENTED;
return ERROR_SUCCESS;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment