Using Win32 functions in Visual FoxPro Image Gallery
File Mapping
..msdn
CreateFileMapping
GetMappedFileName
MapViewOfFile
UnmapViewOfFile
Code examples:
Using File Mapping for enumerating files opened by Visual FoxPro
Using shared memory to exchange data between applications (processes)
UnmapViewOfFile
..msdn    Add comment     W32 Constants      Translate this page
The UnmapViewOfFile function unmaps a mapped view of a file from the calling process"s address space.
Code examples:
Using File Mapping for enumerating files opened by Visual FoxPro
Using shared memory to exchange data between applications (processes)
Declaration:
BOOL UnmapViewOfFile(
  LPCVOID lpBaseAddress
);

FoxPro declaration:
DECLARE INTEGER UnmapViewOfFile IN kernel32;
    LONG lpBaseAddress
Parameters:
lpBaseAddress
[in] Pointer to the base address of the mapped view of a file that is to be unmapped.
Return value:
If the function succeeds, the return value is nonzero, and all dirty pages within the specified range are written "lazily" to disk.
My comment:
Although an application may close the file handle used to create a file mapping object, the system holds the corresponding file open until the last view of the file is unmapped.

See also: MapViewOfFile, MapViewOfFileEx.
Word Index links for the UnmapViewOfFile :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-11-02 20:00:40
Modified: 2004-11-02 20:03:03
Visited in last 7 days: 18
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.80.10.56)
5 sec.Function: 'MessageBox'
13 sec.Function: 'TrackPopupMenuEx'
21 sec.Function: 'SetComputerName'
27 sec.Function: 'SetProp'
34 sec.Function: 'LsaClose'
41 sec.Function: 'MQOpenQueue'
49 sec.Function: 'GetVolumeInformation'
58 sec.Function: 'WNetCancelConnection2'
1.1 min.Function: 'JetOpenTable'
1.22 min.Function: 'GetWindowText'
Google
Advertise here!