Table of Contents

Class PInvokeException

Namespace
VpnHood.Net.Toolkit.Exceptions
Assembly
VpnHood.Net.Toolkit.dll

The exception that is thrown when a native call fails, with the error code it returned.

public class PInvokeException : ExternalException, ISerializable
Inheritance
PInvokeException
Implements
Inherited Members

Constructors

PInvokeException(string)

Initializes a new instance of the PInvokeException class with the last native error of the thread, from GetLastWin32Error().

public PInvokeException(string message)

Parameters

message string

The message.

PInvokeException(string, int)

Initializes a new instance of the PInvokeException class.

public PInvokeException(string message, int errorCode)

Parameters

message string

The message.

errorCode int

The error code the native call returned.