Logo Search packages:      
Sourcecode: f-spot version File versions  Download package

SafeNativeMethods.cs

using System;

namespace FlickrNet
{
      /// <summary>
      /// Summary description for SafeNativeMethods.
      /// </summary>
#if !WindowsCE
      [System.Security.SuppressUnmanagedCodeSecurity()]
#endif
00011     internal class SafeNativeMethods
      {
            private SafeNativeMethods()
            {
            }

            internal static int GetErrorCode(System.IO.IOException ioe)
            {
#if !WindowsCE
                  return System.Runtime.InteropServices.Marshal.GetHRForException(ioe) & 0xFFFF;
#else
            return 0;
#endif
            }
      }
}

Generated by  Doxygen 1.6.0   Back to index