News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Low Level File Access

Started by cman, September 29, 2005, 04:06:40 PM

Previous topic - Next topic

cman

I think I might have asked before ( but since forgotten  :red ) , how can low level file access be done in assembler? Can this be done as with an array ( set a pointer to the begining addess do the file structure and move back and forth by adding / subtracting offsets ). How is a Windows file stored in memory. Thanks!

Farabi

If you mean creating a function to read the harddisk and then read the FAT structure it is difficult. But for only opening a file, you can use WriteFile function on the windows API.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

ToutEnMasm

hello,
A driver sys is needed,download a ddk (ddk98) to have some samples.
                           ToutEnMasm

hutch--

Unless you are interested in the ring0 driver level, it sounds like normal API style file IO. Have a look at the file IO macros in the MASM32 macro file as they use the normal API calls and this will almost exclusively do all of what you want.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php