Export (0) Print
Expand All
Expand Minimize

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(
  _In_  HANDLE hData,
  _In_  DWORD dwProcessId
);

Parameters

hData [in]

Type: HANDLE

A handle to the mapped memory.

dwProcessId [in]

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]

End of client support

Windows XP with SP2

End of server support

Windows Server 2003

Header

Shlwapi.h

Library

Shlwapi.lib

DLL

Shlwapi.dll (version 5.0 or later)

See also

SHAllocShared

 

 

Community Additions

ADD
Show:
© 2014 Microsoft