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 /*****************************************************
32 BOOL WINAPI
DllMain( HINSTANCE hinst
, DWORD reason
, LPVOID reserved
)
34 TRACE("(%p, %d, %p)\n", hinst
, reason
, reserved
);
38 case DLL_WINE_PREATTACH
:
39 return FALSE
; /* prefer native version */
41 case DLL_PROCESS_ATTACH
:
42 DisableThreadLibraryCalls( hinst
);
48 /***********************************************************************
49 * RmGetList (rstrtmgr.@)
51 * Retrieve the list of all applications and services using resources registered with the Restart Manager session
53 DWORD WINAPI
RmGetList(DWORD dwSessionHandle
, UINT
*pnProcInfoNeeded
, UINT
*pnProcInfo
,
54 RM_PROCESS_INFO
*rgAffectedApps
[], LPDWORD lpdwRebootReasons
)
56 FIXME("%d, %p, %p, %p, %p stub!\n", dwSessionHandle
, pnProcInfoNeeded
, pnProcInfo
, rgAffectedApps
, lpdwRebootReasons
);
58 *pnProcInfoNeeded
= 0;
64 /***********************************************************************
65 * RmRegisterResources (rstrtmgr.@)
67 * Register resources for a Restart Manager session
69 DWORD WINAPI
RmRegisterResources(DWORD dwSessionHandle
, UINT nFiles
, LPCWSTR rgsFilenames
[],
70 UINT nApplications
, RM_UNIQUE_PROCESS
*rgApplications
,
71 UINT nServices
, LPCWSTR rgsServiceNames
[])
73 FIXME("%d, %d, %p, %d, %p, %d, %p stub!\n", dwSessionHandle
, nFiles
, rgsFilenames
,
74 nApplications
, rgApplications
, nServices
, rgsServiceNames
);
78 /***********************************************************************
79 * RmStartSession (rstrtmgr.@)
81 * Start a new Restart Manager session
83 DWORD WINAPI
RmStartSession(DWORD
*sessionhandle
, DWORD flags
, WCHAR sessionkey
[])
85 FIXME("%p, %d, %p stub!\n", sessionhandle
, flags
, sessionkey
);
87 *sessionhandle
= 0xdeadbeef;
91 /***********************************************************************
92 * RmRestart (rstrtmgr.@)
94 DWORD WINAPI
RmRestart(DWORD handle
, DWORD flags
, RM_WRITE_STATUS_CALLBACK status
)
96 FIXME("%u, 0x%08x, %p stub!\n", handle
, flags
, status
);
100 /***********************************************************************
101 * RmEndSession (rstrtmgr.@)
103 DWORD WINAPI
RmEndSession(DWORD handle
)
105 FIXME("%u stub!\n", handle
);
106 return ERROR_SUCCESS
;
109 /***********************************************************************
110 * RmShutdown (rstrtmgr.@)
112 DWORD WINAPI
RmShutdown(DWORD handle
, ULONG flags
, RM_WRITE_STATUS_CALLBACK status
)
114 FIXME("%u, 0x%08x, %p stub!\n", handle
, flags
, status
);
115 return ERROR_SUCCESS
;
118 /***********************************************************************
119 * RmAddFilter (rstrtmgr.@)
121 DWORD WINAPI
RmAddFilter(DWORD handle
, LPCWSTR moduleName
, RM_UNIQUE_PROCESS
*process
,
122 LPCWSTR serviceShortName
, RM_FILTER_ACTION filter
)
124 FIXME("%u, %s %p %s 0x%08x stub!\n", handle
, debugstr_w(moduleName
), process
,
125 debugstr_w(serviceShortName
), filter
);
126 return ERROR_SUCCESS
;
129 /***********************************************************************
130 * RmRemoveFilter (rstrtmgr.@)
132 DWORD WINAPI
RmRemoveFilter(DWORD handle
, LPCWSTR moduleName
, RM_UNIQUE_PROCESS
*process
,
133 LPCWSTR serviceShortName
)
135 FIXME("%u, %s %p %s stub!\n", handle
, debugstr_w(moduleName
), process
,
136 debugstr_w(serviceShortName
));
137 return ERROR_SUCCESS
;