CF_UNICODETEXT GetClipboardData dup win32-error=0/f
dup GlobalLock dup win32-error=0/f
GlobalUnlock win32-error=0/f
- utf16n alien>string
+ alien>native-string
] if
] with-clipboard
crlf>lf ;
: copy ( str -- )
lf>crlf [
- utf16n string>alien
+ native-string>alien
EmptyClipboard win32-error=0/f
GMEM_MOVEABLE over length 1 + GlobalAlloc
dup win32-error=0/f
0 >>cbClsExtra
0 >>cbWndExtra
f GetModuleHandle >>hInstance
- f GetModuleHandle "APPICON" utf16n string>alien LoadIcon >>hIcon
+ f GetModuleHandle "APPICON" native-string>alien LoadIcon >>hIcon
f IDC_ARROW LoadCursor >>hCursor
class-name-ptr >>lpszClassName