hi Enrico,
i have change CODE as you say but still got (same) Warnings
Warning W8004 FWEJECT.prg 190: 'fAutoEject' is assigned a value that is never used in function EjectVolume
Warning W8004 FWEJECT.prg 190: 'fRemoveSafely' is assigned a value that is never used in function EjectVolume
Warning W8075 FWEJECT.prg 196: Suspicious pointer conversion in function HB_FUN_EJECTREMOVABLE
---
What is DismountVolume()? It is not a Windows API.
CODE is in Sample as "Prototype" (on Top of "C" CODE )
- Code: Select all Expand view
BOOL DismountVolume(HANDLE hVolume);
and "function" begin with
- Code: Select all Expand view
BOOL DismountVolume( HANDLE hVolume)
i try to change it to HB_FUNC but again got Type Error Message (see my Answer to Antonio)
p.s. posted CODE "seems" to work even with Warning