USING: alien.data kernel locals math math.bitwise
windows.kernel32 sequences byte-arrays unicode.categories
-io.encodings.string io.encodings.utf16n alien.strings
-arrays literals windows.types specialized-arrays
-math.parser ;
+io.encodings.string alien.strings arrays literals
+windows.types specialized-arrays math.parser ;
SPECIALIZED-ARRAY: TCHAR
IN: windows.errors
f pick [ FormatMessage ] dip
swap zero?
[ drop "Unknown error 0x" id 0xffff,ffff bitand >hex append ]
- [ utf16n alien>string [ blank? ] trim ] if ;
+ [ alien>native-string [ blank? ] trim ] if ;
: win32-error-string ( -- str )
GetLastError n>win32-error-string ;