Merge pull request #2333 from joelmartinez/docs-classic-fix
[mono.git] / mcs / class / System.Data / MobileStubs.cs
1 // help building System.Data without win32-specific p/invokes
2
3 using System;
4 using System.Diagnostics;
5
6 internal static partial class Bid {
7     internal enum ApiGroup : uint {
8                 Pooling     = 0x00001000,
9                 Correlation = 0x00040000,
10         }
11         
12     internal static bool AdvancedOn {
13         get { return false; }
14     }
15
16     internal static bool IsOn (ApiGroup flag)
17         {
18         return false;
19     }
20
21         [Conditional ("BID")]
22         internal static void Trace (params object[] a)
23         {
24         }
25
26         [Conditional ("BID")]
27         internal static void PoolerTrace (params object[] a)
28         {
29         }
30
31         // out method can't be conditional
32         internal static void ScopeEnter (out IntPtr p, params object[] a)
33         {
34                 p = IntPtr.Zero;
35         }
36         
37         [Conditional ("BID")]
38         internal static void ScopeLeave (ref IntPtr a)
39         {
40         }
41         
42         // out method can't be conditional
43         internal static void PoolerScopeEnter (out IntPtr p, string a, System.Int32 b)
44         {
45                 p = IntPtr.Zero;
46         }
47 }
48
49 [ConditionalAttribute ("CODE_ANALYSIS")]
50 [AttributeUsage (AttributeTargets.Method)]
51 internal sealed class BidMethodAttribute : Attribute {
52 }
53
54 [ConditionalAttribute ("CODE_ANALYSIS")]
55 [AttributeUsage (AttributeTargets.Parameter | AttributeTargets.Method, AllowMultiple=true)]
56 internal sealed class BidArgumentTypeAttribute : Attribute {
57         internal BidArgumentTypeAttribute (Type bidArgumentType)
58         {
59         }
60 }
61
62 namespace System.Data.Common {
63
64         internal static class UnsafeNativeMethods {
65                 
66                 // note: likely unreachable code - as this never worked on mono
67                 internal static int lstrlenW (IntPtr p)
68                 {
69                         throw new NotImplementedException ();
70                 }
71                 
72                 static internal int CreateWellKnownSid (int sidType, byte[] domainSid, byte[] resultSid, ref uint resultSidLength )
73                 {
74                         return -1;
75                 }
76                 
77                 static internal bool CheckTokenMembership (IntPtr tokenHandle, byte[] sidToCheck, out bool isMember)
78                 {
79                         isMember = false;
80                         return false;
81                 }
82                 
83                 static internal bool GetTokenInformation (IntPtr tokenHandle, uint token_class, IntPtr tokenStruct, uint tokenInformationLength, ref uint tokenString)
84                 {
85                         return false;
86                 }
87                 
88                 static internal bool ConvertSidToStringSidW (IntPtr sid, out IntPtr stringSid)
89                 {
90                         stringSid = IntPtr.Zero;
91                         return false;
92                 }
93         }
94 }