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
89eb67db
Commit
89eb67db
authored
Apr 01, 2016
by
Austin English
Committed by
Alexandre Julliard
Apr 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sfc_os: Add SRSetRestorePointA/W stubs.
Signed-off-by:
Austin English
<
austinenglish@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3e96f98c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
6 deletions
+44
-6
sfc.spec
dlls/sfc/sfc.spec
+3
-3
sfc_os.c
dlls/sfc_os/sfc_os.c
+15
-0
sfc_os.spec
dlls/sfc_os/sfc_os.spec
+2
-2
srrestoreptapi.h
include/srrestoreptapi.h
+20
-1
make_specfiles
tools/make_specfiles
+4
-0
No files found.
dlls/sfc/sfc.spec
View file @
89eb67db
...
@@ -7,9 +7,9 @@
...
@@ -7,9 +7,9 @@
7 stub @ # sfc_os.SfcInstallProtectedFiles
7 stub @ # sfc_os.SfcInstallProtectedFiles
8 stub @ # sfc_os.SfpInstallCatalog
8 stub @ # sfc_os.SfpInstallCatalog
9 stub @ # SfpDeleteCatalog
9 stub @ # SfpDeleteCatalog
@ st
ub SRSetRestorePoint
@ st
dcall SRSetRestorePoint(ptr ptr) sfc_os.SRSetRestorePointA
@ st
ub
SRSetRestorePointA
@ st
dcall SRSetRestorePointA(ptr ptr) sfc_os.
SRSetRestorePointA
@ st
ub
SRSetRestorePointW
@ st
dcall SRSetRestorePointW(ptr ptr) sfc_os.
SRSetRestorePointW
@ stdcall SfcGetNextProtectedFile(long ptr) sfc_os.SfcGetNextProtectedFile
@ stdcall SfcGetNextProtectedFile(long ptr) sfc_os.SfcGetNextProtectedFile
@ stdcall SfcIsFileProtected(ptr wstr) sfc_os.SfcIsFileProtected
@ stdcall SfcIsFileProtected(ptr wstr) sfc_os.SfcIsFileProtected
@ stdcall SfcIsKeyProtected(long wstr long) sfc_os.SfcIsKeyProtected
@ stdcall SfcIsKeyProtected(long wstr long) sfc_os.SfcIsKeyProtected
...
...
dlls/sfc_os/sfc_os.c
View file @
89eb67db
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#include "winerror.h"
#include "winerror.h"
#include "winreg.h"
#include "winreg.h"
#include "sfc.h"
#include "sfc.h"
#include "srrestoreptapi.h"
#include "wine/debug.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
sfc
);
WINE_DEFAULT_DEBUG_CHANNEL
(
sfc
);
...
@@ -138,3 +139,17 @@ DWORD WINAPI SfcConnectToServer(DWORD unknown)
...
@@ -138,3 +139,17 @@ DWORD WINAPI SfcConnectToServer(DWORD unknown)
FIXME
(
"%x
\n
"
,
unknown
);
FIXME
(
"%x
\n
"
,
unknown
);
return
0
;
return
0
;
}
}
BOOL
WINAPI
SRSetRestorePointA
(
RESTOREPOINTINFOA
*
restorepoint
,
STATEMGRSTATUS
*
status
)
{
FIXME
(
"%p %p
\n
"
,
restorepoint
,
status
);
status
->
nStatus
=
ERROR_SERVICE_DISABLED
;
return
FALSE
;
}
BOOL
WINAPI
SRSetRestorePointW
(
RESTOREPOINTINFOW
*
restorepoint
,
STATEMGRSTATUS
*
status
)
{
FIXME
(
"%p %p
\n
"
,
restorepoint
,
status
);
status
->
nStatus
=
ERROR_SERVICE_DISABLED
;
return
FALSE
;
}
dlls/sfc_os/sfc_os.spec
View file @
89eb67db
@ stub BeginFileMapEnumeration
@ stub BeginFileMapEnumeration
@ stub CloseFileMapEnumeration
@ stub CloseFileMapEnumeration
@ stub GetNextFileMapContent
@ stub GetNextFileMapContent
@ st
ub SRSetRestorePointA
@ st
dcall SRSetRestorePointA(ptr ptr)
@ st
ub SRSetRestorePointW
@ st
dcall SRSetRestorePointW(ptr ptr)
@ stub SfcClose
@ stub SfcClose
@ stdcall SfcConnectToServer(long)
@ stdcall SfcConnectToServer(long)
@ stub SfcFileException
@ stub SfcFileException
...
...
include/srrestoreptapi.h
View file @
89eb67db
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
#define APPLICATION_INSTALL 0
#define APPLICATION_INSTALL 0
#define MAX_DESC 64
#define MAX_DESC 64
#define MAX_DESC_W 256
#pragma pack(1)
#pragma pack(1)
...
@@ -39,6 +40,21 @@ typedef struct _RESTOREPTINFOA {
...
@@ -39,6 +40,21 @@ typedef struct _RESTOREPTINFOA {
CHAR
szDescription
[
MAX_DESC
];
CHAR
szDescription
[
MAX_DESC
];
}
RESTOREPOINTINFOA
,
*
PRESTOREPOINTINFOA
;
}
RESTOREPOINTINFOA
,
*
PRESTOREPOINTINFOA
;
typedef
struct
_RESTOREPTINFOW
{
DWORD
dwEventType
;
DWORD
dwRestorePtType
;
INT64
llSequenceNumber
;
WCHAR
szDescription
[
MAX_DESC_W
];
}
RESTOREPOINTINFOW
,
*
PRESTOREPOINTINFOW
;
typedef
struct
_RESTOREPTINFOEX
{
FILETIME
ftCreation
;
DWORD
dwEventType
;
DWORD
dwRestorePtType
;
DWORD
dwRPNum
;
WCHAR
szDescription
[
MAX_DESC_W
];
}
RESTOREPOINTINFOEX
,
*
PRESTOREPOINTINFOEX
;
typedef
struct
_SMGRSTATUS
{
typedef
struct
_SMGRSTATUS
{
DWORD
nStatus
;
DWORD
nStatus
;
INT64
llSequenceNumber
;
INT64
llSequenceNumber
;
...
@@ -48,7 +64,10 @@ typedef struct _SMGRSTATUS {
...
@@ -48,7 +64,10 @@ typedef struct _SMGRSTATUS {
extern
"C"
{
extern
"C"
{
#endif
#endif
BOOL
WINAPI
SRSetRestorePointA
(
PRESTOREPOINTINFOA
,
PSTATEMGRSTATUS
);
BOOL
WINAPI
SRSetRestorePointA
(
RESTOREPOINTINFOA
*
,
STATEMGRSTATUS
*
);
BOOL
WINAPI
SRSetRestorePointW
(
RESTOREPOINTINFOW
*
,
STATEMGRSTATUS
*
);
#define SRSetRestorePoint WINELIB_NAME_AW(SRSetRestorePoint)
DWORD
WINAPI
SRRemoveRestorePoint
(
DWORD
);
DWORD
WINAPI
SRRemoveRestorePoint
(
DWORD
);
#ifdef __cplusplus
#ifdef __cplusplus
...
...
tools/make_specfiles
View file @
89eb67db
...
@@ -280,6 +280,10 @@ my @dll_groups =
...
@@ -280,6 +280,10 @@ my @dll_groups =
"bthprops.cpl"
,
"bthprops.cpl"
,
"irprops.cpl"
,
"irprops.cpl"
,
],
],
[
"sfc_os"
,
"sfc"
,
],
);
);
my
$update_flags
=
0
;
my
$update_flags
=
0
;
...
...
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