msvcp90: Fix comment typo.
[wine/multimedia.git] / dlls / rstrtmgr / main.c
blob2d45639a1b35d66a96889e9b35fb70752622c042
1 /*
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
19 #include "config.h"
20 #include <stdarg.h>
22 #include "windef.h"
23 #include "winbase.h"
24 #include "wine/debug.h"
26 #include "restartmanager.h"
28 WINE_DEFAULT_DEBUG_CHANNEL(rstrtmgr);
30 /*****************************************************
31 * DllMain
33 BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
35 TRACE("(%p, %d, %p)\n", hinst, reason, reserved);
37 switch(reason)
39 case DLL_WINE_PREATTACH:
40 return FALSE; /* prefer native version */
42 case DLL_PROCESS_ATTACH:
43 DisableThreadLibraryCalls( hinst );
44 break;
46 return TRUE;
49 /***********************************************************************
50 * RmGetList (rstrtmgr.@)
52 * Retrieve the list of all applications and services using resources registered with the Restart Manager session
54 DWORD WINAPI RmGetList(DWORD dwSessionHandle, UINT *pnProcInfoNeeded, UINT *pnProcInfo,
55 RM_PROCESS_INFO *rgAffectedApps[], LPDWORD lpdwRebootReasons)
57 FIXME("%d, %p, %p, %p, %p stub!\n", dwSessionHandle, pnProcInfoNeeded, pnProcInfo, rgAffectedApps, lpdwRebootReasons);
58 return ERROR_CALL_NOT_IMPLEMENTED;
61 /***********************************************************************
62 * RmRegisterResources (rstrtmgr.@)
64 * Register resources for a Restart Manager session
66 DWORD WINAPI RmRegisterResources(DWORD dwSessionHandle, UINT nFiles, LPCWSTR rgsFilenames[],
67 UINT nApplications, RM_UNIQUE_PROCESS *rgApplications,
68 UINT nServices, LPCWSTR rgsServiceNames[])
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;
75 /***********************************************************************
76 * RmStartSession (rstrtmgr.@)
78 * Start a new Restart Manager session
80 DWORD WINAPI RmStartSession(DWORD *sessionhandle, DWORD flags, WCHAR sessionkey[])
82 FIXME("%p, %d, %p stub!\n", sessionhandle, flags, sessionkey);
83 return ERROR_CALL_NOT_IMPLEMENTED;
86 /***********************************************************************
87 * RmRestart (rstrtmgr.@)
89 DWORD WINAPI RmRestart(DWORD handle, DWORD flags, void *fnstatus)
91 FIXME("%u, 0x%08x, %p stub!\n", handle, flags, fnstatus);
92 return ERROR_CALL_NOT_IMPLEMENTED;
95 /***********************************************************************
96 * RmEndSession (rstrtmgr.@)
98 DWORD WINAPI RmEndSession(DWORD handle)
100 FIXME("%u stub!\n", handle);
101 return ERROR_CALL_NOT_IMPLEMENTED;