Επεξεργασία

Κοινή χρήση μέσω


SHUnlockShared function (shlwapi.h)

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

Unlocks memory locked by SHLockShared.

Syntax

BOOL SHUnlockShared(
  [in] void *pvData
);

Parameters

[in] pvData

Type: void*

A pointer to the shared memory block returned by SHLockShared.

Return value

Type: BOOL

If the function succeeds, the return value is TRUE and all modified pages within the specified range are written to the disk with low priority. If the function fails, the return value is FALSE. To get extended error information, call GetLastError.

Remarks

Call SHFreeShared to free the memory block.

Requirements

Requirement Value
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