Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8315681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:11:15+00:00 2026-06-08T21:11:15+00:00

To recognize a media i use SHGetDriveMedia ; on the second parameter I pass

  • 0

To recognize a media i use SHGetDriveMedia;
on the second parameter I pass pdwMediaContent for reference and the api
insert the type of content.
However, the recognition is done asynchronously. How can I know when the api
has finished the recognition?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T21:11:16+00:00Added an answer on June 8, 2026 at 9:11 pm

    It’s not asynchronous. When you call it right after putting the disk in the drive, it’s in “sniffing phase”, trying to determine what method of autoplaying the disk should be used. There are several detection phases that can be returned in the ARCONTENT flags when the function returns:

    ARCONTENT_PHASE_UNKNOWN (0x00000000)
      Introduced in Windows Vista. AutoPlay is searching the media. The phase of the 
      search (presniff, sniffing, or final) is unknown.
    
    ARCONTENT_PHASE_PRESNIFF (0x10000000)
      Introduced in Windows Vista. The contents of the media are known before the 
      media is searched, due to the media type; for instance, audio CDs and DVD movies.
    
    ARCONTENT_PHASE_SNIFFING (0x20000000)
      Introduced in Windows Vista. AutoPlay is currently searching the media. Any 
      results reported during this phase should be considered a partial list as more 
      content types might still be found.
    
    ARCONTENT_PHASE_FINAL (0x40000000)
      Introduced in Windows Vista. AutoPlay has finished searching the media. Results 
      reported are final.
    
    ARCONTENT_PHASE_MASK (0x70000000)
      Introduced in Windows Vista. A mask that denotes valid ARCONTENT_PHASE values.
    

    This seems to indicate (based on the text with ARCONTENT_PHASE_FINAL above) that you should expect to need to call this function more than once, until you receive that value in the flags returned, at which point you can check the other values in the flag for disk type.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recognize that this is a general type of question but I'd be interested
I'm trying to combine the use of a Sass variable with @media queries as
Can android recognize more than two simultaneous touches (3, 4, etc...)? Is the number
ReShaper can automatically recognize if states on enums and offer to convert them to
Can anybody recognize the 2 fonts on this logo? http://www.networkdance.com/logo.jpg
How can I recognize (.NET 2 ) a generic class? Class A(Of T) End
I want to recognize the shapes in the picture by template matching.Is the ExhaustiveTemplateMatching
I need to recognize some elements drawn with user's finger on device's screen. For
Does anybody recognize this error? org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory': Post-processing of
I want to recognize (with php, mysql) and save which blog entries a user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.