dplayx: Remove unnecessary assigment (Coverity).
[wine] / dlls / rstrtmgr / main.c
1 /*
2  * Copyright 2010 Louis Lenders
3  *
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.
8  *
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.
13  *
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
17  */
18
19 #include "config.h"
20 #include <stdarg.h>
21
22 #include "windef.h"
23 #include "winbase.h"
24 #include "wine/debug.h"
25
26 #include "restartmanager.h"
27
28 WINE_DEFAULT_DEBUG_CHANNEL(rstrtmgr);
29
30 /*****************************************************
31  *      DllMain
32  */
33 BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
34 {
35     TRACE("(%p, %d, %p)\n", hinst, reason, reserved);
36
37     switch(reason)
38     {
39     case DLL_WINE_PREATTACH:
40         return FALSE;  /* prefer native version */
41
42     case DLL_PROCESS_ATTACH:
43         DisableThreadLibraryCalls( hinst );
44         break;
45     }
46     return TRUE;
47 }
48
49 /***********************************************************************
50  * RmGetList (rstrtmgr.@)
51  *
52  * Retrieve the list of all applications and services using resources registered with the Restart Manager session
53  */
54 DWORD WINAPI RmGetList(DWORD dwSessionHandle, UINT *pnProcInfoNeeded, UINT *pnProcInfo,
55                                       RM_PROCESS_INFO *rgAffectedApps[], LPDWORD lpdwRebootReasons)
56 {
57     FIXME("%d, %p, %p, %p, %p stub!\n", dwSessionHandle, pnProcInfoNeeded, pnProcInfo, rgAffectedApps, lpdwRebootReasons);
58     return ERROR_CALL_NOT_IMPLEMENTED;
59 }
60
61 /***********************************************************************
62  * RmRegisterResources (rstrtmgr.@)
63  *
64  * Register resources for a Restart Manager session
65  */
66 DWORD WINAPI RmRegisterResources(DWORD dwSessionHandle, UINT nFiles, LPCWSTR rgsFilenames[],
67                                                      UINT nApplications, RM_UNIQUE_PROCESS *rgApplications,
68                                                      UINT nServices, LPCWSTR rgsServiceNames[])
69 {
70     FIXME("%d, %d, %p, %d, %p, %d, %p stub!\n", dwSessionHandle, nFiles, rgsFilenames,
71               nApplications, rgApplications, nServices, rgsServiceNames);
72     return ERROR_CALL_NOT_IMPLEMENTED;
73 }
74
75 /***********************************************************************
76  * RmStartSession (rstrtmgr.@)
77  *
78  * Start a new Restart Manager session
79  */
80 DWORD WINAPI RmStartSession(DWORD *sessionhandle, DWORD flags, WCHAR sessionkey[])
81 {
82     FIXME("%p, %d, %p stub!\n", sessionhandle, flags, sessionkey);
83     return ERROR_CALL_NOT_IMPLEMENTED;
84 }
85
86 /***********************************************************************
87  * RmRestart (rstrtmgr.@)
88  */
89 DWORD WINAPI RmRestart(DWORD handle, DWORD flags, void *fnstatus)
90 {
91     FIXME("%u, 0x%08x, %p stub!\n", handle, flags, fnstatus);
92     return ERROR_CALL_NOT_IMPLEMENTED;
93 }
94
95 /***********************************************************************
96  * RmEndSession (rstrtmgr.@)
97  */
98 DWORD WINAPI RmEndSession(DWORD handle)
99 {
100     FIXME("%u stub!\n", handle);
101     return ERROR_CALL_NOT_IMPLEMENTED;
102 }