~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to contrib/Mono.Cecil/Mono.Cecil/Mono.Cecil/PInvokeAttributes.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
// Author:
5
5
//   Jb Evain (jbevain@gmail.com)
6
6
//
7
 
// (C) 2005 Jb Evain
 
7
// Copyright (c) 2008 - 2010 Jb Evain
8
8
//
9
9
// Permission is hereby granted, free of charge, to any person obtaining
10
10
// a copy of this software and associated documentation files (the
26
26
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27
27
//
28
28
 
 
29
using System;
 
30
 
29
31
namespace Mono.Cecil {
30
32
 
31
 
        using System;
32
 
 
33
33
        [Flags]
34
34
        public enum PInvokeAttributes : ushort {
35
35
                NoMangle                        = 0x0001,       // PInvoke is to use the member name as specified
40
40
                CharSetAnsi                     = 0x0002,
41
41
                CharSetUnicode          = 0x0004,
42
42
                CharSetAuto                     = 0x0006,
 
43
 
43
44
                SupportsLastError       = 0x0040,       // Information about target function. Not relevant for fields
44
45
 
45
46
                // Calling convetion
48
49
                CallConvCdecl           = 0x0200,
49
50
                CallConvStdCall         = 0x0300,
50
51
                CallConvThiscall        = 0x0400,
51
 
                CallConvFastcall        = 0x0500
 
52
                CallConvFastcall        = 0x0500,
 
53
 
 
54
                BestFitMask                     = 0x0030,
 
55
                BestFitEnabled          = 0x0010,
 
56
                BestFidDisabled         = 0x0020,
 
57
 
 
58
                ThrowOnUnmappableCharMask = 0x3000,
 
59
                ThrowOnUnmappableCharEnabled = 0x1000,
 
60
                ThrowOnUnmappableCharDisabled = 0x2000,
52
61
        }
53
62
}