in reply to Re^2: RFC: Win32::API API (names)
in thread RFC: Win32::API API
Adding "C" as short for "Character" is as likely to be confusing as anything.
I added the C since its only for Wide C strings, not Wide length tracked strings, for length tracked wide strings just use ReadMemory/memcpy to a scalar.
I also like just being able to have 64-bit integers converted to/from NVs (double). For a huge range of values, there is no data loss. For some values, you lose some less-significant bits (which can be inappropriate for some uses but often is not a problem). I can certainly see not making this the default, of course.
Risk of unintentional data/high bit loss is nearly guaranteed for someone who doesn't know C/perlguts and 2^53 limit.
PWCHARtoPV()? Just kidding.
I've been thinking about BADLPCWSTRTOMBCSPV jkjk.