public static int set_last_error(int errorCode) { int old_errno = NativeFunctions.GetLastError(); NativeFunctions.SetLastError(errorCode); return(old_errno); }
public static int get_last_error() { if (Environment.OSVersion.Platform == PlatformID.Win32NT) { return(NativeFunctions.GetLastError()); } throw PythonOps.NameError("get_last_error"); }
public static int set_last_error(int errorCode) { if (Environment.OSVersion.Platform == PlatformID.Win32NT) { int old_errno = NativeFunctions.GetLastError(); NativeFunctions.SetLastError(errorCode); return(old_errno); } throw PythonOps.NameError("set_last_error"); }