2 * Copyright 2010 Louis Lenders
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 #include "wine/debug.h"
25 #include "restartmanager.h"
27 WINE_DEFAULT_DEBUG_CHANNEL(rstrtmgr
);
29 /***********************************************************************
30 * RmGetList (rstrtmgr.@)
32 * Retrieve the list of all applications and services using resources registered with the Restart Manager session
34 DWORD WINAPI
RmGetList(DWORD dwSessionHandle
, UINT
*pnProcInfoNeeded
, UINT
*pnProcInfo
,
35 RM_PROCESS_INFO
*rgAffectedApps
[], LPDWORD lpdwRebootReasons
)
37 FIXME("%ld, %p, %p, %p, %p stub!\n", dwSessionHandle
, pnProcInfoNeeded
, pnProcInfo
, rgAffectedApps
, lpdwRebootReasons
);
39 *pnProcInfoNeeded
= 0;
45 /***********************************************************************
46 * RmRegisterResources (rstrtmgr.@)
48 * Register resources for a Restart Manager session
50 DWORD WINAPI
RmRegisterResources(DWORD dwSessionHandle
, UINT nFiles
, LPCWSTR rgsFilenames
[],
51 UINT nApplications
, RM_UNIQUE_PROCESS
*rgApplications
,
52 UINT nServices
, LPCWSTR rgsServiceNames
[])
54 FIXME("%ld, %d, %p, %d, %p, %d, %p stub!\n", dwSessionHandle
, nFiles
, rgsFilenames
,
55 nApplications
, rgApplications
, nServices
, rgsServiceNames
);
59 /***********************************************************************
60 * RmStartSession (rstrtmgr.@)
62 * Start a new Restart Manager session
64 DWORD WINAPI
RmStartSession(DWORD
*sessionhandle
, DWORD flags
, WCHAR sessionkey
[])
66 FIXME("%p, %ld, %p stub!\n", sessionhandle
, flags
, sessionkey
);
68 *sessionhandle
= 0xdeadbeef;
72 /***********************************************************************
73 * RmRestart (rstrtmgr.@)
75 DWORD WINAPI
RmRestart(DWORD handle
, DWORD flags
, RM_WRITE_STATUS_CALLBACK status
)
77 FIXME("%lu, 0x%08lx, %p stub!\n", handle
, flags
, status
);
81 /***********************************************************************
82 * RmEndSession (rstrtmgr.@)
84 DWORD WINAPI
RmEndSession(DWORD handle
)
86 FIXME("%lu stub!\n", handle
);
90 /***********************************************************************
91 * RmShutdown (rstrtmgr.@)
93 DWORD WINAPI
RmShutdown(DWORD handle
, ULONG flags
, RM_WRITE_STATUS_CALLBACK status
)
95 FIXME("%lu, 0x%08lx, %p stub!\n", handle
, flags
, status
);
99 /***********************************************************************
100 * RmAddFilter (rstrtmgr.@)
102 DWORD WINAPI
RmAddFilter(DWORD handle
, LPCWSTR moduleName
, RM_UNIQUE_PROCESS
*process
,
103 LPCWSTR serviceShortName
, RM_FILTER_ACTION filter
)
105 FIXME("%lu, %s %p %s 0x%08x stub!\n", handle
, debugstr_w(moduleName
), process
,
106 debugstr_w(serviceShortName
), filter
);
107 return ERROR_SUCCESS
;
110 /***********************************************************************
111 * RmRemoveFilter (rstrtmgr.@)
113 DWORD WINAPI
RmRemoveFilter(DWORD handle
, LPCWSTR moduleName
, RM_UNIQUE_PROCESS
*process
,
114 LPCWSTR serviceShortName
)
116 FIXME("%lu, %s %p %s stub!\n", handle
, debugstr_w(moduleName
), process
,
117 debugstr_w(serviceShortName
));
118 return ERROR_SUCCESS
;