Announcement

Collapse
No announcement yet.

Where are CD-ROM autorun flags?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Where are CD-ROM autorun flags?

    Does anybody know where Win98 SE stores the info on whether to
    autorun data and audio CD's? I am a licensed user of StepUp98,
    and can use its CD enable/disable facilities, BUT, I'd rather
    write my own program that does the same thing, so I don't have
    to install the whole StepUp software just to use that feature.

    I've done a search in my Registry for "autorun", and the only
    key that I found that held potential, the value data in it
    didn't change when I used StepUp to change the data autorun's
    status. So, Windows must keep the info elsewhere.

    Any ideas?

    Thanks in advance!


    ------------------
    Clay C. Clear

    http://www.v3space.com/a/a39/202/

    [email protected]
    [email protected]

  • #2
    OK, I found *ONE* flag, and I think it's the only one for
    autorunning CD's that Win98 SE uses. Apparently, StepUp has a
    "hook" into the autorunning process, so it can selectively
    autorun audio and/or data CD's. I'm going to do further
    experimenting with the flag I found to see if I can write my
    own program to toggle the autorun status on/off. Unfortunately,
    I don't know enough about 32-bit Windows programming to be able
    to write it so it can selectively autorun audio and/or data CD's.


    ------------------
    Clay C. Clear

    http://www.v3space.com/a/a39/202/

    [email protected]
    [email protected]

    Comment


    • #3
      I'll look in my Sources. I've written such a Program some Time ago.

      Hint: You can analyze the modifications, "StepUp" does with RegMon from sysinternals.com

      ------------------
      E-Mail (home): mailto:[email protected][email protected]</A>
      E-Mail (work): mailto:[email protected]sven.blumenstein[email protected]</A>

      [This message has been edited by Sven Blumenstein (edited June 08, 2001).]

      Comment


      • #4
        Many thanks, Sven! I downloaded regmon per your suggestion,
        ran it, and IMMEDIATELY found out where the Registry key was that
        controls the autorunning of audio CD's! I have determined,
        through empirical testing, that the flag I found for data CD's
        is the correct one.

        So, there's now no need for you to look through your old
        source codes for the program you wrote. Thanks, anyway, though.


        Now, that brings up some questions that I haven't been able to
        figure out on my own. First: how do I change the (Default)
        value in a Registry key using RegSetValueEx()? I've tried a
        number of different settings for the value name, to no avail.
        Also, do I use REG_SZ for the data type for that value? Also,
        how do I read the value data for that value using
        RegQueryValueEx()?

        If you can answer these questions, I shall immediately begin
        writing my own CD autorunning toggling program.

        Thanks, again, Sven!


        ------------------
        Clay C. Clear

        http://www.v3space.com/a/a39/202/

        [email protected]
        [email protected]

        Comment


        • #5
          Sven -

          Disregard my previous message! This time,a s far as setting
          the (Default) values, I turned to MSDN Library - January 2000
          for info on RegSetValueEx...that was where I learned that, to
          read or set the (Default) value in a key in the Registry, you
          use a null string for the value name. I have tested that, and
          it is indeed true.

          So, I am now going to write my CD autorunning toggling program!



          ------------------
          Clay C. Clear

          http://www.v3space.com/a/a39/202/

          [email protected]
          [email protected]

          Comment


          • #6
            >So, I am now going to write my CD autorunning toggling
            Happy coding

            ------------------
            E-Mail (home): mailto:[email protected][email protected]</A>
            E-Mail (work): mailto:[email protected][email protected]</A>




            [This message has been edited by Sven Blumenstein (edited June 08, 2001).]

            Comment


            • #7
              Clay, JFYI, your URL in your sig line returns an Error 404 (not found).

              ------------------
              Lance
              PowerBASIC Support
              mailto:[email protected][email protected]</A>
              Lance
              mailto:[email protected]

              Comment


              • #8
                Lance -

                Thanks, but that's because my site is currently offline. I have
                been making MAJOR recoding to the programs that I release to
                the General Public. Therefore, I have deleted all the files
                on the site, and will start over. However, since it returns
                an Error 404, that means it can't find the INDEX.HTML, so, I
                must've deleted that, too.

                I'll post my backup copy of the INDEX to the site, and
                annotate it to the effect that the site is currently under
                construction and will be fully operational on such-and-such
                a date.

                Thanks for the heads up, Lance!


                ------------------
                Clay C. Clear

                http://www.v3space.com/a/a39/202/

                [email protected]
                [email protected]

                Comment

                Working...
                X