[SHFreeShared is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]
Frees shared memory, regardless of which process allocated it.
BOOL SHFreeShared( HANDLE hData, DWORD dwProcessId );
A handle to the mapped memory.
The process ID of the process from which the memory was allocated.
Returns TRUE if successful; otherwise, FALSE. To get extended error information, call GetLastError.
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|
|DLL||Shlwapi.dll (version 5.0 or later)|