Don't receive IRP_MJ_CREATE on a CreateFile



Hi,

I use CreateFile on my device to DeviceIoControl on it.
But AFAI understand I should receive IRP_MJ_CREATE on CreateFile and CLEANUP
& CLOSE on CloseHandle (am I right ?) but my driver does not receive these
events. But it receive these from other time (maybe explorer.exe).

What's the problem ?



.



Relevant Pages

  • Re: Difference between IRP_MJ_CLOSE and IRP_MJ_CLEANUP
    ... that the cleanup was called every time I closed a handle to my device, ... reference count on a file object has reached zero. ... Ignoring filesystems, as I think you are not an FSD, each user mode ... Do another CreateFile in your ...
    (microsoft.public.development.device.drivers)
  • Re: ReadFile, WriteFile
    ... For each chunk ... CloseHandle ... CreateFile with read access, allow write ... WriteFile on handle 2 ...
    (microsoft.public.vb.winapi)
  • Re: ReadFile, WriteFile
    ... > For each chunk ... > CloseHandle ... > CreateFile with read access, ... > WriteFile on handle 2 ...
    (microsoft.public.vb.winapi)
  • Re: Bidirectional communication to USB printer
    ... Maybe you have more then one instance of this printer in your registry and ... CreateFile(), ... > WriteFileand CloseHandle() run successfully and all the bytes are ... > written (at least WriteFile() reports this). ...
    (microsoft.public.development.device.drivers)
  • Re: Where and How are Icons and ToolBars stored in an application?
    ... > Use the following API's to combine several resource files into ... > CloseHandle() ... > FindResource() ... > CreateFile() using GENERIC_WRITE, ...
    (microsoft.public.win32.programmer.gdi)

Loading