Re: [Win32Lib] trying to wrap GetDriveType
- Posted by Greg Haberek <ghaberek at gm?il.c?m> Jan 28, 2008
- 725 views
Here's your answer right here: > Unicode Implemented as GetDriveTypeW (Unicode) and GetDriveTypeA (ANSI). All Win32 API functions that deal with strings use 8-bit characters (ANSI) or 16-bit characters (Unicode). Euphoria doesn't natively support Unicode (yet?) so just use the ANSI function. You need to define it like this.
constant xGetDriveType = registerw32Function(kernel32,"GetDriveTypeA", {C_POINTER}, C_UINT )
(Also, the return type appears to be C_UINT, not C_LONG.) -Greg