System.Data_BID.cs 45 KB

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