Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Autorun

OSR_Community_UserOSR_Community_User Member Posts: 110,217
Dear All!

I'd like to enable/disable the cdrom autorun feature from my program. How can I do it both in Win95 and NT?

Thanx a lot.

Regards,
Max Lyadvinsky

Comments

  • In the registry, set HKLM\System\CurrentControlSet\Services\Cdrom\Autorun to
    0 (zero).

    -----Original Message-----
    From: [email protected]
    [mailto:[email protected]]On Behalf Of Max Lyadvinsky
    Sent: Thursday, February 24, 2000 9:31 AM
    To: NT Developers Interest List
    Subject: [ntdev] Autorun


    Dear All!

    I'd like to enable/disable the cdrom autorun feature from my program. How
    can I do it both in Win95 and NT?

    Thanx a lot.

    Regards,
    Max Lyadvinsky


    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    You can do this through MS's nifty Tweak UI utility from their Power Toys collection.
    Download them here:

    NT:
    http://www.microsoft.com/ntworkstation/downloads/PowerToys/Networking/NTTweakUI.asp
    95/98:
    http://www.microsoft.com/windows95/downloads/contents/wutoys/w95pwrtoysset/default.asp

    Autorun is under the "paranoia" tab

    To do this programmatically see KB:
    http://support.microsoft.com/support/kb/articles/Q155/2/17.asp

    Interestingly TWEAKUI doesnt use this method (Run REGMON while running TWEAKUI).

    Enjoy!
    -bob k

    Max Lyadvinsky wrote:

    > Dear All!
    >
    > I'd like to enable/disable the cdrom autorun feature from my program. How can I do it both in Win95 and NT?
    >
    > Thanx a lot.
    >
    > Regards,
    > Max Lyadvinsky
    >
    > ---
    > You are currently subscribed to ntdev as: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    And how can I set this setting for each cd-rom drive? I'd like some cd-roms have autorun feature and others don't.
    And what about Win95?

    Max

    ----------
    ??: Bill Christie[SMTP:[email protected]]
    ?????: NT Developers Interest List
    ??????????: 24 ??????? 2000 ?. 17:35
    ????: NT Developers Interest List
    ????: [ntdev] RE: Autorun

    In the registry, set HKLM\System\CurrentControlSet\Services\Cdrom\Autorun to
    0 (zero).

    -----Original Message-----
    From: [email protected]
    [mailto:[email protected]]On Behalf Of Max Lyadvinsky
    Sent: Thursday, February 24, 2000 9:31 AM
    To: NT Developers Interest List
    Subject: [ntdev] Autorun


    Dear All!

    I'd like to enable/disable the cdrom autorun feature from my program. How
    can I do it both in Win95 and NT?

    Thanx a lot.

    Regards,
    Max Lyadvinsky


    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')




    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    Max,

    You may wish to get hold of the article titled "Testing AutoPlay via the
    Floppy Drive" in the December 1996 issue of Windows Developer's Journal.

    Although the article was intended to illustrate how to enable auto-play for
    a floppy drive (for purposes of testing an autorun.inf file without having
    to burn a CD), it effectively discribes how to programmatically enable (or
    disable) auto-play for any drive.

    Basically, there is a bit mask somewhere in the registry (the first 26 bits
    of which correspond to the letters A-Z) indicating which drives the system
    should attempt to auto-play.


    Regards,

    Matt Arnold
    Professional Music Products
    Mark of the Unicorn, Inc.
    http://www.motu.com



    ----- Original Message -----
    From: "Max Lyadvinsky" <[email protected]>
    To: "NT Developers Interest List" <[email protected]>
    Sent: Thursday, February 24, 2000 12:33 PM
    Subject: [ntdev] Re: Autorun


    And how can I set this setting for each cd-rom drive? I'd like some cd-roms
    have autorun feature and others don't.
    And what about Win95?

    Max
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    There you can set just a mask for drive types not for letters.
    So I cannot do it for each drive letter?

    Max

    ----------
    ??: Matt Arnold[SMTP:[email protected]]
    ?????: NT Developers Interest List
    ??????????: 24 ??????? 2000 ?. 23:20
    ????: NT Developers Interest List
    ????: [ntdev] Re: Autorun

    Max,

    You may wish to get hold of the article titled "Testing AutoPlay via the
    Floppy Drive" in the December 1996 issue of Windows Developer's Journal.

    Although the article was intended to illustrate how to enable auto-play for
    a floppy drive (for purposes of testing an autorun.inf file without having
    to burn a CD), it effectively discribes how to programmatically enable (or
    disable) auto-play for any drive.

    Basically, there is a bit mask somewhere in the registry (the first 26 bits
    of which correspond to the letters A-Z) indicating which drives the system
    should attempt to auto-play.


    Regards,

    Matt Arnold
    Professional Music Products
    Mark of the Unicorn, Inc.
    http://www.motu.com



    ----- Original Message -----
    From: "Max Lyadvinsky"
    To: "NT Developers Interest List"
    Sent: Thursday, February 24, 2000 12:33 PM
    Subject: [ntdev] Re: Autorun


    And how can I set this setting for each cd-rom drive? I'd like some cd-roms
    have autorun feature and others don't.
    And what about Win95?

    Max




    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    Hmm, perhaps I'm remembering the article incorrectly (I don't have it
    on-hand to check).

    Maybe you're right -- the bitmask is more general and only for drive types.
    I thought I remembered that it was for specific drive letters. If that's
    the case, I apologize for any confusion.


    Regards,

    Matt Arnold
    Professional Music Products
    Mark of the Unicorn, Inc.
    http://www.motu.com


    ----- Original Message -----
    From: "Max Lyadvinsky" <[email protected]>
    To: "NT Developers Interest List" <[email protected]>
    Sent: Friday, February 25, 2000 3:20 AM
    Subject: [ntdev] Re: Autorun


    There you can set just a mask for drive types not for letters.
    So I cannot do it for each drive letter?

    Max

    ----------
    ïÔ: Matt Arnold[SMTP:[email protected]]
    ïÔ×ÅÔ: NT Developers Interest List
    ïÔÐÒÁ×ÌÅÎÏ: 24 ÆÅ×ÒÁÌÑ 2000 Ç. 23:20
    ëÏÍÕ: NT Developers Interest List
    ôÅÍÁ: [ntdev] Re: Autorun

    Max,

    You may wish to get hold of the article titled "Testing AutoPlay via the
    Floppy Drive" in the December 1996 issue of Windows Developer's Journal.

    [snip]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 7 Dec 2020 LIVE ONLINE
Internals & Software Drivers 25 Jan 2021 LIVE ONLINE
Developing Minifilters 8 March 2021 LIVE ONLINE