ddraw: The texture interface shares its refcount with the surface interface version...
[wine/multimedia.git] / dlls / rstrtmgr / main.c
blob35e04a2537e1d3439db3f9018b981ac751be1410
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 case DLL_PROCESS_DETACH:
47 break;
49 return TRUE;
52 /***********************************************************************
53 * RmGetList (rstrtmgr.@)
55 * Retrieve the list of all applications and services using resources registered with the Restart Manager session
57 DWORD WINAPI RmGetList(DWORD dwSessionHandle, UINT *pnProcInfoNeeded, UINT *pnProcInfo,
58 RM_PROCESS_INFO *rgAffectedApps[], LPDWORD lpdwRebootReasons)
60 FIXME("%d, %p, %p, %p, %p stub!\n", dwSessionHandle, pnProcInfoNeeded, pnProcInfo, rgAffectedApps, lpdwRebootReasons);
61 return ERROR_CALL_NOT_IMPLEMENTED;
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);
75 return ERROR_CALL_NOT_IMPLEMENTED;
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);
86 return ERROR_CALL_NOT_IMPLEMENTED;
89 /***********************************************************************
90 * RmRestart (rstrtmgr.@)
92 DWORD WINAPI RmRestart(DWORD handle, DWORD flags, void *fnstatus)
94 FIXME("%u, 0x%08x, %p stub!\n", handle, flags, fnstatus);
95 return ERROR_CALL_NOT_IMPLEMENTED;
98 /***********************************************************************
99 * RmEndSession (rstrtmgr.@)
101 DWORD WINAPI RmEndSession(DWORD handle)
103 FIXME("%u stub!\n", handle);
104 return ERROR_CALL_NOT_IMPLEMENTED;