please dont rip this site Prev Next

WM_DEVICECHANGE Overview  Group

The WM_DEVICECHANGE device message notifies an application or device driver of a change to the hardware configuration of a device or the computer.

Event = (UINT) wParam;
dwData = (DWORD) lParam;

Parameters

Event
Event type. This parameter can be one of the following values:

Value

Meaning

DBT_CONFIGCHANGECANCELED 

A request to change the current configuration (dock or undock) has been canceled.

DBT_CONFIGCHANGED

The current configuration has changed, due to a dock or undock.

DBT_DEVICEARRIVAL

A device has been inserted and is now available.

DBT_DEVICEQUERYREMOVE

Permission is requested to remove a device. Any application can deny this request and cancel the removal.

DBT_DEVICEQUERYREMOVEFAILED

A request to remove a device has been canceled.

DBT_DEVICEREMOVECOMPLETE

A device has been removed.

DBT_DEVICEREMOVEPENDING

A device is about to be removed. Cannot be denied.

DBT_DEVICETYPESPECIFIC

A device-specific event has occurred.

DBT_QUERYCHANGECONFIG 

Permission is requested to change the current configuration (dock or undock).

DBT_USERDEFINED 

The meaning of this message is user-defined.

dwData
Address of a structure that contains event-specific data. Its meaning depends on the given event.

Return Values

Return TRUE to grant a requested action.

Return BROADCAST_QUERY_DENY to deny a requested action.

Remarks

For devices that offer software-controllable features, such as ejection and locking, the operating system typically sends a DBT_DEVICEREMOVEPENDING message to let applications and device drivers end their use of the device gracefully.

If the operating system forcibly removes a device, it may not send a DBT_DEVICEQUERYREMOVE message before doing so.

DBT_CONFIGCHANGECANCELED, DBT_CONFIGCHANGED, DBT_DEVICEARRIVAL, DBT_DEVICEQUERYREMOVE, DBT_DEVICEQUERYREMOVEFAILED, DBT_DEVICEREMOVECOMPLETE, DBT_DEVICEREMOVEPENDING, DBT_DEVICETYPESPECIFIC, DBT_QUERYCHANGECONFIG, DBT_USERDEFINED


file: /Techref/os/win/api/win32/mess/src/msg23_17.htm, 4KB, , updated: 2000/4/7 11:20, local time: 2024/11/8 18:03,
TOP NEW HELP FIND: 
3.139.105.231:LOG IN
©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://massmind.ecomorder.com/techref/os/win/api/win32/mess/src/msg23_17.htm"> WM_DEVICECHANGE</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to ecomorder.com!

 

Welcome to massmind.ecomorder.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .