D
D
Dmitry Orlik2017-07-07 16:42:06
assembler
Dmitry Orlik, 2017-07-07 16:42:06

How to work with WinAPI files from assembler?

DeleteFile("\\comp1\user1\test\test1.txt");
It's understandable, it's easy. And how can I, for example, delete or write some information to a certain sector of the disk? For example, write your bootloader to the boot sector? I need to write this for Windows in assembler. Or do I need to write a driver?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2017-07-07
@DwapDaBase

How can I, for example, delete or write some information to a certain sector of the disk?

Open the drive as a file (file name -- \\.\PhysicalDriveX, X = 0...), then everything is the same as with a file -- SetFilePointer, WriteFile, ...
You don't need an assembler for this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question