Method: Cosmos::Win32.get_last_error_message
- Defined in:
- lib/cosmos/win32/win32_main.rb
.get_last_error_message ⇒ Object
Gets the error message from the last error
282 283 284 285 286 |
# File 'lib/cosmos/win32/win32_main.rb', line 282 def self. last_error = Win32.get_last_error language_id = Win32.make_lang_id(LANG_NEUTRAL, SUBLANG_DEFAULT) Win32.(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, last_error, language_id) end |