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. C / C++ / MFC
  4. IOCTL_STORAGE_EJECTION_CONTROL undeclared identifier

IOCTL_STORAGE_EJECTION_CONTROL undeclared identifier

Scheduled Pinned Locked Moved C / C++ / MFC
help
8 Posts 4 Posters 0 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.
  • V Offline
    V Offline
    velayudhan_raj
    wrote on last edited by
    #1

    Hi, I have used the function DeviceIoControl in my application. One of its parameter is IOCTL_STORAGE_EJECTION_CONTROL, but when i compile the class, error shows : 'IOCTL_STORAGE_EJECTION_CONTROL' : undeclared identifier. Please respond , which includes or libs , i have to add. Velayudhan

    L K H 4 Replies Last reply
    0
    • V velayudhan_raj

      Hi, I have used the function DeviceIoControl in my application. One of its parameter is IOCTL_STORAGE_EJECTION_CONTROL, but when i compile the class, error shows : 'IOCTL_STORAGE_EJECTION_CONTROL' : undeclared identifier. Please respond , which includes or libs , i have to add. Velayudhan

      L Offline
      L Offline
      Laxman Auti
      wrote on last edited by
      #2

      Hi raj, Include the following file ntddstor.h Knock out 'T' from CAN'T , You 'CAN' if you think you 'CAN' :cool:

      1 Reply Last reply
      0
      • V velayudhan_raj

        Hi, I have used the function DeviceIoControl in my application. One of its parameter is IOCTL_STORAGE_EJECTION_CONTROL, but when i compile the class, error shows : 'IOCTL_STORAGE_EJECTION_CONTROL' : undeclared identifier. Please respond , which includes or libs , i have to add. Velayudhan

        K Offline
        K Offline
        kakan
        wrote on last edited by
        #3

        According to MSDN: include Winioctl.h http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/ioctl_storage_ejection_control.asp[^]

        1 Reply Last reply
        0
        • V velayudhan_raj

          Hi, I have used the function DeviceIoControl in my application. One of its parameter is IOCTL_STORAGE_EJECTION_CONTROL, but when i compile the class, error shows : 'IOCTL_STORAGE_EJECTION_CONTROL' : undeclared identifier. Please respond , which includes or libs , i have to add. Velayudhan

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          Did you include Winioctl.h and ntddstor.h_**


          **_

          whitesky


          V 1 Reply Last reply
          0
          • H Hamid Taebi

            Did you include Winioctl.h and ntddstor.h_**


            **_

            whitesky


            V Offline
            V Offline
            velayudhan_raj
            wrote on last edited by
            #5

            thanks for ur reply, I have included WinioCtl.h but do u know where ntddstor.h is found ?

            H 1 Reply Last reply
            0
            • V velayudhan_raj

              thanks for ur reply, I have included WinioCtl.h but do u know where ntddstor.h is found ?

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              See Here[^]_**


              **_

              whitesky


              1 Reply Last reply
              0
              • V velayudhan_raj

                Hi, I have used the function DeviceIoControl in my application. One of its parameter is IOCTL_STORAGE_EJECTION_CONTROL, but when i compile the class, error shows : 'IOCTL_STORAGE_EJECTION_CONTROL' : undeclared identifier. Please respond , which includes or libs , i have to add. Velayudhan

                L Offline
                L Offline
                Laxman Auti
                wrote on last edited by
                #7

                The definition of the IOCTL_STORAGE_EJECTION_CONTROL is found in the winioctl.h Header which is provided with PlatformSDK of VS2003 Knock out 'T' from CAN'T , You 'CAN' if you think you 'CAN' :cool:

                V 1 Reply Last reply
                0
                • L Laxman Auti

                  The definition of the IOCTL_STORAGE_EJECTION_CONTROL is found in the winioctl.h Header which is provided with PlatformSDK of VS2003 Knock out 'T' from CAN'T , You 'CAN' if you think you 'CAN' :cool:

                  V Offline
                  V Offline
                  velayudhan_raj
                  wrote on last edited by
                  #8

                  Ok guys, thanks for your respone, I solved it by including winioctl.h in platform SDK 2003 :) Velayudhan

                  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