Using Win32 functions in Visual FoxPro Image Gallery
File Mapping
Code examples:
Using File Mapping for enumerating files opened by Visual FoxPro
Using shared memory to exchange data between applications (processes)
..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 shared memory to exchange data between applications (processes)
Using File Mapping for enumerating files opened by Visual FoxPro
BOOL UnmapViewOfFile(
  LPCVOID lpBaseAddress

FoxPro declaration:
DECLARE INTEGER UnmapViewOfFile IN kernel32;
    LONG 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 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: 29
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 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.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
4 sec.Function: 'CompareFileTime'
9 sec.Example: 'Verifying a file using the Authenticode policy provider'
14 sec.Function: 'RevertToSelf'
18 sec.Function: 'CopyImage'
23 sec.Function: 'SetNamedPipeHandleState'
29 sec.Function: 'RasPhonebookDlg'
33 sec.Example: 'GDI+: sending image of FoxPro form to printer'
37 sec.Example: 'Creating the Save dialog box to specify the drive, directory, and name of a file to save'
43 sec.Function: 'SetTextCharacterExtra'
47 sec.
Function group: 'GDI+ PathGradient Brush'
Advertise here!