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
8fbd2c85
Commit
8fbd2c85
authored
Jul 31, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Aug 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msisip: Implement DllRegisterServer/DllUnregisterServer.
parent
8a6c2c2b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
3 deletions
+53
-3
Makefile.in
dlls/msisip/Makefile.in
+1
-1
main.c
dlls/msisip/main.c
+50
-0
msisip.spec
dlls/msisip/msisip.spec
+2
-2
No files found.
dlls/msisip/Makefile.in
View file @
8fbd2c85
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
msisip.dll
IMPORTS
=
kernel32
IMPORTS
=
crypt32
kernel32
C_SRCS
=
\
main.c
...
...
dlls/msisip/main.c
View file @
8fbd2c85
...
...
@@ -20,6 +20,8 @@
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wincrypt.h"
#include "mssip.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msisip
);
...
...
@@ -43,3 +45,51 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
return
TRUE
;
}
static
GUID
mySubject
=
{
0x000c10f1
,
0x0000
,
0x0000
,
{
0xc0
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x46
}};
/***********************************************************************
* DllRegisterServer (MSISIP.@)
*/
HRESULT
WINAPI
DllRegisterServer
(
void
)
{
static
WCHAR
msisip
[]
=
{
'M'
,
'S'
,
'I'
,
'S'
,
'I'
,
'P'
,
'.'
,
'D'
,
'L'
,
'L'
,
0
};
static
WCHAR
getSignedDataMsg
[]
=
{
'M'
,
's'
,
'i'
,
'S'
,
'I'
,
'P'
,
'G'
,
'e'
,
't'
,
'S'
,
'i'
,
'g'
,
'n'
,
'e'
,
'd'
,
'D'
,
'a'
,
't'
,
'a'
,
'M'
,
's'
,
'g'
,
0
};
static
WCHAR
putSignedDataMsg
[]
=
{
'M'
,
's'
,
'i'
,
'S'
,
'I'
,
'P'
,
'P'
,
'u'
,
't'
,
'S'
,
'i'
,
'g'
,
'n'
,
'e'
,
'd'
,
'D'
,
'a'
,
't'
,
'a'
,
'M'
,
's'
,
'g'
,
0
};
static
WCHAR
createIndirectData
[]
=
{
'M'
,
's'
,
'i'
,
'S'
,
'I'
,
'P'
,
'C'
,
'r'
,
'e'
,
'a'
,
't'
,
'e'
,
'I'
,
'n'
,
'd'
,
'i'
,
'r'
,
'e'
,
'c'
,
't'
,
'D'
,
'a'
,
't'
,
'a'
,
0
};
static
WCHAR
verifyIndirectData
[]
=
{
'M'
,
's'
,
'i'
,
'S'
,
'I'
,
'P'
,
'V'
,
'e'
,
'r'
,
'i'
,
'f'
,
'y'
,
'I'
,
'n'
,
'd'
,
'i'
,
'r'
,
'e'
,
'c'
,
't'
,
'D'
,
'a'
,
't'
,
'a'
,
0
};
static
WCHAR
removeSignedDataMsg
[]
=
{
'M'
,
's'
,
'i'
,
'S'
,
'I'
,
'P'
,
'R'
,
'e'
,
'm'
,
'o'
,
'v'
,
'e'
,
'S'
,
'i'
,
'g'
,
'n'
,
'e'
,
'd'
,
'D'
,
'a'
,
't'
,
'a'
,
'M'
,
's'
,
'g'
,
0
};
static
WCHAR
isMyTypeOfFile
[]
=
{
'M'
,
's'
,
'i'
,
'S'
,
'I'
,
'P'
,
'I'
,
's'
,
'M'
,
'y'
,
'T'
,
'y'
,
'p'
,
'e'
,
'O'
,
'f'
,
'F'
,
'i'
,
'l'
,
'e'
,
0
};
SIP_ADD_NEWPROVIDER
prov
;
memset
(
&
prov
,
0
,
sizeof
(
prov
));
prov
.
cbStruct
=
sizeof
(
prov
);
prov
.
pwszDLLFileName
=
msisip
;
prov
.
pgSubject
=
&
mySubject
;
prov
.
pwszGetFuncName
=
getSignedDataMsg
;
prov
.
pwszPutFuncName
=
putSignedDataMsg
;
prov
.
pwszCreateFuncName
=
createIndirectData
;
prov
.
pwszVerifyFuncName
=
verifyIndirectData
;
prov
.
pwszRemoveFuncName
=
removeSignedDataMsg
;
prov
.
pwszIsFunctionNameFmt2
=
isMyTypeOfFile
;
return
CryptSIPAddProvider
(
&
prov
)
?
S_OK
:
S_FALSE
;
}
/***********************************************************************
* DllUnregisterServer (MSISIP.@)
*/
HRESULT
WINAPI
DllUnregisterServer
(
void
)
{
CryptSIPRemoveProvider
(
&
mySubject
);
return
S_OK
;
}
dlls/msisip/msisip.spec
View file @
8fbd2c85
...
...
@@ -4,5 +4,5 @@
8 stub MsiSIPRemoveSignedDataMsg
9 stub MsiSIPCreateIndirectData
10 stub MsiSIPVerifyIndirectData
11 st
ub DllRegisterServer
12 st
ub DllUnregisterServer
11 st
dcall DllRegisterServer()
12 st
dcall DllUnregisterServer()
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