CSharedFile::SetHandle
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

CSharedFile::SetHandle 

Call this function to attach a block of global memory to the CSharedFile object.


void SetHandle(
   HGLOBAL hGlobalMemory,
   BOOL bAllowGrow = TRUE 
);

Parameters

hGlobalMemory

Handle to the global memory to be attached to the CSharedFile.

bAllowGrow

Specifies whether the memory block is allowed to grow.

If bAllowGrow is nonzero, the size of the memory block is increased as necessary, for example, if an attempt is made to write more bytes to the file than were allocated for the memory block.

Show:
© 2016 Microsoft