_Taccess () function used for DVD-ROM in WinXP and Win7

I got a problem when using the _taccess () function:

int nAccess = _taccess("x:", 06);

      

x

is my DVD-ROM. This function returns different results in WinXP and Win7: In WinXP, the function returns -1, which means it is NOT writable. But in Win7, the function returns 0, which indicates writeability.

How does this happen? So what should I do if I want to test a DVD-ROM recording (eg "x:")?

+3
windows winapi dvd


source to share


No one has answered this question yet

Check out similar questions:

935
Eclipse Cannot Start - Java was started but exit code returned = 13
907
Failed to load JNI Shared Library (JDK)
719
How do I get the exit code of an application from the Windows command line?
648
How to run a PowerShell script
242
What encoding / codepage is cmd.exe using?
223
How can I configure OpenFileDialog to select folders?
17
C # How to tell if the DVD disc tray is open?
1
How can I store a spinning disc in a DVD-ROM drive?
0
How to start DVD playback on Windows using default playback software?
0
Allow java program that is on DVD + R to be compiled on that DVD + R



All Articles
Loading...
X
Show
Funny
Dev
Pics