Commit 07b502e0 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

shlwapi: Use the public definition of shared shell memory allocation functions.

parent 83023a9f
No related merge requests found
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "wine/debug.h" #include "wine/debug.h"
#include "shell32_main.h" #include "shell32_main.h"
#include "pidl.h" #include "pidl.h"
#include "shlwapi.h"
WINE_DEFAULT_DEBUG_CHANNEL(shell); WINE_DEFAULT_DEBUG_CHANNEL(shell);
......
...@@ -1353,7 +1353,7 @@ BOOL WINAPI IsUserAnAdmin(VOID) ...@@ -1353,7 +1353,7 @@ BOOL WINAPI IsUserAnAdmin(VOID)
* *
* See shlwapi.SHAllocShared * See shlwapi.SHAllocShared
*/ */
HANDLE WINAPI SHAllocShared(LPVOID lpvData, DWORD dwSize, DWORD dwProcId) HANDLE WINAPI SHAllocShared(const void *lpvData, DWORD dwSize, DWORD dwProcId)
{ {
GET_FUNC(pSHAllocShared, shlwapi, (char*)7, NULL); GET_FUNC(pSHAllocShared, shlwapi, (char*)7, NULL);
return pSHAllocShared(lpvData, dwSize, dwProcId); return pSHAllocShared(lpvData, dwSize, dwProcId);
......
...@@ -32,30 +32,6 @@ extern "C" { ...@@ -32,30 +32,6 @@ extern "C" {
#endif /* defined(__cplusplus) */ #endif /* defined(__cplusplus) */
/**************************************************************************** /****************************************************************************
* Memory Routines
*/
/* The Platform SDK's shlobj.h header defines similar functions with a
* leading underscore. However those are unusable because of the leading
* underscore, because they have an incorrect calling convention, and
* because these functions are not exported by name anyway.
*/
HANDLE WINAPI SHAllocShared(
LPVOID pv,
ULONG cb,
DWORD pid);
BOOL WINAPI SHFreeShared(
HANDLE hMem,
DWORD pid);
LPVOID WINAPI SHLockShared(
HANDLE hMem,
DWORD pid);
BOOL WINAPI SHUnlockShared(LPVOID pv);
/****************************************************************************
* System Imagelist Routines * System Imagelist Routines
*/ */
......
...@@ -1173,6 +1173,11 @@ BOOL WINAPI SHIsLowMemoryMachine(DWORD type); ...@@ -1173,6 +1173,11 @@ BOOL WINAPI SHIsLowMemoryMachine(DWORD type);
#include <poppack.h> #include <poppack.h>
HANDLE WINAPI SHAllocShared(const void *data, DWORD size, DWORD pid);
BOOL WINAPI SHFreeShared(HANDLE handle, DWORD pid);
void * WINAPI SHLockShared(HANDLE handle, DWORD pid);
BOOL WINAPI SHUnlockShared(void *data);
#ifdef __cplusplus #ifdef __cplusplus
} /* extern "C" */ } /* extern "C" */
#endif /* defined(__cplusplus) */ #endif /* defined(__cplusplus) */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment