Ach stimmt ja, den Enum hab'sch übersehn.
Leider gibt es in Delphi nix Vergleichbares,
da es in C++ eher eine Bitmaske ist, bzw. der Enum in Delphi anders funktioniert, wo er mehr einen Bit-Index (für nur ein einziges Bit) für ein SET darstellt.
Delphi-Quellcode:
type
_VIRTUAL_DISK_ACCESS_MASK = Cardinal;
const
VIRTUAL_DISK_ACCESS_ATTACH_RO = $00010000;
VIRTUAL_DISK_ACCESS_ATTACH_RW = $00020000;
VIRTUAL_DISK_ACCESS_DETACH = $00040000;
VIRTUAL_DISK_ACCESS_GET_INFO = $00080000;
VIRTUAL_DISK_ACCESS_CREATE = $00100000;
VIRTUAL_DISK_ACCESS_METAOPS = $00200000;
VIRTUAL_DISK_ACCESS_READ = $000d0000;
VIRTUAL_DISK_ACCESS_WRITABLE = $00320000;
VIRTUAL_DISK_ACCESS_ALL = $003f0000;
oder
Delphi-Quellcode:
type
_VIRTUAL_DISK_ACCESS_MASK = set of (
VIRTUAL_DISK_ACCESS_ATTACH_RO = 16,
VIRTUAL_DISK_ACCESS_ATTACH_RW = 17,
VIRTUAL_DISK_ACCESS_DETACH = 18,
VIRTUAL_DISK_ACCESS_GET_INFO = 19,
VIRTUAL_DISK_ACCESS_CREATE = 20,
VIRTUAL_DISK_ACCESS_METAOPS = 21
);
const
VIRTUAL_DISK_ACCESS_READ = [VIRTUAL_DISK_ACCESS_ATTACH_RO,
VIRTUAL_DISK_ACCESS_DETACH, VIRTUAL_DISK_ACCESS_GET_INFO];
VIRTUAL_DISK_ACCESS_WRITABLE = [VIRTUAL_DISK_ACCESS_ATTACH_RW,
VIRTUAL_DISK_ACCESS_CREATE, VIRTUAL_DISK_ACCESS_METAOPS];
VIRTUAL_DISK_ACCESS_ALL = [VIRTUAL_DISK_ACCESS_ATTACH_RO..VIRTUAL_DISK_ACCESS_METAOPS];