Click here to Skip to main content
15,914,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to detect Floppy Arrival Pin
Hamid_RT23-Oct-07 2:24
Hamid_RT23-Oct-07 2:24 
GeneralRe: How to detect Floppy Arrival Pin
ThatsAlok23-Oct-07 19:34
ThatsAlok23-Oct-07 19:34 
GeneralRe: How to detect Floppy Arrival Pin
Hamid_RT23-Oct-07 20:29
Hamid_RT23-Oct-07 20:29 
GeneralRe: How to detect Floppy Arrival Pin
James R. Twine23-Oct-07 1:38
James R. Twine23-Oct-07 1:38 
AnswerRe: How to detect Floppy Arrival Pin
Naveen23-Oct-07 3:04
Naveen23-Oct-07 3:04 
GeneralRe: How to detect Floppy Arrival Pin
ThatsAlok23-Oct-07 19:51
ThatsAlok23-Oct-07 19:51 
GeneralRe: How to detect Floppy Arrival Pin
Hamid_RT23-Oct-07 20:37
Hamid_RT23-Oct-07 20:37 
GeneralRe: How to detect Floppy Arrival Pin
Naveen23-Oct-07 21:08
Naveen23-Oct-07 21:08 
ThatsAlok wrote:
could you please help me in finding out the exact WMI Class


Any thing for you sir Smile | :)

Actaully I tried this for one of my project requirment. I used the ExecNotificationQueryAsync() function with the following query.

HRESULT hres = pSvc->ExecNotificationQueryAsync(<br />
        _bstr_t("WQL"), <br />
        _bstr_t("SELECT *" <br />
         "FROM __InstanceOperationEvent WITHIN 1 "<br />
         "WHERE TargetInstance ISA 'Win32_LogicalDisk'"), <br />
         WBEM_FLAG_SEND_STATUS, NULL, pStubSink );


And in the notification handler we can check the instance is __InstanceCreationEvent and __InstanceDeletionEvent for any drive arrival or removal. But if you want disk arrival or removal you may need to handle the __InstanceModificationEvent( this one i didnt check ).




Question[SOLVED] Current system date Pin
CodingLover23-Oct-07 0:14
CodingLover23-Oct-07 0:14 
AnswerRe: Current system date Pin
ThatsAlok23-Oct-07 0:21
ThatsAlok23-Oct-07 0:21 
AnswerRe: Current system date Pin
chandu00423-Oct-07 0:21
chandu00423-Oct-07 0:21 
GeneralRe: Current system date Pin
ThatsAlok23-Oct-07 0:26
ThatsAlok23-Oct-07 0:26 
GeneralRe: Current system date Pin
CodingLover23-Oct-07 0:31
CodingLover23-Oct-07 0:31 
GeneralRe: Current system date Pin
chandu00423-Oct-07 0:34
chandu00423-Oct-07 0:34 
GeneralRe: Current system date Pin
David Crow23-Oct-07 3:05
David Crow23-Oct-07 3:05 
Generalthanks Pin
chandu00423-Oct-07 4:42
chandu00423-Oct-07 4:42 
GeneralRe: Current system date Pin
CodingLover23-Oct-07 0:30
CodingLover23-Oct-07 0:30 
GeneralRe: Current system date Pin
chandu00423-Oct-07 0:36
chandu00423-Oct-07 0:36 
GeneralRe: Current system date Pin
CodingLover23-Oct-07 0:39
CodingLover23-Oct-07 0:39 
GeneralRe: Current system date Pin
chandu00423-Oct-07 0:42
chandu00423-Oct-07 0:42 
GeneralRe: Current system date Pin
CodingLover23-Oct-07 0:48
CodingLover23-Oct-07 0:48 
GeneralRe: Current system date Pin
chandu00423-Oct-07 0:50
chandu00423-Oct-07 0:50 
GeneralRe: Current system date Pin
CodingLover23-Oct-07 0:59
CodingLover23-Oct-07 0:59 
GeneralRe: Current system date Pin
chandu00423-Oct-07 1:02
chandu00423-Oct-07 1:02 
GeneralRe: Current system date Pin
CodingLover23-Oct-07 1:17
CodingLover23-Oct-07 1:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.