Share via


BufferDisposalFlag (Windows Embedded CE 6.0)

1/6/2010

This enumeration provides values that are used to describe how a memory buffer should be released when a task is completed.

Syntax

enum BufferDisposalFlag {
  BufferDisposalFlagNone,
  BufferDisposalFlagGlobalFree,
  BufferDisposalFlagCoTaskMemFree,
  BufferDisposalFlagUnmapView
};

Elements

  • BufferDisposalFlagNone
    Indicates that nothing should be done to the memory buffer when the image object is released.
  • BufferDisposalFlagGlobalFree
    Indicates that the memory buffer should be released with GlobalFree. Use this when the memory is defined with the HGLOBAL data type.
  • BufferDisposalFlagCoTaskMemFree
    Indicates that the memory buffer should be released with CoTaskMemFree.
  • BufferDisposalFlagUnmapView
    Indicates that the memory buffer should be released with UnmapViewOfFile.

Requirements

Header imaging.h
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

Imaging Enumerations
IImagingFactory::CreateImageFromBuffer