flat assembler
Message board for the users of flat assembler.

Index > Windows > Determine size of file mapping object

Author
Thread Post new topic Reply to topic
chorus



Joined: 16 Mar 2004
Posts: 23
chorus 09 May 2004, 17:34
Hello, just a quick question: does anyone know how to determine the size of a file mapping object if only given the handle (returned by CreateFileMapping)? I want to know for when allocating a DIB section through a file mapping object (using CreateDIBSection). Thanks
--Chorus
Post 09 May 2004, 17:34
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 11 May 2004, 21:57
http://www.wasm.ru/forum/index.php?action=vthread&topic=5762&forum=4&page=-1

Quote:
Under NT+ maybe try ZwQuerySection(Handle, SectionBasicInformation,...)

returns

typedef struct _SECTION_BASIC_INFORMATION {
PVOID BaseAddress;
ULONG Attributes;
LARGE_INTEGER Size;
} SECTION_BASIC_INFORMATION,*PSECTION_BASIC_INFORMATION;

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 11 May 2004, 21:57
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.