1 // help building System.Data without win32-specific p/invokes
4 using System
.Diagnostics
;
6 internal static partial class Bid
{
7 internal enum ApiGroup
: uint {
9 Correlation
= 0x00040000,
12 internal static bool AdvancedOn
{
16 internal static bool IsOn (ApiGroup flag
)
22 internal static void Trace (params object[] a
)
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
)
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
)
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
)
77 static internal bool CheckTokenMembership (IntPtr tokenHandle
, byte[] sidToCheck
, out bool isMember
)
83 static internal bool GetTokenInformation (IntPtr tokenHandle
, uint token_class
, IntPtr tokenStruct
, uint tokenInformationLength
, ref uint tokenString
)
88 static internal bool ConvertSidToStringSidW (IntPtr sid
, out IntPtr stringSid
)
90 stringSid
= IntPtr
.Zero
;