http://bugs.winehq.org/show_bug.cgi?id=10957
Summary: CreateFile doesn't work for devices Product: Wine Version: CVS/GIT Platform: Other OS/Version: other Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: wine-kernel AssignedTo: wine-bugs@winehq.org ReportedBy: rmh@aybabtu.com
According to MSDN, CreateFile can be used to obtain a handle on a device on which DeviceIoControl can be performed. Also, code in kernel32/volume.c:GetVolumeInformationW seems to rely on this.
However, wine always fails with error code 2 (file not found). The following test case illustrates this:
http://msdn2.microsoft.com/en-us/library/aa363147(VS.85).aspx
I've tested their code both on native winxp and win98. It works fine on winxp but fails on win98 (with error 2 too, like wine).