Re: [Win32Lib] trying to wrap GetDriveType

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu