drop
] [
[ key subkey mode ] dip n>win32-error-string
- open-key-failed
+ throw-open-key-failed
] if
] keep HKEY deref ;
hKey lpSubKey 0 lpClass dwOptions samDesired
lpSecurityAttributes
] dip n>win32-error-string
- create-key-failed
+ throw-create-key-failed
] unless ;
: create-key ( hkey lsubkey -- hkey )