Subject | Re: [Firebird-Architect] Re: Vulcan architecture and lock tables |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2006-12-16T12:47:30Z |
On 16 Dec 2006 at 14:28, Vlad Horsun wrote:
If hFile is (HANDLE)0xFFFFFFFF, the calling process must also specify
a mapping object size in the dwMaximumSizeHigh and dwMaximumSizeLow
parameters. The function creates a file-mapping object of the
specified size backed by the operating-system paging file rather than
by a named file in the file system. The file-mapping object can be
shared through duplication, through inheritance, or by name.
--
SY, Dimitry Sibiryakov.
>> [1] Linkage of lock file to a file system pathWhy? Easily. Let me quote MSDN CreateFileMapping:
>>
>> In my understanding FB only needs a named shared memory area. Why is
>> it mapped to a file system path? Just as a convenient uri? Or are
>> there other reasons?
>
> As i understand WinAPI we can't create shared memory area without
>giving it the file name
If hFile is (HANDLE)0xFFFFFFFF, the calling process must also specify
a mapping object size in the dwMaximumSizeHigh and dwMaximumSizeLow
parameters. The function creates a file-mapping object of the
specified size backed by the operating-system paging file rather than
by a named file in the file system. The file-mapping object can be
shared through duplication, through inheritance, or by name.
--
SY, Dimitry Sibiryakov.