Merge pull request #4434 from BrzVlad/fix-unload-hang
[mono.git] / mcs / class / referencesource / System.Data / System / Data / Common / System.Data_BID.cs
1 //-----------------------------------------------------------------------------------------------
2 // <copyright file="System.Data_BID.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 // <owner current="true" primary="true">[....]</owner>
6 // <owner current="true" primary="false">[....]</owner>
7 //-----------------------------------------------------------------------------------------------
8
9 using System;
10 using System.Text;
11 using System.Security;
12 using System.Reflection;
13 using System.Security.Permissions;
14 using System.Runtime.ConstrainedExecution;
15 using System.Runtime.InteropServices;
16 using System.Runtime.Versioning;
17
18 [module: BidIdentity("System.Data.1")]
19 [module: BidMetaText(":FormatControl: InstanceID='' ")]
20 [module: BidMetaText("<CountHint> Trace=1200; Scope=250;")]
21 [module: BidMetaText("<Alias>  ds = System.Data;"
22                             + "comm = System.Data.Common;"
23                             + "odbc = System.Data.Odbc;"
24                             + "oledb= System.Data.OleDb;"
25                             + "prov = System.Data.ProviderBase;"
26                             + "sc   = System.Data.Sql;"
27                             + "sql  = System.Data.SqlClient;" 
28                             + "cqt  = System.Data.Common.CommandTrees;" 
29                             + "cqti = System.Data.Common.CommandTrees.Internal;" 
30                             + "esql = System.Data.Common.EntitySql;"
31                             + "ec   = System.Data.EntityClient;"
32                             + "dobj = System.Data.Objects;"
33                             + "md   = System.Data.Metadata;"
34                             + "ra   = System.Data.Query.ResultAssembly;"
35                             + "pc   = System.Data.Query.PlanCompiler;"
36                             + "iqt  = System.Data.Query.InternalTrees;"
37                             + "mp   = System.Data.Mapping;"
38                             + "upd  = System.Data.Mapping.Update;"
39                             + "vgen = System.Data.Mapping.ViewGeneration;"
40 )]
41
42 //
43 //  DbConnectionPool.cs: const Bid.ApiGroup PoolerTracePoints
44 //
45 [module: BidMetaText("<ApiGroup|ProviderBase|CPOOL> 0x00001000: Connection Pooling")]
46
47 //
48 //  SqlDependency.cs: const Bid.ApiGroup NotificationsTracePoints
49 //
50 [module: BidMetaText("<ApiGroup|SqlClient|DEP> 0x00002000: SqlDependency Notifications")]
51
52 //
53 //  System\Data\Query\Bridge\IteratorSource.cs:        internal const Bid.ApiGroup ResultAssemblyTracePoints
54 //
55 [module: BidMetaText("<ApiGroup|System.Data.Query|RA> 0x00004000: Result Assembly")]
56
57 //
58 //  System\Data\Query\PlanCompiler\PlanCompiler.cs:        internal const Bid.ApiGroup PlanCompilerTracePoints
59 //
60 [module: BidMetaText("<ApiGroup|System.Data.Query.PlanCompiler|PC> 0x00008000: Plan Compilation")]
61
62 //
63 //  System\Data\Common\ActivityCorrelator.cs:        internal const Bid.ApiGroup Correlation
64 //
65 [module: BidMetaText("<ApiGroup|SqlClient|Correlation> 0x00040000: Correlation")]
66
67
68 internal static partial class Bid
69 {
70     private const string dllName = "System.Data.dll";
71
72     //
73     //  Manually added wrappers
74     //
75     [BidMethod]
76     [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
77     internal static void PoolerTrace(string fmtPrintfW, System.Int32 a1) {
78         if ((modFlags & System.Data.ProviderBase.DbConnectionPool.PoolerTracePoints) != 0  &&  modID != NoData)
79             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, a1);
80     }
81
82     [BidMethod]
83     internal static void PoolerTrace(string fmtPrintfW, System.Int32 a1, System.Int32 a2) {
84         if ((modFlags & System.Data.ProviderBase.DbConnectionPool.PoolerTracePoints) != 0  &&  modID != NoData)
85             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, a1,a2);
86     }
87
88     [BidMethod]
89     internal static void PoolerTrace(string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3) {
90         if ((modFlags & System.Data.ProviderBase.DbConnectionPool.PoolerTracePoints) != 0  &&  modID != NoData)
91             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, a1,a2,a3);
92     }
93
94     [BidMethod]
95     internal static void PoolerTrace(string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3, System.Int32 a4) {
96         if ((modFlags & System.Data.ProviderBase.DbConnectionPool.PoolerTracePoints) != 0  &&  modID != NoData)
97             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, a1,a2,a3,a4);
98     }
99
100     [BidMethod]
101     internal static void PoolerTrace(
102             string fmtPrintfW, 
103             System.Int32 a1, 
104             [BidArgumentType(typeof(String))] System.Exception a2) {
105         if ((modFlags & System.Data.ProviderBase.DbConnectionPool.PoolerTracePoints) != 0  &&  modID != NoData)
106             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, a1,a2.ToString());
107     }
108
109     [BidMethod]
110     internal static void PoolerScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1) {
111         if ((modFlags & System.Data.ProviderBase.DbConnectionPool.PoolerTracePoints) != 0  &&  modID != NoData) {
112             NativeMethods.ScopeEnter(modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW,a1);
113         } else {
114             hScp = NoData;
115         }
116     }
117
118     [BidMethod]
119     internal static void NotificationsScopeEnter(out IntPtr hScp, string fmtPrintfW, string fmtPrintfW2) {
120         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData) {
121             NativeMethods.ScopeEnter(modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW, fmtPrintfW2);
122         } else {
123             hScp = NoData;
124         }
125     }
126
127     [BidMethod]
128     internal static void NotificationsScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1) {
129         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData) {
130             NativeMethods.ScopeEnter(modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW, a1);
131         } else {
132             hScp = NoData;
133         }
134     }
135
136     [BidMethod]
137     internal static void NotificationsScopeEnter(out IntPtr hScp, string fmtPrintfW, string fmtPrintfW2, string fmtPrintfW3) {
138         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData) {
139             NativeMethods.ScopeEnter(modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW, fmtPrintfW2, fmtPrintfW3);
140         } else {
141             hScp = NoData;
142         }
143     }
144
145     [BidMethod]
146     internal static void NotificationsScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, string fmtPrintfW2) {
147         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData) {
148             NativeMethods.ScopeEnter(modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW, a1, fmtPrintfW2);
149         } else {
150             hScp = NoData;
151         }
152     }
153
154     [BidMethod]
155     internal static void NotificationsScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Int32 a2) {
156         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData) {
157             NativeMethods.ScopeEnter(modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW, a1, a2);
158         } else {
159             hScp = NoData;
160         }
161     }
162
163     [BidMethod]
164     internal static void NotificationsScopeEnter(out IntPtr hScp, string fmtPrintfW, string fmtPrintfW2, string fmtPrintfW3, string fmtPrintfW4) {
165         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData) {
166             NativeMethods.ScopeEnter(modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW, fmtPrintfW2, fmtPrintfW3, fmtPrintfW4);
167         } else {
168             hScp = NoData;
169         }
170     }
171
172     [BidMethod]
173     internal static void NotificationsScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, string fmtPrintfW2, System.Int32 a2) {
174         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData) {
175             NativeMethods.ScopeEnter(modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW, a1, fmtPrintfW2, a2);
176         } else {
177             hScp = NoData;
178         }
179     }
180
181     [BidMethod]
182     internal static void NotificationsScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, string fmtPrintfW2, string fmtPrintfW3, System.Int32 a4) {
183         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData) {
184             NativeMethods.ScopeEnter(modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW, a1, fmtPrintfW2, fmtPrintfW3, a4);
185         } else {
186             hScp = NoData;
187         }
188     }
189
190     [BidMethod]
191     internal static void NotificationsTrace(string fmtPrintfW) {
192         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData)
193             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW);
194     }
195
196     [BidMethod]
197     internal static void NotificationsTrace(string fmtPrintfW, string fmtPrintfW2) {
198         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData)
199             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, fmtPrintfW2);
200     }
201
202     [BidMethod]
203     internal static void NotificationsTrace(string fmtPrintfW, System.Int32 a1) {
204         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData)
205             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, a1);
206     }
207
208     [BidMethod]
209     internal static void NotificationsTrace(string fmtPrintfW, System.Boolean a1) {
210         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData)
211             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, a1);
212     }
213
214     [BidMethod]
215     internal static void NotificationsTrace(string fmtPrintfW, string fmtPrintfW2, System.Int32 a1) {
216         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData)
217             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, fmtPrintfW2, a1);
218     }
219
220     [BidMethod]
221     internal static void NotificationsTrace(string fmtPrintfW, System.Int32 a1, string fmtPrintfW2) {
222         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData)
223             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, a1, fmtPrintfW2);
224     }
225
226     [BidMethod]
227     internal static void NotificationsTrace(string fmtPrintfW, System.Int32 a1, System.Int32 a2) {
228         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData)
229             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, a1, a2);
230     }
231
232     [BidMethod]
233     internal static void NotificationsTrace(string fmtPrintfW, System.Int32 a1, System.Boolean a2) {
234         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData)
235             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, a1, a2);
236     }
237
238     [BidMethod]
239     internal static void NotificationsTrace(string fmtPrintfW, System.String a1, System.String a2) {
240         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData)
241             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, a1, a2);
242     }
243
244     [BidMethod]
245     internal static void NotificationsTrace(string fmtPrintfW, string fmtPrintfW2, string fmtPrintfW3, System.Int32 a1) {
246         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData)
247             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, fmtPrintfW2, fmtPrintfW3, a1);
248     }
249
250     [BidMethod]
251     internal static void NotificationsTrace(string fmtPrintfW, System.Boolean a1, string fmtPrintfW2, string fmtPrintfW3, string fmtPrintfW4) {
252         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData)
253             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, a1, fmtPrintfW2, fmtPrintfW3, fmtPrintfW4);
254     }
255
256     [BidMethod]
257     internal static void NotificationsTrace(string fmtPrintfW, System.Int32 a1, string fmtPrintfW2, string fmtPrintfW3, string fmtPrintfW4) {
258         if ((modFlags & System.Data.SqlClient.SqlDependency.NotificationsTracePoints) != 0  &&  modID != NoData)
259             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, a1, fmtPrintfW2, fmtPrintfW3, fmtPrintfW4);
260     }
261
262     [BidMethod]
263     [BidArgumentType(typeof(string))] // format string should have a string spec (%ls) for an Activity ID argument as last
264     internal static void CorrelationTrace(string fmtPrintfW, System.Int32 a1) {
265         if ((modFlags & Bid.ApiGroup.Correlation) != 0
266             && (modFlags & Bid.ApiGroup.Trace) != 0 && modID != NoData) {
267             System.Data.Common.ActivityCorrelator.ActivityId actId = System.Data.Common.ActivityCorrelator.Next();
268             NativeMethods.Trace(modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, a1, actId.ToString());
269         }
270     }
271
272     [BidMethod]
273     [BidArgumentType(typeof(string))] // format string should have a string spec (%ls) for an Activity ID argument as last
274     internal static void CorrelationTrace(string fmtPrintfW)
275     {
276         if ((modFlags & Bid.ApiGroup.Correlation) != 0
277             && (modFlags & Bid.ApiGroup.Trace) != 0 && modID != NoData) {
278             System.Data.Common.ActivityCorrelator.ActivityId actId = System.Data.Common.ActivityCorrelator.Next();
279             NativeMethods.Trace(modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, actId.ToString());
280         }
281     }
282
283     [BidMethod]
284     [BidArgumentType(typeof(string))] // format string should have a string spec (%ls) for an Activity ID argument as last
285     internal static void CorrelationTrace(string fmtPrintfW, System.Int32 a1, System.Int32 a2) {
286         if ((modFlags & Bid.ApiGroup.Correlation) != 0
287             && (modFlags & Bid.ApiGroup.Trace) != 0 && modID != NoData) {
288             System.Data.Common.ActivityCorrelator.ActivityId actId = System.Data.Common.ActivityCorrelator.Next();
289             NativeMethods.Trace(modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, a1, a2, actId.ToString());
290         }
291     }
292
293 #if !NO_ODBC
294     //
295     //  Manually edited wrappers
296     //
297     [BidMethod]
298     [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
299     internal static void TraceSqlReturn(
300         string fmtPrintfW, 
301         [BidArgumentType(typeof(System.Int32))] System.Data.Odbc.ODBC32.RetCode a1) {
302         if (((System.Data.Odbc.ODBC32.RetCode.SUCCESS != a1) ||  (modFlags & ApiGroup.StatusOk) != 0) &&  (modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
303             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, (int)(short)a1);
304     }
305
306     [BidMethod]
307     internal static void TraceSqlReturn(
308         string fmtPrintfW,
309         [BidArgumentType(typeof(System.Int32))] System.Data.Odbc.ODBC32.RetCode a1, 
310         string a2) {
311         if (((System.Data.Odbc.ODBC32.RetCode.SUCCESS != a1) ||  (modFlags & ApiGroup.StatusOk) != 0) &&  (modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
312             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, (int)(short)a1, a2);
313     }
314 #endif
315
316 #if !NO_OLEDB
317     [BidMethod]
318     [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
319     internal static void Trace(string fmtPrintfW, System.Data.OleDb.OleDbHResult a1) { // 
320         if (((System.Data.OleDb.OleDbHResult.S_OK != a1) ||  (modFlags & ApiGroup.StatusOk) != 0) &&  (modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
321             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, (int)a1);
322     }
323
324     [BidMethod]
325     internal static void Trace(string fmtPrintfW, System.Data.OleDb.OleDbHResult a1, System.String a2) {
326         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
327             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, (int)a1,a2);
328     }
329
330     [BidMethod]
331     internal static void Trace(string fmtPrintfW, System.Data.OleDb.OleDbHResult a1, System.IntPtr a2) {
332         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
333             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, (int)a1,a2);
334     }
335
336     [BidMethod]
337     internal static void Trace(string fmtPrintfW, System.Data.OleDb.OleDbHResult a1, System.Int32 a2) {
338         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
339             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, (int)a1,a2);
340     }
341 #endif
342
343     [BidMethod]
344     internal static void Trace(string fmtPrintfW, System.String a1, System.String a2) {
345         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
346             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2);
347     }
348
349     [BidMethod]
350     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.String a2, System.Boolean a3) {
351         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
352             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, a1,a2,a3);
353     }
354
355     [BidMethod]
356     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.String a3, System.String a4, System.Int32 a5) {
357         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
358             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, a1,a2,a3,a4,a5);
359     }
360
361     [BidMethod]
362     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int64 a3, System.UInt32 a4, System.Int32 a5, System.UInt32 a6, System.UInt32 a7) {
363         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
364             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, a1,a2,a3,a4,a5,a6,a7);
365     }
366
367
368
369     [BidMethod]
370     internal static void ScopeEnter(
371             out IntPtr hScp, 
372             string fmtPrintfW, 
373             System.Int32 a1,
374             [BidArgumentType(typeof(String))] System.Guid a2) {
375         if ((modFlags & ApiGroup.Scope) != 0  &&  modID != NoData) {
376             NativeMethods.ScopeEnter (modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW,a1, a2.ToString());
377         } else {
378             hScp = NoData;
379         }
380     }
381
382     [BidMethod]
383     internal static void ScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.String a2, System.Int32 a3) {
384         if ((modFlags & ApiGroup.Scope) != 0  &&  modID != NoData) {
385             NativeMethods.ScopeEnter (modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW,a1,a2,a3);
386         } else {
387             hScp = NoData;
388         }
389     }
390
391     [BidMethod]
392     internal static void ScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Boolean a2, System.Int32 a3) {
393         if ((modFlags & ApiGroup.Scope) != 0  &&  modID != NoData) {
394             NativeMethods.ScopeEnter (modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW,a1,a2,a3);
395         } else {
396             hScp = NoData;
397         }
398     }    
399     
400
401     //
402     //  Trace overloads
403     //
404     [BidMethod]
405     [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
406     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.String a2) {
407         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
408             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2);
409     }
410
411     [BidMethod]
412     [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
413     internal static void Trace(string fmtPrintfW, System.IntPtr a1) {
414         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
415             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1);
416     }
417
418     [BidMethod]
419     internal static void Trace(string fmtPrintfW, System.Int32 a1) {
420         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
421             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1);
422     }
423
424     [BidMethod]
425     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Int32 a2) {
426         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
427             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2);
428     }
429
430     [BidMethod]
431     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.IntPtr a2, System.IntPtr a3) {
432         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
433             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2,a3);
434     }
435
436     [BidMethod]
437     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.IntPtr a2) {
438         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
439             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2);
440     }
441
442     [BidMethod]
443     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.String a2, System.String a3) {
444         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
445             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2,a3);
446     }
447
448     [BidMethod]
449     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.String a2, System.Int32 a3) {
450         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
451             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2,a3);
452     }
453
454     [BidMethod]
455     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.String a2, System.String a3, System.Int32 a4) {
456         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
457             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2,a3,a4);
458     }
459
460     [BidMethod]
461     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3, System.String a4, System.String a5, System.Int32 a6) {
462         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
463             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2,a3,a4,a5,a6);
464     }
465
466     [BidMethod]
467     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3) {
468         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
469             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2,a3);
470     }
471
472     [BidMethod]
473     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Boolean a2) {
474         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
475             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2);
476     }
477
478     [BidMethod]
479     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3, System.Int32 a4) {
480         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
481             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2,a3,a4);
482     }
483
484     [BidMethod]
485     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Boolean a3) {
486         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
487             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2,a3);
488     }
489
490     [BidMethod]
491     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3, System.Int32 a4, System.Int32 a5, System.Int32 a6, System.Int32 a7) {
492         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
493             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2,a3,a4,a5,a6,a7);
494     }
495
496     [BidMethod]
497     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.String a2, System.Int32 a3, System.Int32 a4, System.Boolean a5) {
498         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
499             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2,a3,a4,a5);
500     }
501
502     [BidMethod]
503     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Int64 a2) {
504         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
505             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2);
506     }
507
508     [BidMethod]
509     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int64 a3) {
510         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
511             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2,a3 );
512     }
513
514     [BidMethod]
515     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.String a2, System.String a3, System.String a4, System.Int32 a5, System.Int64 a6) {
516         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
517             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2,a3,a4,a5,a6);
518     }
519
520     [BidMethod]
521     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Int64 a2, System.Int32 a3, System.Int32 a4) {
522         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
523             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2,a3,a4);
524     }
525
526     [BidMethod]
527     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int64 a3, System.Int32 a4) {
528         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
529             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2,a3,a4);
530     }
531
532     [BidMethod]
533     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3, System.Int32 a4, System.String a5, System.String a6, System.String a7, System.Int32 a8) {
534         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
535             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2,a3,a4,a5,a6,a7,a8);
536     }
537
538     [BidMethod]
539     internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.String a3, System.String a4) {
540         if ((modFlags & ApiGroup.Trace) != 0  &&  modID != NoData)
541             NativeMethods.Trace (modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW,a1,a2,a3,a4);
542     }
543
544
545     //
546     //  ScopeEnter overloads
547     //
548     [BidMethod]
549     internal static void ScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.String a2) {
550         if ((modFlags & ApiGroup.Scope) != 0  &&  modID != NoData) {
551             NativeMethods.ScopeEnter (modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW,a1,a2);
552         } else {
553             hScp = NoData;
554         }
555     }
556
557     [BidMethod]
558     internal static void ScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Boolean a2) {
559         if ((modFlags & ApiGroup.Scope) != 0  &&  modID != NoData) {
560             NativeMethods.ScopeEnter (modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW,a1,a2);
561         } else {
562             hScp = NoData;
563         }
564     }
565
566     [BidMethod]
567     internal static void ScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.String a3) {
568         if ((modFlags & ApiGroup.Scope) != 0  &&  modID != NoData) {
569             NativeMethods.ScopeEnter (modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW,a1,a2,a3);
570         } else {
571             hScp = NoData;
572         }
573     }
574
575     [BidMethod]
576     internal static void ScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.String a2, System.Boolean a3) {
577         if ((modFlags & ApiGroup.Scope) != 0  &&  modID != NoData) {
578             NativeMethods.ScopeEnter (modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW,a1,a2,a3);
579         } else {
580             hScp = NoData;
581         }
582     }
583
584     [BidMethod]
585     internal static void ScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Boolean a3) {
586         if ((modFlags & ApiGroup.Scope) != 0  &&  modID != NoData) {
587             NativeMethods.ScopeEnter (modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW,a1,a2,a3);
588         } else {
589             hScp = NoData;
590         }
591     }
592
593     [BidMethod]
594     internal static void ScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3, System.String a4) {
595         if ((modFlags & ApiGroup.Scope) != 0  &&  modID != NoData) {
596             NativeMethods.ScopeEnter (modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW,a1,a2,a3,a4);
597         } else {
598             hScp = NoData;
599         }
600     }
601
602     [BidMethod]
603     internal static void ScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3) {
604         if ((modFlags & ApiGroup.Scope) != 0  &&  modID != NoData) {
605             NativeMethods.ScopeEnter (modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW,a1,a2,a3);
606         } else {
607             hScp = NoData;
608         }
609     }
610
611     [BidMethod]
612     internal static void ScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Boolean a3, System.Int32 a4) {
613         if ((modFlags & ApiGroup.Scope) != 0  &&  modID != NoData) {
614             NativeMethods.ScopeEnter (modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW,a1,a2,a3,a4);
615         } else {
616             hScp = NoData;
617         }
618     }
619
620
621     //
622     // Interop calls to pluggable hooks [SuppressUnmanagedCodeSecurity] applied
623     //
624     private static partial class NativeMethods
625     {
626         //
627         //  Manually edited wrappers
628         //
629         [ResourceExposure(ResourceScope.None)]
630         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
631         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.String a3, System.String a4, System.Int32 a5);
632
633         [ResourceExposure(ResourceScope.None)]
634         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
635         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.String a2, System.Boolean a3);
636
637         [ResourceExposure(ResourceScope.None)]
638         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
639         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int64 a3, System.UInt32 a4, System.Int32 a5, System.UInt32 a6, System.UInt32 a7);
640
641         [ResourceExposure(ResourceScope.None)]
642         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
643         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.String a1, System.String a2);
644
645         [ResourceExposure(ResourceScope.None)]
646         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidScopeEnterCW")] extern
647         internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.String a1, System.String a2);
648
649         [ResourceExposure(ResourceScope.None)]
650         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidScopeEnterCW")] extern
651         internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.String a2, System.Int32 a3);
652
653         [ResourceExposure(ResourceScope.None)]
654         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidScopeEnterCW")] extern
655         internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Boolean a2, System.Int32 a3);
656
657         [ResourceExposure(ResourceScope.None)]
658         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidScopeEnterCW")] extern
659         internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.String a1, System.String a2, System.String a3);
660
661         [ResourceExposure(ResourceScope.None)]
662         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidScopeEnterCW")] extern
663         internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.String a2, System.String a3, System.Int32 a4);
664
665         //
666         //  Trace
667         //
668
669         [ResourceExposure(ResourceScope.None)]
670         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
671         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.IntPtr a1);
672
673         [ResourceExposure(ResourceScope.None)]
674         [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
675         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
676         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1);
677
678         [ResourceExposure(ResourceScope.None)]
679         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
680         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Boolean a1);
681
682         [ResourceExposure(ResourceScope.None)]
683         [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
684         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
685         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, string fmtPrintfW2, System.Int32 a1);
686
687         [ResourceExposure(ResourceScope.None)]
688         [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
689         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
690         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.String a2);
691
692         [ResourceExposure(ResourceScope.None)]
693         [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
694         [DllImport(dllName, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl, EntryPoint = "DllBidTraceCW")] extern
695         internal static void Trace(IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.String a3);
696
697         [ResourceExposure(ResourceScope.None)]
698         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
699         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int32 a2);
700
701         [ResourceExposure(ResourceScope.None)]
702         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
703         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.IntPtr a2, System.IntPtr a3);
704
705         [ResourceExposure(ResourceScope.None)]
706         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
707         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.IntPtr a2);
708
709         [ResourceExposure(ResourceScope.None)]
710         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
711         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.String a2, System.String a3);
712
713         [ResourceExposure(ResourceScope.None)]
714         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
715         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.String a2, System.Int32 a3);
716
717         [ResourceExposure(ResourceScope.None)]
718         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
719         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.String a2, System.String a3, System.Int32 a4);
720
721         [ResourceExposure(ResourceScope.None)]
722         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
723         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3, System.String a4, System.String a5, System.Int32 a6);
724
725         [ResourceExposure(ResourceScope.None)]
726         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
727         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3);
728
729         [ResourceExposure(ResourceScope.None)]
730         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
731         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Boolean a2);
732
733         [ResourceExposure(ResourceScope.None)]
734         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
735         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.String a2, System.String a3, System.String a4);
736
737         [ResourceExposure(ResourceScope.None)]
738         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
739         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Boolean a1, System.String a2, System.String a3, System.String a4);
740
741         [ResourceExposure(ResourceScope.None)]
742         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
743         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3, System.Int32 a4);
744
745         [ResourceExposure(ResourceScope.None)]
746         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
747         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Boolean a3);
748
749         [ResourceExposure(ResourceScope.None)]
750         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
751         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3, System.Int32 a4, System.Int32 a5, System.Int32 a6, System.Int32 a7);
752
753         [ResourceExposure(ResourceScope.None)]
754         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
755         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.String a2, System.Int32 a3, System.Int32 a4, System.Boolean a5);
756
757         [ResourceExposure(ResourceScope.None)]
758         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
759         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int64 a2);
760
761         [ResourceExposure(ResourceScope.None)]
762         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
763         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int64 a3);
764
765         [ResourceExposure(ResourceScope.None)]
766         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
767         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW1, string fmtPrintfW2, string fmtPrintfW3, System.Int64 a4);
768
769         [ResourceExposure(ResourceScope.None)]
770         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
771         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.String a2, System.String a3, System.String a4, System.Int32 a5, System.Int64 a6);
772
773         [ResourceExposure(ResourceScope.None)]
774         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
775         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int64 a2, System.Int32 a3, System.Int32 a4);
776
777         [ResourceExposure(ResourceScope.None)]
778         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
779         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int64 a3, System.Int32 a4);
780
781         [ResourceExposure(ResourceScope.None)]
782         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
783         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3, System.Int32 a4, System.String a5, System.String a6, System.String a7, System.Int32 a8);
784         
785         [ResourceExposure(ResourceScope.None)]
786         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidTraceCW")] extern
787         internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.String a3, System.String a4);
788
789         //
790         //  ScopeEnter
791         //
792         [ResourceExposure(ResourceScope.None)]
793         [DllImport(dllName, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl, EntryPoint = "DllBidScopeEnterCW")] extern
794         internal static void ScopeEnter(IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, string a1);
795         
796         [ResourceExposure(ResourceScope.None)]
797         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidScopeEnterCW")] extern
798         internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.String a2);
799
800         [ResourceExposure(ResourceScope.None)]
801         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidScopeEnterCW")] extern
802         internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Boolean a2);
803
804         [ResourceExposure(ResourceScope.None)]
805         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidScopeEnterCW")] extern
806         internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.String a3);
807
808         [ResourceExposure(ResourceScope.None)]
809         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidScopeEnterCW")] extern
810         internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.String a2, System.Boolean a3);
811
812         [ResourceExposure(ResourceScope.None)]
813         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidScopeEnterCW")] extern
814         internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Boolean a3);
815
816         [ResourceExposure(ResourceScope.None)]
817         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidScopeEnterCW")] extern
818         internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3, System.String a4);
819
820         [ResourceExposure(ResourceScope.None)]
821         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidScopeEnterCW")] extern
822         internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3);
823
824         [ResourceExposure(ResourceScope.None)]
825         [DllImport(dllName, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl, EntryPoint="DllBidScopeEnterCW")] extern
826         internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Boolean a3, System.Int32 a4);
827
828     } // Native
829
830 } // Bid
831