module win32.winioctl :IOCTL_STORAGE_EJECT_MEDIA' Value is Error

dennis luehring via Digitalmars-d digitalmars-d at puremagic.com
Mon Dec 29 04:19:34 PST 2014


Am 29.12.2014 um 13:00 schrieb FrankLike:
> Now,I use the win32.winioctl.d file,find
> :IOCTL_STORAGE_EJECT_MEDIA ' Value is 0x0202,if you use it ,will
> get the error value 50.(by GetLastError()).
>
> It should be 0x2d4808.If you use it ,it works ok.
>
> Why have this kind of mistake?
>
> Frank
>

maybe just a bug

but https://github.com/Diggsey/druntime-win32/blob/master/winioctl.d 
seems to be correctly defined

IOCTL_STORAGE_EJECT_MEDIA = CTL_CODE_T!(IOCTL_STORAGE_BASE, 0x0202, 
METHOD_BUFFERED, FILE_READ_ACCESS),




More information about the Digitalmars-d mailing list