SHFreeShared function

[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.

Syntax

BOOL SHFreeShared(
  HANDLE hData,
  DWORD  dwProcessId
);

Parameters

hData

Type: HANDLE

A handle to the mapped memory.

dwProcessId

Type: DWORD

The process ID of the process from which the memory was allocated.

Return Value

Type: BOOL

Returns TRUE if successful; otherwise, FALSE. To get extended error information, call GetLastError.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shlwapi.h
Library Shlwapi.lib
DLL Shlwapi.dll (version 5.0 or later)

See Also

SHAllocShared