cosmo0920 / win32-api

A different, better variant of the Win32API Ruby library
61 stars 10 forks source link

Add API.last_error #55

Closed ashie closed 3 years ago

ashie commented 3 years ago

Because Ruby may call Win32 API and reset the error code before a user calls GetLastError(), the user might not be able to correct error code. To avoid it win32-api should store last error code like FFI or Fiddle do it. FYI:

Signed-off-by: Takuro Ashie ashie@clear-code.com