Solved

Size and filemapping

Posted on 2002-03-26
2
170 Views
Last Modified: 2013-12-03
Hi

Two questions about filemapping.

Is it possible to determine the size of a mapped file, when I just have a handle to the mappedfile.

Is it possible to increase the size of a mapped file. If I map lets say win.ini could I then append a section to the ini-file which would be saved physical to win.ini
0
Comment
Question by:koger
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 6896300
>>Is it possible to determine the size of a mapped file, when I just have a handle to the mappedfile

You should be able to get that using 'GetFileSize()'...
0
 
LVL 20

Accepted Solution

by:
Madshi earned 200 total points
ID: 6896762
If you only have the handle of the file mapping object, but not the handle of the file itself, then you can't get the size. Well, maybe by using undocumented functions, but not with official stuff.

Also you can't change the size of a file mapping. Sorry for the bad news. You have to unmap and remap to change the size.

Regards, Madshi.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DataAdapter, stored procedures and parameters 2 60
Microsoft App Store does not Download and Update the apps in Windows 10 5 104
Problem to packaging 1 129
PL SQL Developer 7 90
This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question