1 2 3 4
{{ indent }}if (NativeMethods.LastErrorCode() != 0) {{ indent }}{ {{ indent }} throw {{ exception_name }}.FromLastError("{{ operation }} failed"); {{ indent }}}