All pastes #90418 Raw Edit

m0

public text v1 · immutable
#90418 ·published 2006-07-17 17:35 UTC
rendered paste body

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();






        /// <summary>
        /// The Main Error Struct
        /// </summary>
        [StructLayout(LayoutKind.Sequential)]
        public struct HDErrorInfo
        {
            public uint errorCode;
            public int internalErrorCode;
            public uint hHD;
        }


        /// <summary>
        /// Returns error information in the reverse order
        /// </summary>
        /// <remarks>
        /// i.e. most recent error first
        /// </remarks>
        /// <returns>Returns an error with code HD_SUCCESS if no error on stack.</returns>
        [DllImport("hd", EntryPoint="#11")]
        public static extern HDErrorInfo hdGetError();