Wlak through the test app and the service with the visual studio debugger.
This stuff is not intended to print things, it is an example of how to
approach the code.
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply
“Bin Zeng” wrote in message news:xxxxx@ntfsd…
> Hi,Don
>
> I build the driver and service in DDK at last after i install the visual
> studio 6.0,
> but when i run the exe file appsrv.exe, it doesn’t have anything show up.
>
> Do you know why?
>
> Thanks
>
> Bin
>
>
>>From: “Don Burn”
>>Reply-To: “Windows File Systems Devs Interest List”
>>To: “Windows File Systems Devs Interest List”
>>Subject: Re:[ntfsd] Re:Re:Re:Read Named pipe problem in kernel driver
>>Date: Thu, 22 Sep 2005 15:33:03 -0400
>>
>>Yes you need the DDK to build it.
>>
>>
>>–
>>Don Burn (MVP, Windows DDK)
>>Windows 2k/XP/2k3 Filesystem and Driver Consulting
>>Remove StopSpam from the email to reply
>>
>>
>>“Bin Zeng” wrote in message news:xxxxx@ntfsd…
>> > Thanks again,Don. I have downloaded the code, but i am kinda stupid,
>> > I don’t know how to build it ant test it, when i open the project in
>> > visual studio,
>> > buid it, it got error!!, Do i build it in DDK? …
>> >
>> > Bin
>> >
>> >
>> >
>> >>From: “Don Burn”
>> >>Reply-To: “Windows File Systems Devs Interest List”
>>
>> >>To: “Windows File Systems Devs Interest List”
>> >>Subject: Re:[ntfsd] Re:Re:Read Named pipe problem in kernel driver
>> >>Date: Thu, 22 Sep 2005 14:57:19 -0400
>> >>
>> >>The OSR article has demo code with it.
>> >>
>> >>
>> >>
>> >>–
>> >>Don Burn (MVP, Windows DDK)
>> >>Windows 2k/XP/2k3 Filesystem and Driver Consulting
>> >>Remove StopSpam from the email to reply
>> >>
>> >>
>> >>“Bin Zeng” wrote in message news:xxxxx@ntfsd…
>> >> > Hi,Don, I am appreciated for your help!!!
>> >> >
>> >> > Do you know where i can get some example code? It will be easier for
>> >> > me.
>> >> >
>> >> > Thanks
>> >> >
>> >> > Bin
>> >> >
>> >> >
>> >> >>From: “Don Burn”
>> >> >>Reply-To: “Windows File Systems Devs Interest List”
>> >>
>> >> >>To: “Windows File Systems Devs Interest List”
>> >> >>Subject: Re:[ntfsd] Re:Read Named pipe problem in kernel driver
>> >> >>Date: Thu, 22 Sep 2005 14:28:46 -0400
>> >> >>
>> >> >>From user to kernel use IOCTL’s, from kernel to user use IOCTL’s as
>>an
>> >> >>inverted call, see OSR article on this
>> >> >>http://www.osronline.com/article.cfm?id=94.
>> >> >>
>> >> >>
>> >> >>–
>> >> >>Don Burn (MVP, Windows DDK)
>> >> >>Windows 2k/XP/2k3 Filesystem and Driver Consulting
>> >> >>Remove StopSpam from the email to reply
>> >> >>
>> >> >>
>> >> >>
>> >> >>“Bin Zeng” wrote in message news:xxxxx@ntfsd…
>> >> >> > Thanks Don,
>> >> >> >
>> >> >> > I just want to do the things like this, before the user delete
>> >> >> > the
>> >> >> > files
>> >> >> > or modify the files,
>> >> >> > i need to send these process to my application to verify the user
>> >> >> > and
>> >> >>the
>> >> >> > files.
>> >> >> >
>> >> >> > Do you have any good suggestion to communicate between
>> >> >> > application
>> >>and
>> >> >> > kernel?
>> >> >> >
>> >> >> > Bin
>> >> >> >
>> >> >> >
>> >> >> >>From: “Don Burn”
>> >> >> >>Reply-To: “Windows File Systems Devs Interest List”
>> >> >>
>> >> >> >>To: “Windows File Systems Devs Interest List”
>>
>> >> >> >>Subject: Re:[ntfsd] Read Named pipe problem in kernel driver
>> >> >> >>Date: Thu, 22 Sep 2005 12:33:09 -0400
>> >> >> >>
>> >> >> >>I have to ask, why would you want to do such a thing in the
>>kernel?
>> >> >>There
>> >> >> >>are so many better approaches for user to kernel communication,
>> >> >> >>so
>> >>what
>> >> >>is
>> >> >> >>the reasoning?
>> >> >> >>
>> >> >> >>
>> >> >> >>–
>> >> >> >>Don Burn (MVP, Windows DDK)
>> >> >> >>Windows 2k/XP/2k3 Filesystem and Driver Consulting
>> >> >> >>Remove StopSpam from the email to reply
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>“Bin Zeng” wrote in message
>>news:xxxxx@ntfsd…
>> >> >> >> > Hi,
>> >> >> >> >
>> >> >> >> > I created a named pipe with MFC, it worked well in MFC. In
>>kernel
>> >>i
>> >> >> >> > want
>> >> >> >> > to write/read the
>> >> >> >> > the name pipe, i can write, the MFC application can get the
>>data
>> >> >> >> > from
>> >> >> >> > kernel. But i can’t read from application in kernel, the
>> >> >> >> > error
>> >> >> >> > is
>> >> >>“NO
>> >> >> >> > DATA AVAILABLE”.
>> >> >> >> >
>> >> >> >> > the code is as follwoing:
>> >> >> >> > ntStatus = ZwCreateFile( &NtFileHandle,
>> >> >> >> > SYNCHRONIZE | GENERIC_READ |
>> >> >>GENERIC_WRITE,
>> >> >> >> > &ObjectAttributes,
>> >> >> >> > &IoStatus,
>> >> >> >> > NULL, //
>> >> >> >> > alloc
>> >> >>size
>> >> >> >> > =none
>> >> >> >> > FILE_ATTRIBUTE_NORMAL,
>> >> >> >> > FILE_SHARE_READ| FILE_SHARE_WRITE,
>> >> >> >> > FILE_OPEN,
>> >> >> >> > FILE_SYNCHRONOUS_IO_NONALERT,
>> >> >> >> > NULL, // eabuffer
>> >> >> >> > 0 ); // ealength
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > ntStatus =ZwWriteFile(
>> >> >> >> > NtFileHandle,
>> >> >> >> > NULL,
>> >> >> >> > NULL,
>> >> >> >> > NULL,
>> >> >> >> > &IoStatusBlock,
>> >> >> >> > PipeBuffer,
>> >> >> >> > BufferLength,
>> >> >> >> > NULL,
>> >> >> >> > NULL
>> >> >> >> > );
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > ntStatus =ZwReadFile(
>> >> >> >> > NtFileHandle,
>> >> >> >> > NULL,
>> >> >> >> > NULL,
>> >> >> >> > NULL,
>> >> >> >> > &IoStatusBlock,
>> >> >> >> > &InPipeBuffer,
>> >> >> >> > BufferLength,
>> >> >> >> > NULL,
>> >> >> >> > NULL
>> >> >> >> > );
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > Anyone have have idea what’s problem for readfile?
>> >> >> >> >
>> >> >> >> > Bin
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>—
>> >> >> >>Questions? First check the IFS FAQ at
>> >> >> >>https://www.osronline.com/article.cfm?id=17
>> >> >> >>
>> >> >> >>You are currently subscribed to ntfsd as: xxxxx@hotmail.com
>> >> >> >>To unsubscribe send a blank email to
>> >> >> >>xxxxx@lists.osr.com
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >>—
>> >> >>Questions? First check the IFS FAQ at
>> >> >>https://www.osronline.com/article.cfm?id=17
>> >> >>
>> >> >>You are currently subscribed to ntfsd as: xxxxx@hotmail.com
>> >> >>To unsubscribe send a blank email to
>> >> >>xxxxx@lists.osr.com
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >>—
>> >>Questions? First check the IFS FAQ at
>> >>https://www.osronline.com/article.cfm?id=17
>> >>
>> >>You are currently subscribed to ntfsd as: xxxxx@hotmail.com
>> >>To unsubscribe send a blank email to xxxxx@lists.osr.com
>> >
>> >
>> >
>>
>>
>>
>>—
>>Questions? First check the IFS FAQ at
>>https://www.osronline.com/article.cfm?id=17
>>
>>You are currently subscribed to ntfsd as: xxxxx@hotmail.com
>>To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>