This unit implement a Stream class supporting the FileMapping utilities.

The class TFileMappingStream_San inherits TStream, and provide with an
easier way to manipulate the FileMapping objects in comparison of windows APIs.

It's a pity that there is not ,in my opinion , a way to detect the size
of a FileMapping Object with a specific name,which was already created
directly by windows API or others. Anyone knows ,please tell me.
Thanks! sanease@tom.com

}

unit FileMapping_San;

interface

useswindows, messages, sysutils, classes;

constc_msgstr = 'msgstr_san_{9BB1155F-1A06-4664-AB21-AB0A0C05A658}';

c_emsamename = 'The global atom with the name of "%s" already exists';
c_emdiskfull = 'The disk is full , it''s unable to Create the filemapping' +
'with the Size of %d bytes and the Name of "%s"';
c_emunknown = 'Unknown error occured when create file mapping with the name of "%s"';
c_emprotect = 'The protect mode %d of filemapping is invalid with the name of "%s"';