Partager via


CSharedFile::CSharedFile

Constructs a CSharedFile object and allocates memory for it.

CSharedFile(
   UINT nAllocFlags = GMEM_DDESHARE | GMEM_MOVEABLE,
   UINT nGrowBytes = 4096 
);

Parameters

  • nAllocFlags
    Flags indicating how memory is to be allocated. See GlobalAlloc for a list of valid flag values.

  • nGrowBytes
    The memory allocation increment in bytes.

Requirements

Header: afxadv.h

See Also

Concepts

CSharedFile Class

CSharedFile Members

Hierarchy Chart

CSharedFile::Detach

CSharedFile::SetHandle