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
481a67e8
Commit
481a67e8
authored
Apr 17, 2004
by
Mike Hearn
Committed by
Alexandre Julliard
Apr 17, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation for SystemFunction040 and SystemFunction041 has become
available, so stub them out in case applications use them.
parent
d43e1b24
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
2 deletions
+42
-2
advapi32.spec
dlls/advapi32/advapi32.spec
+2
-2
crypt.c
dlls/advapi32/crypt.c
+40
-0
No files found.
dlls/advapi32/advapi32.spec
View file @
481a67e8
...
...
@@ -315,8 +315,8 @@
@ stub SystemFunction034
@ stub SystemFunction035
@ stub SystemFunction036
@ st
ub SystemFunction040
@ st
ub SystemFunction041
@ st
dcall SystemFunction040(ptr long long) # RtlEncryptMemory
@ st
dcall SystemFunction041(ptr long long) # RtlDecryptMemory
@ stub TraceEvent
@ stub TraceEventInstance
@ stub TraceMessage
...
...
dlls/advapi32/crypt.c
View file @
481a67e8
...
...
@@ -39,6 +39,8 @@
#include "winbase.h"
#include "winuser.h"
#include "wine/debug.h"
#include "winternl.h"
#include "ntstatus.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
crypt
);
...
...
@@ -1344,3 +1346,41 @@ BOOL WINAPI CryptVerifySignatureA (HCRYPTHASH hHash, BYTE *pbSignature, DWORD dw
return
prov
->
pFuncs
->
pCPVerifySignature
(
prov
->
hPrivate
,
hash
->
hPrivate
,
pbSignature
,
dwSigLen
,
key
->
hPrivate
,
NULL
,
dwFlags
);
}
/*
These functions have nearly identical prototypes to CryptProtectMemory and CryptUnprotectMemory,
in crypt32.dll.
*/
/******************************************************************************
* SystemFunction040 (ADVAPI32.@)
*
* PARAMS:
* memory : pointer to memory to encrypt
* length : length of region to encrypt, in bytes. must be multiple of RTL_ENCRYPT_MEMORY_SIZE
* flags : RTL_ENCRYPT_OPTION_SAME_PROCESS | RTL_ENCRYPT_OPTION_CROSS_PROCESS, | RTL_ENCRYPT_OPTION_SAME_LOGON
* control whether other processes are able to decrypt the memory. The same value must be given
* when decrypting the memory.
*/
NTSTATUS
WINAPI
SystemFunction040
(
PVOID
memory
,
ULONG
length
,
ULONG
flags
)
/* RtlEncryptMemory */
{
FIXME
(
"(%p, %lx, %lx): stub [RtlEncryptMemory]
\n
"
,
memory
,
length
,
flags
);
return
STATUS_SUCCESS
;
}
/******************************************************************************
* SystemFunction041 (ADVAPI32.@)
*
* PARAMS:
* memory : pointer to memory to decrypt
* length : length of region to decrypt, in bytes. must be multiple of RTL_ENCRYPT_MEMORY_SIZE
* flags : RTL_ENCRYPT_OPTION_SAME_PROCESS | RTL_ENCRYPT_OPTION_CROSS_PROCESS, | RTL_ENCRYPT_OPTION_SAME_LOGON
* control whether other processes are able to decrypt the memory. The same value must be given
* when encrypting the memory.
*/
NTSTATUS
WINAPI
SystemFunction041
(
PVOID
memory
,
ULONG
length
,
ULONG
flags
)
/* RtlDecryptMemory */
{
FIXME
(
"(%p, %lx, %lx): stub [RtlDecryptMemory]
\n
"
,
memory
,
length
,
flags
);
return
STATUS_SUCCESS
;
}
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