Registriert seit: 3. Sep 2004
4.629 Beiträge
Delphi 10.2 Tokyo Starter
|
AW: Function (WIMGetMountedImageInfo)
17. Dez 2013, 23:43
Thats because of the C style boolean definition:
FALSE = 0
TRUE = everything else
You can just check the flag like this:
if (Buffer^[I].MountedForRW) then
or
if (not Buffer^[I].MountedForRW) then
If your problem is just the bool to string conversion you can go for this:
BoolToStr(Buffer^[I].MountedForRW, true)
or just write you an own function, if you dont like the -1 or the default bool strings.
Geändert von Zacherl (17. Dez 2013 um 23:46 Uhr)
|