Ejemplo n.º 1
0
        private static void DIFLogCallbackFunc(DIFXAPI_LOG EventType, Int32 ErrorCode, string EventDescription, IntPtr CallbackContext)
        {
            switch (EventType)
            {
            case DIFXAPI_LOG.DIFXAPI_SUCCESS:
                Debug.WriteLine(String.Format("SUCCESS: {0}. Error code: {1}", EventDescription, ErrorCode));
                break;

            case DIFXAPI_LOG.DIFXAPI_INFO:
                Debug.WriteLine(String.Format("INFO: {0}. Error code: {1}", EventDescription, ErrorCode));
                break;

            case DIFXAPI_LOG.DIFXAPI_WARNING:
                Debug.WriteLine(String.Format("WARNING: {0}. Error code: {1}", EventDescription, ErrorCode));
                break;

            case DIFXAPI_LOG.DIFXAPI_ERROR:
                Debug.WriteLine(String.Format("ERROR: {0}. Error code: {1}", EventDescription, ErrorCode));
                break;
            }
        }
Ejemplo n.º 2
0
 private static void DIFLogCallbackFunc(DIFXAPI_LOG EventType, Int32 ErrorCode, string EventDescription, IntPtr CallbackContext)
 {
     switch (EventType)
     {
         case DIFXAPI_LOG.DIFXAPI_SUCCESS:
             Debug.WriteLine(String.Format("SUCCESS: {0}. Error code: {1}", EventDescription, ErrorCode));
             break;
         case DIFXAPI_LOG.DIFXAPI_INFO:
             Debug.WriteLine(String.Format("INFO: {0}. Error code: {1}", EventDescription, ErrorCode));
             break;
         case DIFXAPI_LOG.DIFXAPI_WARNING:
             Debug.WriteLine(String.Format("WARNING: {0}. Error code: {1}", EventDescription, ErrorCode));
             break;
         case DIFXAPI_LOG.DIFXAPI_ERROR:
             Debug.WriteLine(String.Format("ERROR: {0}. Error code: {1}", EventDescription, ErrorCode));
             break;
     }
 }