I am trying to write a program that toggles the data/audio
CD autorunning feature in my Win98 SE. The audio CD autorunning
toggling part works fine. It's the data CD part that I can't get
to work.
I am a registred user of StepUp 98. Its autorunning toggling
software DOES work. So, I ran REGMON while using it, then I
ran it while using my TEST program, and the results are NEARLY
identical, except that the EXPLORER does more stuff when using
the StepUp feature. So, is there additional message posting that
my program needs to do to Windows in order for the change in the
data CD autorunning flag to be "noticed" by Windows? Is there an
INI file that also has to change? Both my test program and StepUp
change exactly the same value in the Registry. It's just that,
for some reason, when using my program, EXPLORER doesn't go
completely through the steps that it does when StepUp makes the
changes. So, I must presume that there is additional message
traffic between StepUp and Windows 98 SE that REGMON doesn't
show. Unfortunately, the LOG's from REGMON for both StepUp and
my TEST programs are way too big to post or outline here.
One thought that crossed my mind is that I am using the wrong
format in changing the value data in the Registry for the data
CD flag. The flag is a REG_BINARY value, and has one of the
following values:
95 00 00 00 (autorunning enabled)
b5 00 00 00 (autorunning disabled)
I have tried the following, amongst other things:
DIM wx AS ASCIIZ*4
DIM L1 AS LONG
DIM L2 AS LONG
wx = CHR$(149) + CHR$(0) + CHR$(0) + CHR$(0)
L1 = 4
RegOpenKeyEx %HKEY_CURRENT_USER, _
"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", _
0, %KEY_SET_VALUE, L2
RegSetValueEx L2, "NoDriveTypeAutoRun", 0, %REG_BINARY, _
wx, L1
I've also tried the following adaptations:
DIM wx AS DWORD
wx = 149
and:
DIM wx AS LONG
wx = 149
My code DOES change the flag in the Registry, according to
RegEdit,
BUT, it has NO effect on the autorunning status of
the CD-ROM drives. StepUp, on the other hand, DOES work.
Any ideas would be GREATLY appreciated! Thanks in advance!
------------------
Clay C. Clear
http://www.v3space.com/a/a39/202/
[email protected]
[email protected]
CD autorunning feature in my Win98 SE. The audio CD autorunning
toggling part works fine. It's the data CD part that I can't get
to work.
I am a registred user of StepUp 98. Its autorunning toggling
software DOES work. So, I ran REGMON while using it, then I
ran it while using my TEST program, and the results are NEARLY
identical, except that the EXPLORER does more stuff when using
the StepUp feature. So, is there additional message posting that
my program needs to do to Windows in order for the change in the
data CD autorunning flag to be "noticed" by Windows? Is there an
INI file that also has to change? Both my test program and StepUp
change exactly the same value in the Registry. It's just that,
for some reason, when using my program, EXPLORER doesn't go
completely through the steps that it does when StepUp makes the
changes. So, I must presume that there is additional message
traffic between StepUp and Windows 98 SE that REGMON doesn't
show. Unfortunately, the LOG's from REGMON for both StepUp and
my TEST programs are way too big to post or outline here.
One thought that crossed my mind is that I am using the wrong
format in changing the value data in the Registry for the data
CD flag. The flag is a REG_BINARY value, and has one of the
following values:
95 00 00 00 (autorunning enabled)
b5 00 00 00 (autorunning disabled)
I have tried the following, amongst other things:
DIM wx AS ASCIIZ*4
DIM L1 AS LONG
DIM L2 AS LONG
wx = CHR$(149) + CHR$(0) + CHR$(0) + CHR$(0)
L1 = 4
RegOpenKeyEx %HKEY_CURRENT_USER, _
"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", _
0, %KEY_SET_VALUE, L2
RegSetValueEx L2, "NoDriveTypeAutoRun", 0, %REG_BINARY, _
wx, L1
I've also tried the following adaptations:
DIM wx AS DWORD
wx = 149
and:
DIM wx AS LONG
wx = 149
My code DOES change the flag in the Registry, according to
RegEdit,
BUT, it has NO effect on the autorunning status of
the CD-ROM drives. StepUp, on the other hand, DOES work.
Any ideas would be GREATLY appreciated! Thanks in advance!

------------------
Clay C. Clear
http://www.v3space.com/a/a39/202/
[email protected]
[email protected]
Comment