typedef unsigned int HDuint; typedef unsigned char HDboolean; typedef unsigned long HDulong; typedef unsigned short HDushort; typedef int HDint; typedef float HDfloat; typedef double HDdouble; typedef long HDlong; typedef char HDchar; typedef unsigned int HDerror; typedef unsigned int HDenum; typedef const char *HDstring; typedef unsigned int HHD; typedef struct { HDerror errorCode; /* The HD_ error code */ int internalErrorCode; /* The original internal device-generated error */ HHD hHD; /* The handle of the current device when the error occurred */ } HDErrorInfo; /* Returns error information in the reverse order (i.e. most recent error first). Returns an error with code HD_SUCCESS if no error on stack. */ HDAPI HDErrorInfo HDAPIENTRY hdGetError(); /// /// The Main Error Struct /// [StructLayout(LayoutKind.Sequential)] public struct HDErrorInfo { public uint errorCode; public int internalErrorCode; public uint hHD; } /// /// Returns error information in the reverse order /// /// /// i.e. most recent error first /// /// Returns an error with code HD_SUCCESS if no error on stack. [DllImport("hd", EntryPoint="#11")] public static extern HDErrorInfo hdGetError();