Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Hardware & Devices
  4. A very urgent problem

A very urgent problem

Scheduled Pinned Locked Moved Hardware & Devices
helpquestion
2 Posts 2 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    momer
    wrote on last edited by
    #1

    Hi! :) Now I wanna sent 4 bytes data by calling DeviceIoControl() from my directshow application to my streaming minidriver.First,I call the CreateFile() to get a device handle,and the minidriver can receive a IRP_MJ_CREATE IRP,and the CreateFile() returns nonzero.But when the app runs to DeviceIoControl(),the minidriver does not recieve any SRB.The DeviveIoControl() returns zero,and GetlastError() returns 50,which says:"The request is not supposed." I difined my own IOCTL command in my driver and app. What causes the error 50 or if there is any other way to send data to steaming minidriver from directshow application? Thanks for any help! :) momer

    L 1 Reply Last reply
    0
    • M momer

      Hi! :) Now I wanna sent 4 bytes data by calling DeviceIoControl() from my directshow application to my streaming minidriver.First,I call the CreateFile() to get a device handle,and the minidriver can receive a IRP_MJ_CREATE IRP,and the CreateFile() returns nonzero.But when the app runs to DeviceIoControl(),the minidriver does not recieve any SRB.The DeviveIoControl() returns zero,and GetlastError() returns 50,which says:"The request is not supposed." I difined my own IOCTL command in my driver and app. What causes the error 50 or if there is any other way to send data to steaming minidriver from directshow application? Thanks for any help! :) momer

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Does CreateFile return INVALID_HANDLE_VALUE? Does your driver antry set a dispatch handler for DeviceIoControl? Does you DeviceIoControl handler handle that IOCTL? Is the buffer size correct for thst IOCTL? Nunc est bibendum

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups