Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SHLockShared function

[SHLockShared is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Maps a block of memory from a specified process into the calling process.

Syntax


void* SHLockShared(
  _In_ HANDLE hData,
  _In_ DWORD  dwProcessId
);

Parameters

hData [in]

Type: HANDLE

A handle to the memory you want to map into the calling process.

dwProcessId [in]

Type: DWORD

The process ID of the process from which you want to map the block of memory.

Return value

Returns a void pointer to the shared memory. Returns NULL if unsuccessful.

Remarks

Call SHUnlockShared to unlock the memory that this function maps. Call SHFreeShared to release the memory.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

End of client support

Windows XP with SP2

End of server support

Windows Server 2003

Header

Shlwapi.h

DLL

Shlwapi.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft