Method: Cosmos::Win32.get_last_error_message

Defined in:
lib/cosmos/win32/win32_main.rb

.get_last_error_messageObject

Gets the error message from the last error



282
283
284
285
286
# File 'lib/cosmos/win32/win32_main.rb', line 282

def self.get_last_error_message
  last_error = Win32.get_last_error
  language_id = Win32.make_lang_id(LANG_NEUTRAL, SUBLANG_DEFAULT)
  Win32.format_message(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, last_error, language_id)
end