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


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

void SetHandle(
   HGLOBAL hGlobalMemory,
   BOOL bAllowGrow = TRUE 



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


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.

© 2016 Microsoft