ZwCreateFile/NtCreateFile and ZwWriteFile/NtWriteFile

Hi !

Where can I found a simple C/C++ source code with example for make a little
text file inside a .SYS driver ?

I need make a simple .txt log file… and append string in the file…
example:

WriteString( “c:\log.txt”, “Line 1” );
WriteString( “c:\log.txt”, “Line 2” );

Thank you

Marcos

Look at ZwCreateFile, ZwQueryInformationFile, ZwWriteFile,
ZwClose in the DDK documentation.

Don Burn
Windows 2k/XP/2k3 Filesystem and Driver Consulting

----- Original Message -----
From: “Marcos Velasco”
To: “File Systems Developers”
Sent: Wednesday, April 30, 2003 9:01 AM
Subject: [ntfsd] ZwCreateFile/NtCreateFile and ZwWriteFile/NtWriteFile

> Hi !
>
> Where can I found a simple C/C++ source code with example for make a
little
> text file inside a .SYS driver ?
>
> I need make a simple .txt log file… and append string in the file…
> example:
>
> WriteString( “c:\log.txt”, “Line 1” );
> WriteString( “c:\log.txt”, “Line 2” );
>
> Thank you
>
> Marcos
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@acm.org
> To unsubscribe send a blank email to xxxxx@lists.osr.com