[msvc] Update csproj files (#5832)
[mono-project.git] / mcs / class / System.Data / MobileStubs.cs
blob10a235eeb3859e6b02d47b8cb54b429cafb3eaa2
1 // help building System.Data without win32-specific p/invokes
3 using System;
4 using System.Diagnostics;
6 internal static partial class Bid {
7 internal enum ApiGroup : uint {
8 Pooling = 0x00001000,
9 Correlation = 0x00040000,
12 internal static bool AdvancedOn {
13 get { return false; }
16 internal static bool IsOn (ApiGroup flag)
18 return false;
21 [Conditional ("BID")]
22 internal static void Trace (params object[] a)
26 [Conditional ("BID")]
27 internal static void PoolerTrace (params object[] a)
31 // out method can't be conditional
32 internal static void ScopeEnter (out IntPtr p, params object[] a)
34 p = IntPtr.Zero;
37 [Conditional ("BID")]
38 internal static void ScopeLeave (ref IntPtr a)
42 // out method can't be conditional
43 internal static void PoolerScopeEnter (out IntPtr p, string a, System.Int32 b)
45 p = IntPtr.Zero;
49 [ConditionalAttribute ("CODE_ANALYSIS")]
50 [AttributeUsage (AttributeTargets.Method)]
51 internal sealed class BidMethodAttribute : Attribute {
54 [ConditionalAttribute ("CODE_ANALYSIS")]
55 [AttributeUsage (AttributeTargets.Parameter | AttributeTargets.Method, AllowMultiple=true)]
56 internal sealed class BidArgumentTypeAttribute : Attribute {
57 internal BidArgumentTypeAttribute (Type bidArgumentType)
62 namespace System.Data.Common {
64 internal static class UnsafeNativeMethods {
66 // note: likely unreachable code - as this never worked on mono
67 internal static int lstrlenW (IntPtr p)
69 throw new NotImplementedException ();
72 static internal int CreateWellKnownSid (int sidType, byte[] domainSid, byte[] resultSid, ref uint resultSidLength )
74 return -1;
77 static internal bool CheckTokenMembership (IntPtr tokenHandle, byte[] sidToCheck, out bool isMember)
79 isMember = false;
80 return false;
83 static internal bool GetTokenInformation (IntPtr tokenHandle, uint token_class, IntPtr tokenStruct, uint tokenInformationLength, ref uint tokenString)
85 return false;
88 static internal bool ConvertSidToStringSidW (IntPtr sid, out IntPtr stringSid)
90 stringSid = IntPtr.Zero;
91 return false;