### IMMPassDeviceEvent

  The IMMPassDeviceEvent class is the class for pass device events. These events get generated when a device is being requested to release a shared hardware device (such as a CD-ROM drive).

### IMMPassDeviceEvent - Member Functions and Data by Group

### Constructors & Destructor

You can construct and destruct objects of this class.

~IMMPassDeviceEvent

      public:
      virtual ~IMMPassDeviceEvent()

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

IMMPassDeviceEvent

      public:
      IMMPassDeviceEvent(const IEvent& event)

  Although you can construct objects of this class, typically IMMDeviceHandler::dispatchHandlerEvent creates objects of this class from an object of the class IEvent or another IMMPassDeviceEvent object.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

### Event Information

Use these members to parse the event into the ID of the device that is either losing or gaining use of the hardware device.

device

      public:
      IMMDevice* device() const

  Returns a pointer to the device that is being requested to lose use of or gain use of a device. See isGainingUse to find out what this device is being requested to do.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

isGainingUse

      public:
      bool isGainingUse() const

  Returns true if the device is gaining use of the hardware device and returns false if it is losing use of the device.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

### IMMPassDeviceEvent - Inherited Member Functions and Data

#### Inherited Public Functions

  IEvent

  -     virtual ~IEvent()

  -     IWindowHandle controlHandle() const

  -     virtual IWindow* controlWindow() const

  -     IEvent& decrementOwnerLevels()

  -     virtual IWindow* dispatchingWindow() const

  -     unsigned long eventId() const

  -     IWindowHandle handle() const

  -     IEvent( const IWindowHandle& handle,
                unsigned long eventId,
                const IEventParameter1& parameter1,
                const IEventParameter2& parameter2 )

  -     IEvent( IWindow* window,
                unsigned long eventId,
                const IEventParameter1& parameter1,
                const IEventParameter2& parameter2 )

  -     IEvent(const IEvent& event)

  -     IEvent& operator =(const IEvent& event)

  -     IEventParameter1 parameter1() const

  -     IEventParameter2 parameter2() const

  -     bool passToOwner() const

  -     IEventResult result() const

  -     IEvent& setControlHandle(const IWindowHandle& handle)

  -     IEvent& setDispatchingHandle(const IWindowHandle& handle)

  -     IEvent& setDispatchingWindow(IWindow* window)

  -     IEvent& setHandle(const IWindowHandle& handle)

  -     IEvent& setNumberOfLevels(int levels = - 1)

  -     IEvent& setPassToOwner(bool passOn = true)

  -     IEvent& setResult(const IEventResult& eventResult)

  -     IEvent& setResult(bool eventResult)

  -     virtual IWindow* window() const

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  - None

#### Inherited Protected Data

  - None