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
34b783c1
Commit
34b783c1
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 MsiSIPIsMyTypeOfFile.
parent
8fbd2c85
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
2 deletions
+36
-2
Makefile.in
dlls/msisip/Makefile.in
+1
-1
main.c
dlls/msisip/main.c
+34
-0
msisip.spec
dlls/msisip/msisip.spec
+1
-1
No files found.
dlls/msisip/Makefile.in
View file @
34b783c1
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
msisip.dll
IMPORTS
=
crypt32 kernel32
IMPORTS
=
crypt32
ole32
kernel32
C_SRCS
=
\
main.c
...
...
dlls/msisip/main.c
View file @
34b783c1
...
...
@@ -22,6 +22,8 @@
#include "winbase.h"
#include "wincrypt.h"
#include "mssip.h"
#define COBJMACROS
#include "objbase.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msisip
);
...
...
@@ -93,3 +95,35 @@ HRESULT WINAPI DllUnregisterServer(void)
CryptSIPRemoveProvider
(
&
mySubject
);
return
S_OK
;
}
/***********************************************************************
* MsiSIPIsMyTypeOfFile (MSISIP.@)
*/
BOOL
WINAPI
MsiSIPIsMyTypeOfFile
(
WCHAR
*
name
,
GUID
*
subject
)
{
static
const
WCHAR
msi
[]
=
{
'.'
,
'm'
,
's'
,
'i'
,
0
};
static
const
WCHAR
msp
[]
=
{
'.'
,
'm'
,
's'
,
'p'
,
0
};
BOOL
ret
=
FALSE
;
TRACE
(
"(%s, %p)
\n
"
,
debugstr_w
(
name
),
subject
);
if
(
lstrlenW
(
name
)
<
lstrlenW
(
msi
))
return
FALSE
;
else
if
(
lstrcmpiW
(
name
+
lstrlenW
(
name
)
-
lstrlenW
(
msi
),
msi
)
&&
lstrcmpiW
(
name
+
lstrlenW
(
name
)
-
lstrlenW
(
msp
),
msp
))
return
FALSE
;
else
{
IStorage
*
stg
=
NULL
;
HRESULT
r
=
StgOpenStorage
(
name
,
NULL
,
STGM_DIRECT
|
STGM_READ
|
STGM_SHARE_DENY_WRITE
,
NULL
,
0
,
&
stg
);
if
(
SUCCEEDED
(
r
))
{
IStorage_Release
(
stg
);
*
subject
=
mySubject
;
ret
=
TRUE
;
}
}
return
ret
;
}
dlls/msisip/msisip.spec
View file @
34b783c1
5 st
ub MsiSIPIsMyTypeOfFile
5 st
dcall MsiSIPIsMyTypeOfFile(wstr ptr)
6 stub MsiSIPGetSignedDataMsg
7 stub MsiSIPPutSignedDataMsg
8 stub MsiSIPRemoveSignedDataMsg
...
...
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