Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e899b55e
Commit
e899b55e
authored
Sep 09, 2010
by
Austin English
Committed by
Alexandre Julliard
Sep 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rstrtmgr: Add stubs for RmGetList and RmRegisterResources.
parent
ee706d3d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
90 additions
and
3 deletions
+90
-3
main.c
dlls/rstrtmgr/main.c
+29
-1
rstrtmgr.spec
dlls/rstrtmgr/rstrtmgr.spec
+2
-2
Makefile.in
include/Makefile.in
+1
-0
restartmanager.h
include/restartmanager.h
+58
-0
No files found.
dlls/rstrtmgr/main.c
View file @
e899b55e
...
@@ -23,6 +23,8 @@
...
@@ -23,6 +23,8 @@
#include "winbase.h"
#include "winbase.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "restartmanager.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
rstrtmgr
);
WINE_DEFAULT_DEBUG_CHANNEL
(
rstrtmgr
);
/*****************************************************
/*****************************************************
...
@@ -48,9 +50,35 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
...
@@ -48,9 +50,35 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
}
}
/***********************************************************************
/***********************************************************************
* RmGetList (rstrtmgr.@)
*
* Retrieve the list of all applications and services using resources registered with the Restart Manager session
*/
DWORD
WINAPI
RmGetList
(
DWORD
dwSessionHandle
,
UINT
*
pnProcInfoNeeded
,
UINT
*
pnProcInfo
,
RM_PROCESS_INFO
*
rgAffectedApps
[],
LPDWORD
lpdwRebootReasons
)
{
FIXME
(
"%d, %p, %p, %p, %p stub!
\n
"
,
dwSessionHandle
,
pnProcInfoNeeded
,
pnProcInfo
,
rgAffectedApps
,
lpdwRebootReasons
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
/***********************************************************************
* RmRegisterResources (rstrtmgr.@)
*
* Register resources for a Restart Manager session
*/
DWORD
WINAPI
RmRegisterResources
(
DWORD
dwSessionHandle
,
UINT
nFiles
,
LPCWSTR
rgsFilenames
[],
UINT
nApplications
,
RM_UNIQUE_PROCESS
*
rgApplications
,
UINT
nServices
,
LPCWSTR
rgsServiceNames
[])
{
FIXME
(
"%d, %d, %p, %d, %p, %d, %p stub!
\n
"
,
dwSessionHandle
,
nFiles
,
rgsFilenames
,
nApplications
,
rgApplications
,
nServices
,
rgsServiceNames
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
/***********************************************************************
* RmStartSession (rstrtmgr.@)
* RmStartSession (rstrtmgr.@)
*
*
* Start a new
restart m
anager session
* Start a new
Restart M
anager session
*/
*/
DWORD
WINAPI
RmStartSession
(
DWORD
*
sessionhandle
,
DWORD
flags
,
WCHAR
sessionkey
[])
DWORD
WINAPI
RmStartSession
(
DWORD
*
sessionhandle
,
DWORD
flags
,
WCHAR
sessionkey
[])
{
{
...
...
dlls/rstrtmgr/rstrtmgr.spec
View file @
e899b55e
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
@ stub RmCancelCurrentTask
@ stub RmCancelCurrentTask
@ stub RmEndSession
@ stub RmEndSession
@ stub RmGetFilterList
@ stub RmGetFilterList
@ st
ub RmGetList
@ st
dcall RmGetList(long ptr ptr ptr ptr)
@ stub RmJoinSession
@ stub RmJoinSession
@ st
ub RmRegisterResources
@ st
dcall RmRegisterResources(long long ptr long ptr long ptr)
@ stub RmRemoveFilter
@ stub RmRemoveFilter
@ stub RmReserveHeap
@ stub RmReserveHeap
@ stub RmRestart
@ stub RmRestart
...
...
include/Makefile.in
View file @
e899b55e
...
@@ -425,6 +425,7 @@ SRCDIR_INCLUDES = \
...
@@ -425,6 +425,7 @@ SRCDIR_INCLUDES = \
raserror.h
\
raserror.h
\
reason.h
\
reason.h
\
regstr.h
\
regstr.h
\
restartmanager.h
\
richedit.h
\
richedit.h
\
rmxfguid.h
\
rmxfguid.h
\
row.idl
\
row.idl
\
...
...
include/restartmanager.h
0 → 100644
View file @
e899b55e
/*
* Copyright (C) 2010 Austin English
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef RESTARTMANAGER_H
#define RESTARTMANAGER_H
#ifdef __cplusplus
extern
"C"
{
#endif
#define CCH_RM_MAX_APP_NAME 255
#define CH_RM_MAX_SVC_NAME 63
typedef
enum
{
RmUnknownApp
=
0
,
RmMainWindow
=
1
,
RmOtherWindow
=
2
,
RmService
=
3
,
RmExplorer
=
4
,
RmConsole
=
5
,
RmCritical
=
1000
}
RM_APP_TYPE
;
typedef
struct
{
DWORD
dwProcessId
;
FILETIME
ProcessStartTime
;
}
RM_UNIQUE_PROCESS
,
*
PRM_UNIQUE_PROCESS
;
typedef
struct
{
RM_UNIQUE_PROCESS
Process
;
WCHAR
strAppName
[
CCH_RM_MAX_APP_NAME
+
1
];
WCHAR
strServiceShortName
[
CH_RM_MAX_SVC_NAME
+
1
];
RM_APP_TYPE
ApplicationType
;
ULONG
AppStatus
;
DWORD
TSSessionID
;
BOOL
bRestartable
;
}
RM_PROCESS_INFO
,
*
PRM_PROCESS_INFO
;
#ifdef __cplusplus
}
#endif
#endif
/* RESTARTMANAGER_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment