PageRenderTime 58ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 1ms

/Debugger/Debugger.Core/Interop/CorDebugExtensionMethods.generated.cs

http://github.com/icsharpcode/ILSpy
C# | 2257 lines | 1917 code | 338 blank | 2 comment | 0 complexity | 9ceed89b65ec25116bfe6815c2a8f6de MD5 | raw file
Possible License(s): LGPL-2.1, MIT, CC-BY-SA-3.0
  1. // Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
  2. // This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
  3. using System;
  4. using System.Runtime.CompilerServices;
  5. using System.Runtime.InteropServices;
  6. namespace Debugger.Interop.CorDebug
  7. {
  8. public static partial class CorDebugExtensionMethods
  9. {
  10. public static void CanLaunchOrAttach(this CorDebugClass instance, uint dwProcessId, int win32DebuggingEnabled)
  11. {
  12. instance.__CanLaunchOrAttach(dwProcessId, win32DebuggingEnabled);
  13. }
  14. public static ICorDebugProcess CreateProcess(this CorDebugClass instance, string lpApplicationName, string lpCommandLine, ref _SECURITY_ATTRIBUTES lpProcessAttributes, ref _SECURITY_ATTRIBUTES lpThreadAttributes, int bInheritHandles, uint dwCreationFlags, IntPtr lpEnvironment, string lpCurrentDirectory, uint lpStartupInfo,
  15. uint lpProcessInformation, CorDebugCreateProcessFlags debuggingFlags)
  16. {
  17. ICorDebugProcess ppProcess;
  18. instance.__CreateProcess(lpApplicationName, lpCommandLine, ref lpProcessAttributes, ref lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation,
  19. debuggingFlags, out ppProcess);
  20. ProcessOutParameter(lpProcessAttributes);
  21. ProcessOutParameter(lpThreadAttributes);
  22. ProcessOutParameter(ppProcess);
  23. return ppProcess;
  24. }
  25. public static ICorDebugProcess DebugActiveProcess(this CorDebugClass instance, uint id, int win32Attach)
  26. {
  27. ICorDebugProcess ppProcess;
  28. instance.__DebugActiveProcess(id, win32Attach, out ppProcess);
  29. ProcessOutParameter(ppProcess);
  30. return ppProcess;
  31. }
  32. public static ICorDebugProcessEnum EnumerateProcesses(this CorDebugClass instance)
  33. {
  34. ICorDebugProcessEnum ppProcess;
  35. instance.__EnumerateProcesses(out ppProcess);
  36. ProcessOutParameter(ppProcess);
  37. return ppProcess;
  38. }
  39. public static ICorDebugProcess GetProcess(this CorDebugClass instance, uint dwProcessId)
  40. {
  41. ICorDebugProcess ppProcess;
  42. instance.__GetProcess(dwProcessId, out ppProcess);
  43. ProcessOutParameter(ppProcess);
  44. return ppProcess;
  45. }
  46. public static void Initialize(this CorDebugClass instance)
  47. {
  48. instance.__Initialize();
  49. }
  50. public static void SetManagedHandler(this CorDebugClass instance, ICorDebugManagedCallback pCallback)
  51. {
  52. instance.__SetManagedHandler(pCallback);
  53. }
  54. public static void SetUnmanagedHandler(this CorDebugClass instance, ICorDebugUnmanagedCallback pCallback)
  55. {
  56. instance.__SetUnmanagedHandler(pCallback);
  57. }
  58. public static void Terminate(this CorDebugClass instance)
  59. {
  60. instance.__Terminate();
  61. }
  62. public static void CanLaunchOrAttach(this EmbeddedCLRCorDebugClass instance, uint dwProcessId, int win32DebuggingEnabled)
  63. {
  64. instance.__CanLaunchOrAttach(dwProcessId, win32DebuggingEnabled);
  65. }
  66. public static ICorDebugProcess CreateProcess(this EmbeddedCLRCorDebugClass instance, string lpApplicationName, string lpCommandLine, ref _SECURITY_ATTRIBUTES lpProcessAttributes, ref _SECURITY_ATTRIBUTES lpThreadAttributes, int bInheritHandles, uint dwCreationFlags, IntPtr lpEnvironment, string lpCurrentDirectory, uint lpStartupInfo,
  67. uint lpProcessInformation, CorDebugCreateProcessFlags debuggingFlags)
  68. {
  69. ICorDebugProcess ppProcess;
  70. instance.__CreateProcess(lpApplicationName, lpCommandLine, ref lpProcessAttributes, ref lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation,
  71. debuggingFlags, out ppProcess);
  72. ProcessOutParameter(lpProcessAttributes);
  73. ProcessOutParameter(lpThreadAttributes);
  74. ProcessOutParameter(ppProcess);
  75. return ppProcess;
  76. }
  77. public static ICorDebugProcess DebugActiveProcess(this EmbeddedCLRCorDebugClass instance, uint id, int win32Attach)
  78. {
  79. ICorDebugProcess ppProcess;
  80. instance.__DebugActiveProcess(id, win32Attach, out ppProcess);
  81. ProcessOutParameter(ppProcess);
  82. return ppProcess;
  83. }
  84. public static ICorDebugProcessEnum EnumerateProcesses(this EmbeddedCLRCorDebugClass instance)
  85. {
  86. ICorDebugProcessEnum ppProcess;
  87. instance.__EnumerateProcesses(out ppProcess);
  88. ProcessOutParameter(ppProcess);
  89. return ppProcess;
  90. }
  91. public static ICorDebugProcess GetProcess(this EmbeddedCLRCorDebugClass instance, uint dwProcessId)
  92. {
  93. ICorDebugProcess ppProcess;
  94. instance.__GetProcess(dwProcessId, out ppProcess);
  95. ProcessOutParameter(ppProcess);
  96. return ppProcess;
  97. }
  98. public static void Initialize(this EmbeddedCLRCorDebugClass instance)
  99. {
  100. instance.__Initialize();
  101. }
  102. public static void SetManagedHandler(this EmbeddedCLRCorDebugClass instance, ICorDebugManagedCallback pCallback)
  103. {
  104. instance.__SetManagedHandler(pCallback);
  105. }
  106. public static void SetUnmanagedHandler(this EmbeddedCLRCorDebugClass instance, ICorDebugUnmanagedCallback pCallback)
  107. {
  108. instance.__SetUnmanagedHandler(pCallback);
  109. }
  110. public static void Terminate(this EmbeddedCLRCorDebugClass instance)
  111. {
  112. instance.__Terminate();
  113. }
  114. public static void Initialize(this ICorDebug instance)
  115. {
  116. instance.__Initialize();
  117. }
  118. public static void Terminate(this ICorDebug instance)
  119. {
  120. instance.__Terminate();
  121. }
  122. public static void SetManagedHandler(this ICorDebug instance, ICorDebugManagedCallback pCallback)
  123. {
  124. instance.__SetManagedHandler(pCallback);
  125. }
  126. public static void SetUnmanagedHandler(this ICorDebug instance, ICorDebugUnmanagedCallback pCallback)
  127. {
  128. instance.__SetUnmanagedHandler(pCallback);
  129. }
  130. public static ICorDebugProcess CreateProcess(this ICorDebug instance, string lpApplicationName, string lpCommandLine, ref _SECURITY_ATTRIBUTES lpProcessAttributes, ref _SECURITY_ATTRIBUTES lpThreadAttributes, int bInheritHandles, uint dwCreationFlags, IntPtr lpEnvironment, string lpCurrentDirectory, uint lpStartupInfo,
  131. uint lpProcessInformation, CorDebugCreateProcessFlags debuggingFlags)
  132. {
  133. ICorDebugProcess ppProcess;
  134. instance.__CreateProcess(lpApplicationName, lpCommandLine, ref lpProcessAttributes, ref lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation,
  135. debuggingFlags, out ppProcess);
  136. ProcessOutParameter(lpProcessAttributes);
  137. ProcessOutParameter(lpThreadAttributes);
  138. ProcessOutParameter(ppProcess);
  139. return ppProcess;
  140. }
  141. public static ICorDebugProcess DebugActiveProcess(this ICorDebug instance, uint id, int win32Attach)
  142. {
  143. ICorDebugProcess ppProcess;
  144. instance.__DebugActiveProcess(id, win32Attach, out ppProcess);
  145. ProcessOutParameter(ppProcess);
  146. return ppProcess;
  147. }
  148. public static ICorDebugProcessEnum EnumerateProcesses(this ICorDebug instance)
  149. {
  150. ICorDebugProcessEnum ppProcess;
  151. instance.__EnumerateProcesses(out ppProcess);
  152. ProcessOutParameter(ppProcess);
  153. return ppProcess;
  154. }
  155. public static ICorDebugProcess GetProcess(this ICorDebug instance, uint dwProcessId)
  156. {
  157. ICorDebugProcess ppProcess;
  158. instance.__GetProcess(dwProcessId, out ppProcess);
  159. ProcessOutParameter(ppProcess);
  160. return ppProcess;
  161. }
  162. public static void CanLaunchOrAttach(this ICorDebug instance, uint dwProcessId, int win32DebuggingEnabled)
  163. {
  164. instance.__CanLaunchOrAttach(dwProcessId, win32DebuggingEnabled);
  165. }
  166. public static void Stop(this ICorDebugAppDomain instance, uint dwTimeoutIgnored)
  167. {
  168. instance.__Stop(dwTimeoutIgnored);
  169. }
  170. public static void Continue(this ICorDebugAppDomain instance, int fIsOutOfBand)
  171. {
  172. instance.__Continue(fIsOutOfBand);
  173. }
  174. public static int IsRunning(this ICorDebugAppDomain instance)
  175. {
  176. int pbRunning;
  177. instance.__IsRunning(out pbRunning);
  178. return pbRunning;
  179. }
  180. public static int HasQueuedCallbacks(this ICorDebugAppDomain instance, ICorDebugThread pThread)
  181. {
  182. int pbQueued;
  183. instance.__HasQueuedCallbacks(pThread, out pbQueued);
  184. return pbQueued;
  185. }
  186. public static ICorDebugThreadEnum EnumerateThreads(this ICorDebugAppDomain instance)
  187. {
  188. ICorDebugThreadEnum ppThreads;
  189. instance.__EnumerateThreads(out ppThreads);
  190. ProcessOutParameter(ppThreads);
  191. return ppThreads;
  192. }
  193. public static void SetAllThreadsDebugState(this ICorDebugAppDomain instance, CorDebugThreadState state, ICorDebugThread pExceptThisThread)
  194. {
  195. instance.__SetAllThreadsDebugState(state, pExceptThisThread);
  196. }
  197. public static void Detach(this ICorDebugAppDomain instance)
  198. {
  199. instance.__Detach();
  200. }
  201. public static void Terminate(this ICorDebugAppDomain instance, uint exitCode)
  202. {
  203. instance.__Terminate(exitCode);
  204. }
  205. public static ICorDebugErrorInfoEnum CanCommitChanges(this ICorDebugAppDomain instance, uint cSnapshots, ref ICorDebugEditAndContinueSnapshot pSnapshots)
  206. {
  207. ICorDebugErrorInfoEnum pError;
  208. instance.__CanCommitChanges(cSnapshots, ref pSnapshots, out pError);
  209. ProcessOutParameter(pSnapshots);
  210. ProcessOutParameter(pError);
  211. return pError;
  212. }
  213. public static ICorDebugErrorInfoEnum CommitChanges(this ICorDebugAppDomain instance, uint cSnapshots, ref ICorDebugEditAndContinueSnapshot pSnapshots)
  214. {
  215. ICorDebugErrorInfoEnum pError;
  216. instance.__CommitChanges(cSnapshots, ref pSnapshots, out pError);
  217. ProcessOutParameter(pSnapshots);
  218. ProcessOutParameter(pError);
  219. return pError;
  220. }
  221. public static ICorDebugProcess GetProcess(this ICorDebugAppDomain instance)
  222. {
  223. ICorDebugProcess ppProcess;
  224. instance.__GetProcess(out ppProcess);
  225. ProcessOutParameter(ppProcess);
  226. return ppProcess;
  227. }
  228. public static ICorDebugAssemblyEnum EnumerateAssemblies(this ICorDebugAppDomain instance)
  229. {
  230. ICorDebugAssemblyEnum ppAssemblies;
  231. instance.__EnumerateAssemblies(out ppAssemblies);
  232. ProcessOutParameter(ppAssemblies);
  233. return ppAssemblies;
  234. }
  235. public static ICorDebugModule GetModuleFromMetaDataInterface(this ICorDebugAppDomain instance, object pIMetaData)
  236. {
  237. ICorDebugModule ppModule;
  238. instance.__GetModuleFromMetaDataInterface(pIMetaData, out ppModule);
  239. ProcessOutParameter(ppModule);
  240. return ppModule;
  241. }
  242. public static ICorDebugBreakpointEnum EnumerateBreakpoints(this ICorDebugAppDomain instance)
  243. {
  244. ICorDebugBreakpointEnum ppBreakpoints;
  245. instance.__EnumerateBreakpoints(out ppBreakpoints);
  246. ProcessOutParameter(ppBreakpoints);
  247. return ppBreakpoints;
  248. }
  249. public static ICorDebugStepperEnum EnumerateSteppers(this ICorDebugAppDomain instance)
  250. {
  251. ICorDebugStepperEnum ppSteppers;
  252. instance.__EnumerateSteppers(out ppSteppers);
  253. ProcessOutParameter(ppSteppers);
  254. return ppSteppers;
  255. }
  256. public static int IsAttached(this ICorDebugAppDomain instance)
  257. {
  258. int pbAttached;
  259. instance.__IsAttached(out pbAttached);
  260. return pbAttached;
  261. }
  262. public static void GetName(this ICorDebugAppDomain instance, uint cchName, out uint pcchName, IntPtr szName)
  263. {
  264. instance.__GetName(cchName, out pcchName, szName);
  265. }
  266. public static ICorDebugValue GetObject(this ICorDebugAppDomain instance)
  267. {
  268. ICorDebugValue ppObject;
  269. instance.__GetObject(out ppObject);
  270. ProcessOutParameter(ppObject);
  271. return ppObject;
  272. }
  273. public static void Attach(this ICorDebugAppDomain instance)
  274. {
  275. instance.__Attach();
  276. }
  277. public static uint GetID(this ICorDebugAppDomain instance)
  278. {
  279. uint pId;
  280. instance.__GetID(out pId);
  281. return pId;
  282. }
  283. public static ICorDebugType GetArrayOrPointerType(this ICorDebugAppDomain2 instance, uint elementType, uint nRank, ICorDebugType pTypeArg)
  284. {
  285. ICorDebugType ppType;
  286. instance.__GetArrayOrPointerType(elementType, nRank, pTypeArg, out ppType);
  287. ProcessOutParameter(ppType);
  288. return ppType;
  289. }
  290. public static ICorDebugType GetFunctionPointerType(this ICorDebugAppDomain2 instance, uint nTypeArgs, ref ICorDebugType ppTypeArgs)
  291. {
  292. ICorDebugType ppType;
  293. instance.__GetFunctionPointerType(nTypeArgs, ref ppTypeArgs, out ppType);
  294. ProcessOutParameter(ppTypeArgs);
  295. ProcessOutParameter(ppType);
  296. return ppType;
  297. }
  298. public static void Skip(this ICorDebugAppDomainEnum instance, uint celt)
  299. {
  300. instance.__Skip(celt);
  301. }
  302. public static void Reset(this ICorDebugAppDomainEnum instance)
  303. {
  304. instance.__Reset();
  305. }
  306. public static ICorDebugEnum Clone(this ICorDebugAppDomainEnum instance)
  307. {
  308. ICorDebugEnum ppEnum;
  309. instance.__Clone(out ppEnum);
  310. ProcessOutParameter(ppEnum);
  311. return ppEnum;
  312. }
  313. public static uint GetCount(this ICorDebugAppDomainEnum instance)
  314. {
  315. uint pcelt;
  316. instance.__GetCount(out pcelt);
  317. return pcelt;
  318. }
  319. public static uint Next(this ICorDebugAppDomainEnum instance, uint celt, IntPtr values)
  320. {
  321. uint pceltFetched;
  322. instance.__Next(celt, values, out pceltFetched);
  323. return pceltFetched;
  324. }
  325. public static uint GetTheType(this ICorDebugArrayValue instance)
  326. {
  327. uint pType;
  328. instance.__GetType(out pType);
  329. return pType;
  330. }
  331. public static uint GetSize(this ICorDebugArrayValue instance)
  332. {
  333. uint pSize;
  334. instance.__GetSize(out pSize);
  335. return pSize;
  336. }
  337. public static ulong GetAddress(this ICorDebugArrayValue instance)
  338. {
  339. ulong pAddress;
  340. instance.__GetAddress(out pAddress);
  341. return pAddress;
  342. }
  343. public static ICorDebugValueBreakpoint CreateBreakpoint(this ICorDebugArrayValue instance)
  344. {
  345. ICorDebugValueBreakpoint ppBreakpoint;
  346. instance.__CreateBreakpoint(out ppBreakpoint);
  347. ProcessOutParameter(ppBreakpoint);
  348. return ppBreakpoint;
  349. }
  350. public static int IsValid(this ICorDebugArrayValue instance)
  351. {
  352. int pbValid;
  353. instance.__IsValid(out pbValid);
  354. return pbValid;
  355. }
  356. public static ICorDebugValueBreakpoint CreateRelocBreakpoint(this ICorDebugArrayValue instance)
  357. {
  358. ICorDebugValueBreakpoint ppBreakpoint;
  359. instance.__CreateRelocBreakpoint(out ppBreakpoint);
  360. ProcessOutParameter(ppBreakpoint);
  361. return ppBreakpoint;
  362. }
  363. public static uint GetElementType(this ICorDebugArrayValue instance)
  364. {
  365. uint pType;
  366. instance.__GetElementType(out pType);
  367. return pType;
  368. }
  369. public static uint GetRank(this ICorDebugArrayValue instance)
  370. {
  371. uint pnRank;
  372. instance.__GetRank(out pnRank);
  373. return pnRank;
  374. }
  375. public static uint GetCount(this ICorDebugArrayValue instance)
  376. {
  377. uint pnCount;
  378. instance.__GetCount(out pnCount);
  379. return pnCount;
  380. }
  381. public static void GetDimensions(this ICorDebugArrayValue instance, uint cdim, IntPtr dims)
  382. {
  383. instance.__GetDimensions(cdim, dims);
  384. }
  385. public static int HasBaseIndicies(this ICorDebugArrayValue instance)
  386. {
  387. int pbHasBaseIndicies;
  388. instance.__HasBaseIndicies(out pbHasBaseIndicies);
  389. return pbHasBaseIndicies;
  390. }
  391. public static void GetBaseIndicies(this ICorDebugArrayValue instance, uint cdim, IntPtr indicies)
  392. {
  393. instance.__GetBaseIndicies(cdim, indicies);
  394. }
  395. public static ICorDebugValue GetElement(this ICorDebugArrayValue instance, uint cdim, IntPtr indices)
  396. {
  397. ICorDebugValue ppValue;
  398. instance.__GetElement(cdim, indices, out ppValue);
  399. ProcessOutParameter(ppValue);
  400. return ppValue;
  401. }
  402. public static ICorDebugValue GetElementAtPosition(this ICorDebugArrayValue instance, uint nPosition)
  403. {
  404. ICorDebugValue ppValue;
  405. instance.__GetElementAtPosition(nPosition, out ppValue);
  406. ProcessOutParameter(ppValue);
  407. return ppValue;
  408. }
  409. public static ICorDebugProcess GetProcess(this ICorDebugAssembly instance)
  410. {
  411. ICorDebugProcess ppProcess;
  412. instance.__GetProcess(out ppProcess);
  413. ProcessOutParameter(ppProcess);
  414. return ppProcess;
  415. }
  416. public static ICorDebugAppDomain GetAppDomain(this ICorDebugAssembly instance)
  417. {
  418. ICorDebugAppDomain ppAppDomain;
  419. instance.__GetAppDomain(out ppAppDomain);
  420. ProcessOutParameter(ppAppDomain);
  421. return ppAppDomain;
  422. }
  423. public static ICorDebugModuleEnum EnumerateModules(this ICorDebugAssembly instance)
  424. {
  425. ICorDebugModuleEnum ppModules;
  426. instance.__EnumerateModules(out ppModules);
  427. ProcessOutParameter(ppModules);
  428. return ppModules;
  429. }
  430. public static void GetCodeBase(this ICorDebugAssembly instance, uint cchName, out uint pcchName, IntPtr szName)
  431. {
  432. instance.__GetCodeBase(cchName, out pcchName, szName);
  433. }
  434. public static void GetName(this ICorDebugAssembly instance, uint cchName, out uint pcchName, IntPtr szName)
  435. {
  436. instance.__GetName(cchName, out pcchName, szName);
  437. }
  438. public static int IsFullyTrusted(this ICorDebugAssembly2 instance)
  439. {
  440. int pbFullyTrusted;
  441. instance.__IsFullyTrusted(out pbFullyTrusted);
  442. return pbFullyTrusted;
  443. }
  444. public static void Skip(this ICorDebugAssemblyEnum instance, uint celt)
  445. {
  446. instance.__Skip(celt);
  447. }
  448. public static void Reset(this ICorDebugAssemblyEnum instance)
  449. {
  450. instance.__Reset();
  451. }
  452. public static ICorDebugEnum Clone(this ICorDebugAssemblyEnum instance)
  453. {
  454. ICorDebugEnum ppEnum;
  455. instance.__Clone(out ppEnum);
  456. ProcessOutParameter(ppEnum);
  457. return ppEnum;
  458. }
  459. public static uint GetCount(this ICorDebugAssemblyEnum instance)
  460. {
  461. uint pcelt;
  462. instance.__GetCount(out pcelt);
  463. return pcelt;
  464. }
  465. public static uint Next(this ICorDebugAssemblyEnum instance, uint celt, IntPtr values)
  466. {
  467. uint pceltFetched;
  468. instance.__Next(celt, values, out pceltFetched);
  469. return pceltFetched;
  470. }
  471. public static uint GetTheType(this ICorDebugBoxValue instance)
  472. {
  473. uint pType;
  474. instance.__GetType(out pType);
  475. return pType;
  476. }
  477. public static uint GetSize(this ICorDebugBoxValue instance)
  478. {
  479. uint pSize;
  480. instance.__GetSize(out pSize);
  481. return pSize;
  482. }
  483. public static ulong GetAddress(this ICorDebugBoxValue instance)
  484. {
  485. ulong pAddress;
  486. instance.__GetAddress(out pAddress);
  487. return pAddress;
  488. }
  489. public static ICorDebugValueBreakpoint CreateBreakpoint(this ICorDebugBoxValue instance)
  490. {
  491. ICorDebugValueBreakpoint ppBreakpoint;
  492. instance.__CreateBreakpoint(out ppBreakpoint);
  493. ProcessOutParameter(ppBreakpoint);
  494. return ppBreakpoint;
  495. }
  496. public static int IsValid(this ICorDebugBoxValue instance)
  497. {
  498. int pbValid;
  499. instance.__IsValid(out pbValid);
  500. return pbValid;
  501. }
  502. public static ICorDebugValueBreakpoint CreateRelocBreakpoint(this ICorDebugBoxValue instance)
  503. {
  504. ICorDebugValueBreakpoint ppBreakpoint;
  505. instance.__CreateRelocBreakpoint(out ppBreakpoint);
  506. ProcessOutParameter(ppBreakpoint);
  507. return ppBreakpoint;
  508. }
  509. public static ICorDebugObjectValue GetObject(this ICorDebugBoxValue instance)
  510. {
  511. ICorDebugObjectValue ppObject;
  512. instance.__GetObject(out ppObject);
  513. ProcessOutParameter(ppObject);
  514. return ppObject;
  515. }
  516. public static void Activate(this ICorDebugBreakpoint instance, int bActive)
  517. {
  518. instance.__Activate(bActive);
  519. }
  520. public static int IsActive(this ICorDebugBreakpoint instance)
  521. {
  522. int pbActive;
  523. instance.__IsActive(out pbActive);
  524. return pbActive;
  525. }
  526. public static void Skip(this ICorDebugBreakpointEnum instance, uint celt)
  527. {
  528. instance.__Skip(celt);
  529. }
  530. public static void Reset(this ICorDebugBreakpointEnum instance)
  531. {
  532. instance.__Reset();
  533. }
  534. public static ICorDebugEnum Clone(this ICorDebugBreakpointEnum instance)
  535. {
  536. ICorDebugEnum ppEnum;
  537. instance.__Clone(out ppEnum);
  538. ProcessOutParameter(ppEnum);
  539. return ppEnum;
  540. }
  541. public static uint GetCount(this ICorDebugBreakpointEnum instance)
  542. {
  543. uint pcelt;
  544. instance.__GetCount(out pcelt);
  545. return pcelt;
  546. }
  547. public static uint Next(this ICorDebugBreakpointEnum instance, uint celt, IntPtr breakpoints)
  548. {
  549. uint pceltFetched;
  550. instance.__Next(celt, breakpoints, out pceltFetched);
  551. return pceltFetched;
  552. }
  553. public static ICorDebugThread GetThread(this ICorDebugChain instance)
  554. {
  555. ICorDebugThread ppThread;
  556. instance.__GetThread(out ppThread);
  557. ProcessOutParameter(ppThread);
  558. return ppThread;
  559. }
  560. public static void GetStackRange(this ICorDebugChain instance, out ulong pStart, out ulong pEnd)
  561. {
  562. instance.__GetStackRange(out pStart, out pEnd);
  563. }
  564. public static ICorDebugContext GetContext(this ICorDebugChain instance)
  565. {
  566. ICorDebugContext ppContext;
  567. instance.__GetContext(out ppContext);
  568. ProcessOutParameter(ppContext);
  569. return ppContext;
  570. }
  571. public static ICorDebugChain GetCaller(this ICorDebugChain instance)
  572. {
  573. ICorDebugChain ppChain;
  574. instance.__GetCaller(out ppChain);
  575. ProcessOutParameter(ppChain);
  576. return ppChain;
  577. }
  578. public static ICorDebugChain GetCallee(this ICorDebugChain instance)
  579. {
  580. ICorDebugChain ppChain;
  581. instance.__GetCallee(out ppChain);
  582. ProcessOutParameter(ppChain);
  583. return ppChain;
  584. }
  585. public static ICorDebugChain GetPrevious(this ICorDebugChain instance)
  586. {
  587. ICorDebugChain ppChain;
  588. instance.__GetPrevious(out ppChain);
  589. ProcessOutParameter(ppChain);
  590. return ppChain;
  591. }
  592. public static ICorDebugChain GetNext(this ICorDebugChain instance)
  593. {
  594. ICorDebugChain ppChain;
  595. instance.__GetNext(out ppChain);
  596. ProcessOutParameter(ppChain);
  597. return ppChain;
  598. }
  599. public static int IsManaged(this ICorDebugChain instance)
  600. {
  601. int pManaged;
  602. instance.__IsManaged(out pManaged);
  603. return pManaged;
  604. }
  605. public static ICorDebugFrameEnum EnumerateFrames(this ICorDebugChain instance)
  606. {
  607. ICorDebugFrameEnum ppFrames;
  608. instance.__EnumerateFrames(out ppFrames);
  609. ProcessOutParameter(ppFrames);
  610. return ppFrames;
  611. }
  612. public static ICorDebugFrame GetActiveFrame(this ICorDebugChain instance)
  613. {
  614. ICorDebugFrame ppFrame;
  615. instance.__GetActiveFrame(out ppFrame);
  616. ProcessOutParameter(ppFrame);
  617. return ppFrame;
  618. }
  619. public static ICorDebugRegisterSet GetRegisterSet(this ICorDebugChain instance)
  620. {
  621. ICorDebugRegisterSet ppRegisters;
  622. instance.__GetRegisterSet(out ppRegisters);
  623. ProcessOutParameter(ppRegisters);
  624. return ppRegisters;
  625. }
  626. public static CorDebugChainReason GetReason(this ICorDebugChain instance)
  627. {
  628. CorDebugChainReason pReason;
  629. instance.__GetReason(out pReason);
  630. ProcessOutParameter(pReason);
  631. return pReason;
  632. }
  633. public static void Skip(this ICorDebugChainEnum instance, uint celt)
  634. {
  635. instance.__Skip(celt);
  636. }
  637. public static void Reset(this ICorDebugChainEnum instance)
  638. {
  639. instance.__Reset();
  640. }
  641. public static ICorDebugEnum Clone(this ICorDebugChainEnum instance)
  642. {
  643. ICorDebugEnum ppEnum;
  644. instance.__Clone(out ppEnum);
  645. ProcessOutParameter(ppEnum);
  646. return ppEnum;
  647. }
  648. public static uint GetCount(this ICorDebugChainEnum instance)
  649. {
  650. uint pcelt;
  651. instance.__GetCount(out pcelt);
  652. return pcelt;
  653. }
  654. public static uint Next(this ICorDebugChainEnum instance, uint celt, ICorDebugChain[] chains)
  655. {
  656. uint pceltFetched;
  657. instance.__Next(celt, chains, out pceltFetched);
  658. ProcessOutParameter(chains);
  659. return pceltFetched;
  660. }
  661. public static ICorDebugModule GetModule(this ICorDebugClass instance)
  662. {
  663. ICorDebugModule pModule;
  664. instance.__GetModule(out pModule);
  665. ProcessOutParameter(pModule);
  666. return pModule;
  667. }
  668. public static uint GetToken(this ICorDebugClass instance)
  669. {
  670. uint pTypeDef;
  671. instance.__GetToken(out pTypeDef);
  672. return pTypeDef;
  673. }
  674. public static ICorDebugValue GetStaticFieldValue(this ICorDebugClass instance, uint fieldDef, ICorDebugFrame pFrame)
  675. {
  676. ICorDebugValue ppValue;
  677. instance.__GetStaticFieldValue(fieldDef, pFrame, out ppValue);
  678. ProcessOutParameter(ppValue);
  679. return ppValue;
  680. }
  681. public static ICorDebugType GetParameterizedType(this ICorDebugClass2 instance, uint elementType, uint nTypeArgs, ICorDebugType[] ppTypeArgs)
  682. {
  683. ICorDebugType ppType;
  684. instance.__GetParameterizedType(elementType, nTypeArgs, ppTypeArgs, out ppType);
  685. ProcessOutParameter(ppTypeArgs);
  686. ProcessOutParameter(ppType);
  687. return ppType;
  688. }
  689. public static void SetJMCStatus(this ICorDebugClass2 instance, int bIsJustMyCode)
  690. {
  691. instance.__SetJMCStatus(bIsJustMyCode);
  692. }
  693. public static int IsIL(this ICorDebugCode instance)
  694. {
  695. int pbIL;
  696. instance.__IsIL(out pbIL);
  697. return pbIL;
  698. }
  699. public static ICorDebugFunction GetFunction(this ICorDebugCode instance)
  700. {
  701. ICorDebugFunction ppFunction;
  702. instance.__GetFunction(out ppFunction);
  703. ProcessOutParameter(ppFunction);
  704. return ppFunction;
  705. }
  706. public static ulong GetAddress(this ICorDebugCode instance)
  707. {
  708. ulong pStart;
  709. instance.__GetAddress(out pStart);
  710. return pStart;
  711. }
  712. public static uint GetSize(this ICorDebugCode instance)
  713. {
  714. uint pcBytes;
  715. instance.__GetSize(out pcBytes);
  716. return pcBytes;
  717. }
  718. public static ICorDebugFunctionBreakpoint CreateBreakpoint(this ICorDebugCode instance, uint offset)
  719. {
  720. ICorDebugFunctionBreakpoint ppBreakpoint;
  721. instance.__CreateBreakpoint(offset, out ppBreakpoint);
  722. ProcessOutParameter(ppBreakpoint);
  723. return ppBreakpoint;
  724. }
  725. public static uint GetCode(this ICorDebugCode instance, uint startOffset, uint endOffset, uint cBufferAlloc, IntPtr buffer)
  726. {
  727. uint pcBufferSize;
  728. instance.__GetCode(startOffset, endOffset, cBufferAlloc, buffer, out pcBufferSize);
  729. return pcBufferSize;
  730. }
  731. public static uint GetVersionNumber(this ICorDebugCode instance)
  732. {
  733. uint nVersion;
  734. instance.__GetVersionNumber(out nVersion);
  735. return nVersion;
  736. }
  737. public static void GetILToNativeMapping(this ICorDebugCode instance, uint cMap, out uint pcMap, IntPtr map)
  738. {
  739. instance.__GetILToNativeMapping(cMap, out pcMap, map);
  740. }
  741. public static void GetEnCRemapSequencePoints(this ICorDebugCode instance, uint cMap, out uint pcMap, IntPtr offsets)
  742. {
  743. instance.__GetEnCRemapSequencePoints(cMap, out pcMap, offsets);
  744. }
  745. public static void Skip(this ICorDebugCodeEnum instance, uint celt)
  746. {
  747. instance.__Skip(celt);
  748. }
  749. public static void Reset(this ICorDebugCodeEnum instance)
  750. {
  751. instance.__Reset();
  752. }
  753. public static ICorDebugEnum Clone(this ICorDebugCodeEnum instance)
  754. {
  755. ICorDebugEnum ppEnum;
  756. instance.__Clone(out ppEnum);
  757. ProcessOutParameter(ppEnum);
  758. return ppEnum;
  759. }
  760. public static uint GetCount(this ICorDebugCodeEnum instance)
  761. {
  762. uint pcelt;
  763. instance.__GetCount(out pcelt);
  764. return pcelt;
  765. }
  766. public static uint Next(this ICorDebugCodeEnum instance, uint celt, IntPtr values)
  767. {
  768. uint pceltFetched;
  769. instance.__Next(celt, values, out pceltFetched);
  770. return pceltFetched;
  771. }
  772. public static uint GetTheType(this ICorDebugContext instance)
  773. {
  774. uint pType;
  775. instance.__GetType(out pType);
  776. return pType;
  777. }
  778. public static uint GetSize(this ICorDebugContext instance)
  779. {
  780. uint pSize;
  781. instance.__GetSize(out pSize);
  782. return pSize;
  783. }
  784. public static ulong GetAddress(this ICorDebugContext instance)
  785. {
  786. ulong pAddress;
  787. instance.__GetAddress(out pAddress);
  788. return pAddress;
  789. }
  790. public static ICorDebugValueBreakpoint CreateBreakpoint(this ICorDebugContext instance)
  791. {
  792. ICorDebugValueBreakpoint ppBreakpoint;
  793. instance.__CreateBreakpoint(out ppBreakpoint);
  794. ProcessOutParameter(ppBreakpoint);
  795. return ppBreakpoint;
  796. }
  797. public static ICorDebugClass GetClass(this ICorDebugContext instance)
  798. {
  799. ICorDebugClass ppClass;
  800. instance.__GetClass(out ppClass);
  801. ProcessOutParameter(ppClass);
  802. return ppClass;
  803. }
  804. public static ICorDebugValue GetFieldValue(this ICorDebugContext instance, ICorDebugClass pClass, uint fieldDef)
  805. {
  806. ICorDebugValue ppValue;
  807. instance.__GetFieldValue(pClass, fieldDef, out ppValue);
  808. ProcessOutParameter(ppValue);
  809. return ppValue;
  810. }
  811. public static ICorDebugFunction GetVirtualMethod(this ICorDebugContext instance, uint memberRef)
  812. {
  813. ICorDebugFunction ppFunction;
  814. instance.__GetVirtualMethod(memberRef, out ppFunction);
  815. ProcessOutParameter(ppFunction);
  816. return ppFunction;
  817. }
  818. public static ICorDebugContext GetContext(this ICorDebugContext instance)
  819. {
  820. ICorDebugContext ppContext;
  821. instance.__GetContext(out ppContext);
  822. ProcessOutParameter(ppContext);
  823. return ppContext;
  824. }
  825. public static int IsValueClass(this ICorDebugContext instance)
  826. {
  827. int pbIsValueClass;
  828. instance.__IsValueClass(out pbIsValueClass);
  829. return pbIsValueClass;
  830. }
  831. public static object GetManagedCopy(this ICorDebugContext instance)
  832. {
  833. object ppObject;
  834. instance.__GetManagedCopy(out ppObject);
  835. ProcessOutParameter(ppObject);
  836. return ppObject;
  837. }
  838. public static void SetFromManagedCopy(this ICorDebugContext instance, object pObject)
  839. {
  840. instance.__SetFromManagedCopy(pObject);
  841. }
  842. public static void Stop(this ICorDebugController instance, uint dwTimeoutIgnored)
  843. {
  844. instance.__Stop(dwTimeoutIgnored);
  845. }
  846. public static void Continue(this ICorDebugController instance, int fIsOutOfBand)
  847. {
  848. instance.__Continue(fIsOutOfBand);
  849. }
  850. public static int IsRunning(this ICorDebugController instance)
  851. {
  852. int pbRunning;
  853. instance.__IsRunning(out pbRunning);
  854. return pbRunning;
  855. }
  856. public static int HasQueuedCallbacks(this ICorDebugController instance, ICorDebugThread pThread)
  857. {
  858. int pbQueued;
  859. instance.__HasQueuedCallbacks(pThread, out pbQueued);
  860. return pbQueued;
  861. }
  862. public static ICorDebugThreadEnum EnumerateThreads(this ICorDebugController instance)
  863. {
  864. ICorDebugThreadEnum ppThreads;
  865. instance.__EnumerateThreads(out ppThreads);
  866. ProcessOutParameter(ppThreads);
  867. return ppThreads;
  868. }
  869. public static void SetAllThreadsDebugState(this ICorDebugController instance, CorDebugThreadState state, ICorDebugThread pExceptThisThread)
  870. {
  871. instance.__SetAllThreadsDebugState(state, pExceptThisThread);
  872. }
  873. public static void Detach(this ICorDebugController instance)
  874. {
  875. instance.__Detach();
  876. }
  877. public static void Terminate(this ICorDebugController instance, uint exitCode)
  878. {
  879. instance.__Terminate(exitCode);
  880. }
  881. public static ICorDebugErrorInfoEnum CanCommitChanges(this ICorDebugController instance, uint cSnapshots, ref ICorDebugEditAndContinueSnapshot pSnapshots)
  882. {
  883. ICorDebugErrorInfoEnum pError;
  884. instance.__CanCommitChanges(cSnapshots, ref pSnapshots, out pError);
  885. ProcessOutParameter(pSnapshots);
  886. ProcessOutParameter(pError);
  887. return pError;
  888. }
  889. public static ICorDebugErrorInfoEnum CommitChanges(this ICorDebugController instance, uint cSnapshots, ref ICorDebugEditAndContinueSnapshot pSnapshots)
  890. {
  891. ICorDebugErrorInfoEnum pError;
  892. instance.__CommitChanges(cSnapshots, ref pSnapshots, out pError);
  893. ProcessOutParameter(pSnapshots);
  894. ProcessOutParameter(pError);
  895. return pError;
  896. }
  897. public static Guid CopyMetaData(this ICorDebugEditAndContinueSnapshot instance, IStream pIStream)
  898. {
  899. Guid pMvid;
  900. instance.__CopyMetaData(pIStream, out pMvid);
  901. return pMvid;
  902. }
  903. public static Guid GetMvid(this ICorDebugEditAndContinueSnapshot instance)
  904. {
  905. Guid pMvid;
  906. instance.__GetMvid(out pMvid);
  907. return pMvid;
  908. }
  909. public static uint GetRoDataRVA(this ICorDebugEditAndContinueSnapshot instance)
  910. {
  911. uint pRoDataRVA;
  912. instance.__GetRoDataRVA(out pRoDataRVA);
  913. return pRoDataRVA;
  914. }
  915. public static uint GetRwDataRVA(this ICorDebugEditAndContinueSnapshot instance)
  916. {
  917. uint pRwDataRVA;
  918. instance.__GetRwDataRVA(out pRwDataRVA);
  919. return pRwDataRVA;
  920. }
  921. public static void SetPEBytes(this ICorDebugEditAndContinueSnapshot instance, IStream pIStream)
  922. {
  923. instance.__SetPEBytes(pIStream);
  924. }
  925. public static void SetILMap(this ICorDebugEditAndContinueSnapshot instance, uint mdFunction, uint cMapSize, ref _COR_IL_MAP map)
  926. {
  927. instance.__SetILMap(mdFunction, cMapSize, ref map);
  928. ProcessOutParameter(map);
  929. }
  930. public static void SetPESymbolBytes(this ICorDebugEditAndContinueSnapshot instance, IStream pIStream)
  931. {
  932. instance.__SetPESymbolBytes(pIStream);
  933. }
  934. public static void Skip(this ICorDebugEnum instance, uint celt)
  935. {
  936. instance.__Skip(celt);
  937. }
  938. public static void Reset(this ICorDebugEnum instance)
  939. {
  940. instance.__Reset();
  941. }
  942. public static ICorDebugEnum Clone(this ICorDebugEnum instance)
  943. {
  944. ICorDebugEnum ppEnum;
  945. instance.__Clone(out ppEnum);
  946. ProcessOutParameter(ppEnum);
  947. return ppEnum;
  948. }
  949. public static uint GetCount(this ICorDebugEnum instance)
  950. {
  951. uint pcelt;
  952. instance.__GetCount(out pcelt);
  953. return pcelt;
  954. }
  955. public static void Skip(this ICorDebugErrorInfoEnum instance, uint celt)
  956. {
  957. instance.__Skip(celt);
  958. }
  959. public static void Reset(this ICorDebugErrorInfoEnum instance)
  960. {
  961. instance.__Reset();
  962. }
  963. public static ICorDebugEnum Clone(this ICorDebugErrorInfoEnum instance)
  964. {
  965. ICorDebugEnum ppEnum;
  966. instance.__Clone(out ppEnum);
  967. ProcessOutParameter(ppEnum);
  968. return ppEnum;
  969. }
  970. public static uint GetCount(this ICorDebugErrorInfoEnum instance)
  971. {
  972. uint pcelt;
  973. instance.__GetCount(out pcelt);
  974. return pcelt;
  975. }
  976. public static uint Next(this ICorDebugErrorInfoEnum instance, uint celt, IntPtr errors)
  977. {
  978. uint pceltFetched;
  979. instance.__Next(celt, errors, out pceltFetched);
  980. return pceltFetched;
  981. }
  982. public static void CallFunction(this ICorDebugEval instance, ICorDebugFunction pFunction, uint nArgs, ICorDebugValue[] ppArgs)
  983. {
  984. instance.__CallFunction(pFunction, nArgs, ppArgs);
  985. ProcessOutParameter(ppArgs);
  986. }
  987. public static void NewObject(this ICorDebugEval instance, ICorDebugFunction pConstructor, uint nArgs, ref ICorDebugValue ppArgs)
  988. {
  989. instance.__NewObject(pConstructor, nArgs, ref ppArgs);
  990. ProcessOutParameter(ppArgs);
  991. }
  992. public static void NewObjectNoConstructor(this ICorDebugEval instance, ICorDebugClass pClass)
  993. {
  994. instance.__NewObjectNoConstructor(pClass);
  995. }
  996. public static void NewString(this ICorDebugEval instance, string @string)
  997. {
  998. instance.__NewString(@string);
  999. }
  1000. public static void NewArray(this ICorDebugEval instance, uint elementType, ICorDebugClass pElementClass, uint rank, ref uint dims, ref uint lowBounds)
  1001. {
  1002. instance.__NewArray(elementType, pElementClass, rank, ref dims, ref lowBounds);
  1003. }
  1004. public static int IsActive(this ICorDebugEval instance)
  1005. {
  1006. int pbActive;
  1007. instance.__IsActive(out pbActive);
  1008. return pbActive;
  1009. }
  1010. public static void Abort(this ICorDebugEval instance)
  1011. {
  1012. instance.__Abort();
  1013. }
  1014. public static ICorDebugValue GetResult(this ICorDebugEval instance)
  1015. {
  1016. ICorDebugValue ppResult;
  1017. instance.__GetResult(out ppResult);
  1018. ProcessOutParameter(ppResult);
  1019. return ppResult;
  1020. }
  1021. public static ICorDebugThread GetThread(this ICorDebugEval instance)
  1022. {
  1023. ICorDebugThread ppThread;
  1024. instance.__GetThread(out ppThread);
  1025. ProcessOutParameter(ppThread);
  1026. return ppThread;
  1027. }
  1028. public static ICorDebugValue CreateValue(this ICorDebugEval instance, uint elementType, ICorDebugClass pElementClass)
  1029. {
  1030. ICorDebugValue ppValue;
  1031. instance.__CreateValue(elementType, pElementClass, out ppValue);
  1032. ProcessOutParameter(ppValue);
  1033. return ppValue;
  1034. }
  1035. public static void CallParameterizedFunction(this ICorDebugEval2 instance, ICorDebugFunction pFunction, uint nTypeArgs, ICorDebugType[] ppTypeArgs, uint nArgs, ICorDebugValue[] ppArgs)
  1036. {
  1037. instance.__CallParameterizedFunction(pFunction, nTypeArgs, ppTypeArgs, nArgs, ppArgs);
  1038. ProcessOutParameter(ppTypeArgs);
  1039. ProcessOutParameter(ppArgs);
  1040. }
  1041. public static ICorDebugValue CreateValueForType(this ICorDebugEval2 instance, ICorDebugType pType)
  1042. {
  1043. ICorDebugValue ppValue;
  1044. instance.__CreateValueForType(pType, out ppValue);
  1045. ProcessOutParameter(ppValue);
  1046. return ppValue;
  1047. }
  1048. public static void NewParameterizedObject(this ICorDebugEval2 instance, ICorDebugFunction pConstructor, uint nTypeArgs, ICorDebugType[] ppTypeArgs, uint nArgs, ICorDebugValue[] ppArgs)
  1049. {
  1050. instance.__NewParameterizedObject(pConstructor, nTypeArgs, ppTypeArgs, nArgs, ppArgs);
  1051. ProcessOutParameter(ppTypeArgs);
  1052. ProcessOutParameter(ppArgs);
  1053. }
  1054. public static void NewParameterizedObjectNoConstructor(this ICorDebugEval2 instance, ICorDebugClass pClass, uint nTypeArgs, ICorDebugType[] ppTypeArgs)
  1055. {
  1056. instance.__NewParameterizedObjectNoConstructor(pClass, nTypeArgs, ppTypeArgs);
  1057. ProcessOutParameter(ppTypeArgs);
  1058. }
  1059. public static void NewParameterizedArray(this ICorDebugEval2 instance, ICorDebugType pElementType, uint rank, uint[] dims, uint[] lowBounds)
  1060. {
  1061. instance.__NewParameterizedArray(pElementType, rank, dims, lowBounds);
  1062. }
  1063. public static void NewStringWithLength(this ICorDebugEval2 instance, string @string, uint uiLength)
  1064. {
  1065. instance.__NewStringWithLength(@string, uiLength);
  1066. }
  1067. public static void RudeAbort(this ICorDebugEval2 instance)
  1068. {
  1069. instance.__RudeAbort();
  1070. }
  1071. public static ICorDebugChain GetChain(this ICorDebugFrame instance)
  1072. {
  1073. ICorDebugChain ppChain;
  1074. instance.__GetChain(out ppChain);
  1075. ProcessOutParameter(ppChain);
  1076. return ppChain;
  1077. }
  1078. public static ICorDebugCode GetCode(this ICorDebugFrame instance)
  1079. {
  1080. ICorDebugCode ppCode;
  1081. instance.__GetCode(out ppCode);
  1082. ProcessOutParameter(ppCode);
  1083. return ppCode;
  1084. }
  1085. public static ICorDebugFunction GetFunction(this ICorDebugFrame instance)
  1086. {
  1087. ICorDebugFunction ppFunction;
  1088. instance.__GetFunction(out ppFunction);
  1089. ProcessOutParameter(ppFunction);
  1090. return ppFunction;
  1091. }
  1092. public static uint GetFunctionToken(this ICorDebugFrame instance)
  1093. {
  1094. uint pToken;
  1095. instance.__GetFunctionToken(out pToken);
  1096. return pToken;
  1097. }
  1098. public static void GetStackRange(this ICorDebugFrame instance, out ulong pStart, out ulong pEnd)
  1099. {
  1100. instance.__GetStackRange(out pStart, out pEnd);
  1101. }
  1102. public static ICorDebugFrame GetCaller(this ICorDebugFrame instance)
  1103. {
  1104. ICorDebugFrame ppFrame;
  1105. instance.__GetCaller(out ppFrame);
  1106. ProcessOutParameter(ppFrame);
  1107. return ppFrame;
  1108. }
  1109. public static ICorDebugFrame GetCallee(this ICorDebugFrame instance)
  1110. {
  1111. ICorDebugFrame ppFrame;
  1112. instance.__GetCallee(out ppFrame);
  1113. ProcessOutParameter(ppFrame);
  1114. return ppFrame;
  1115. }
  1116. public static ICorDebugStepper CreateStepper(this ICorDebugFrame instance)
  1117. {
  1118. ICorDebugStepper ppStepper;
  1119. instance.__CreateStepper(out ppStepper);
  1120. ProcessOutParameter(ppStepper);
  1121. return ppStepper;
  1122. }
  1123. public static void Skip(this ICorDebugFrameEnum instance, uint celt)
  1124. {
  1125. instance.__Skip(celt);
  1126. }
  1127. public static void Reset(this ICorDebugFrameEnum instance)
  1128. {
  1129. instance.__Reset();
  1130. }
  1131. public static ICorDebugEnum Clone(this ICorDebugFrameEnum instance)
  1132. {
  1133. ICorDebugEnum ppEnum;
  1134. instance.__Clone(out ppEnum);
  1135. ProcessOutParameter(ppEnum);
  1136. return ppEnum;
  1137. }
  1138. public static uint GetCount(this ICorDebugFrameEnum instance)
  1139. {
  1140. uint pcelt;
  1141. instance.__GetCount(out pcelt);
  1142. return pcelt;
  1143. }
  1144. public static uint Next(this ICorDebugFrameEnum instance, uint celt, ICorDebugFrame[] frames)
  1145. {
  1146. uint pceltFetched;
  1147. instance.__Next(celt, frames, out pceltFetched);
  1148. ProcessOutParameter(frames);
  1149. return pceltFetched;
  1150. }
  1151. public static ICorDebugModule GetModule(this ICorDebugFunction instance)
  1152. {
  1153. ICorDebugModule ppModule;
  1154. instance.__GetModule(out ppModule);
  1155. ProcessOutParameter(ppModule);
  1156. return ppModule;
  1157. }
  1158. public static ICorDebugClass GetClass(this ICorDebugFunction instance)
  1159. {
  1160. ICorDebugClass ppClass;
  1161. instance.__GetClass(out ppClass);
  1162. ProcessOutParameter(ppClass);
  1163. return ppClass;
  1164. }
  1165. public static uint GetToken(this ICorDebugFunction instance)
  1166. {
  1167. uint pMethodDef;
  1168. instance.__GetToken(out pMethodDef);
  1169. return pMethodDef;
  1170. }
  1171. public static ICorDebugCode GetILCode(this ICorDebugFunction instance)
  1172. {
  1173. ICorDebugCode ppCode;
  1174. instance.__GetILCode(out ppCode);
  1175. ProcessOutParameter(ppCode);
  1176. return ppCode;
  1177. }
  1178. public static ICorDebugCode GetNativeCode(this ICorDebugFunction instance)
  1179. {
  1180. ICorDebugCode ppCode;
  1181. instance.__GetNativeCode(out ppCode);
  1182. ProcessOutParameter(ppCode);
  1183. return ppCode;
  1184. }
  1185. public static ICorDebugFunctionBreakpoint CreateBreakpoint(this ICorDebugFunction instance)
  1186. {
  1187. ICorDebugFunctionBreakpoint ppBreakpoint;
  1188. instance.__CreateBreakpoint(out ppBreakpoint);
  1189. ProcessOutParameter(ppBreakpoint);
  1190. return ppBreakpoint;
  1191. }
  1192. public static uint GetLocalVarSigToken(this ICorDebugFunction instance)
  1193. {
  1194. uint pmdSig;
  1195. instance.__GetLocalVarSigToken(out pmdSig);
  1196. return pmdSig;
  1197. }
  1198. public static uint GetCurrentVersionNumber(this ICorDebugFunction instance)
  1199. {
  1200. uint pnCurrentVersion;
  1201. instance.__GetCurrentVersionNumber(out pnCurrentVersion);
  1202. return pnCurrentVersion;
  1203. }
  1204. public static void SetJMCStatus(this ICorDebugFunction2 instance, int bIsJustMyCode)
  1205. {
  1206. instance.__SetJMCStatus(bIsJustMyCode);
  1207. }
  1208. public static int GetJMCStatus(this ICorDebugFunction2 instance)
  1209. {
  1210. int pbIsJustMyCode;
  1211. instance.__GetJMCStatus(out pbIsJustMyCode);
  1212. return pbIsJustMyCode;
  1213. }
  1214. public static ICorDebugCodeEnum EnumerateNativeCode(this ICorDebugFunction2 instance)
  1215. {
  1216. ICorDebugCodeEnum ppCodeEnum;
  1217. instance.__EnumerateNativeCode(out ppCodeEnum);
  1218. ProcessOutParameter(ppCodeEnum);
  1219. return ppCodeEnum;
  1220. }
  1221. public static uint GetVersionNumber(this ICorDebugFunction2 instance)
  1222. {
  1223. uint pnVersion;
  1224. instance.__GetVersionNumber(out pnVersion);
  1225. return pnVersion;
  1226. }
  1227. public static void Activate(this ICorDebugFunctionBreakpoint instance, int bActive)
  1228. {
  1229. instance.__Activate(bActive);
  1230. }
  1231. public static int IsActive(this ICorDebugFunctionBreakpoint instance)
  1232. {
  1233. int pbActive;
  1234. instance.__IsActive(out pbActive);
  1235. return pbActive;
  1236. }
  1237. public static ICorDebugFunction GetFunction(this ICorDebugFunctionBreakpoint instance)
  1238. {
  1239. ICorDebugFunction ppFunction;
  1240. instance.__GetFunction(out ppFunction);
  1241. ProcessOutParameter(ppFunction);
  1242. return ppFunction;
  1243. }
  1244. public static uint GetOffset(this ICorDebugFunctionBreakpoint instance)
  1245. {
  1246. uint pnOffset;
  1247. instance.__GetOffset(out pnOffset);
  1248. return pnOffset;
  1249. }
  1250. public static uint GetTheType(this ICorDebugGenericValue instance)
  1251. {
  1252. uint pType;
  1253. instance.__GetType(out pType);
  1254. return pType;
  1255. }
  1256. public static uint GetSize(this ICorDebugGenericValue instance)
  1257. {
  1258. uint pSize;
  1259. instance.__GetSize(out pSize);
  1260. return pSize;
  1261. }
  1262. public static ulong GetAddress(this ICorDebugGenericValue instance)
  1263. {
  1264. ulong pAddress;
  1265. instance.__GetAddress(out pAddress);
  1266. return pAddress;
  1267. }
  1268. public static ICorDebugValueBreakpoint CreateBreakpoint(this ICorDebugGenericValue instance)
  1269. {
  1270. ICorDebugValueBreakpoint ppBreakpoint;
  1271. instance.__CreateBreakpoint(out ppBreakpoint);
  1272. ProcessOutParameter(ppBreakpoint);
  1273. return ppBreakpoint;
  1274. }
  1275. public static void GetValue(this ICorDebugGenericValue instance, IntPtr pTo)
  1276. {
  1277. instance.__GetValue(pTo);
  1278. }
  1279. public static void SetValue(this ICorDebugGenericValue instance, IntPtr pFrom)
  1280. {
  1281. instance.__SetValue(pFrom);
  1282. }
  1283. public static uint GetTheType(this ICorDebugHandleValue instance)
  1284. {
  1285. uint pType;
  1286. instance.__GetType(out pType);
  1287. return pType;
  1288. }
  1289. public static uint GetSize(this ICorDebugHandleValue instance)
  1290. {
  1291. uint pSize;
  1292. instance.__GetSize(out pSize);
  1293. return pSize;
  1294. }
  1295. public static ulong GetAddress(this ICorDebugHandleValue instance)
  1296. {
  1297. ulong pAddress;
  1298. instance.__GetAddress(out pAddress);
  1299. return pAddress;
  1300. }
  1301. public static ICorDebugValueBreakpoint CreateBreakpoint(this ICorDebugHandleValue instance)
  1302. {
  1303. ICorDebugValueBreakpoint ppBreakpoint;
  1304. instance.__CreateBreakpoint(out ppBreakpoint);
  1305. ProcessOutParameter(ppBreakpoint);
  1306. return ppBreakpoint;
  1307. }
  1308. public static int IsNull(this ICorDebugHandleValue instance)
  1309. {
  1310. int pbNull;
  1311. instance.__IsNull(out pbNull);
  1312. return pbNull;
  1313. }
  1314. public static ulong GetValue(this ICorDebugHandleValue instance)
  1315. {
  1316. ulong pValue;
  1317. instance.__GetValue(out pValue);
  1318. return pValue;
  1319. }
  1320. public static void SetValue(this ICorDebugHandleValue instance, ulong value)
  1321. {
  1322. instance.__SetValue(value);
  1323. }
  1324. public static ICorDebugValue Dereference(this ICorDebugHandleValue instance)
  1325. {
  1326. ICorDebugValue ppValue;
  1327. instance.__Dereference(out ppValue);
  1328. ProcessOutParameter(ppValue);
  1329. return ppValue;
  1330. }
  1331. public static ICorDebugValue DereferenceStrong(this ICorDebugHandleValue instance)
  1332. {
  1333. ICorDebugValue ppValue;
  1334. instance.__DereferenceStrong(out ppValue);
  1335. ProcessOutParameter(ppValue);
  1336. return ppValue;
  1337. }
  1338. public static CorDebugHandleType GetHandleType(this ICorDebugHandleValue instance)
  1339. {
  1340. CorDebugHandleType pType;
  1341. instance.__GetHandleType(out pType);
  1342. ProcessOutParameter(pType);
  1343. return pType;
  1344. }
  1345. public static void Dispose(this ICorDebugHandleValue instance)
  1346. {
  1347. instance.__Dispose();
  1348. }
  1349. public static uint GetTheType(this ICorDebugHeapValue instance)
  1350. {
  1351. uint pType;
  1352. instance.__GetType(out pType);
  1353. return pType;
  1354. }
  1355. public static uint GetSize(this ICorDebugHeapValue instance)
  1356. {
  1357. uint pSize;
  1358. instance.__GetSize(out pSize);
  1359. return pSize;
  1360. }
  1361. public static ulong GetAddress(this ICorDebugHeapValue instance)
  1362. {
  1363. ulong pAddress;
  1364. instance.__GetAddress(out pAddress);
  1365. return pAddress;
  1366. }
  1367. public static ICorDebugValueBreakpoint CreateBreakpoint(this ICorDebugHeapValue instance)
  1368. {
  1369. ICorDebugValueBreakpoint ppBreakpoint;
  1370. instance.__CreateBreakpoint(out ppBreakpoint);
  1371. ProcessOutParameter(ppBreakpoint);
  1372. return ppBreakpoint;
  1373. }
  1374. public static int IsValid(this ICorDebugHeapValue instance)
  1375. {
  1376. int pbValid;
  1377. instance.__IsValid(out pbValid);
  1378. return pbValid;
  1379. }
  1380. public static ICorDebugValueBreakpoint CreateRelocBreakpoint(this ICorDebugHeapValue instance)
  1381. {
  1382. ICorDebugValueBreakpoint ppBreakpoint;
  1383. instance.__CreateRelocBreakpoint(out ppBreakpoint);
  1384. ProcessOutParameter(ppBreakpoint);
  1385. return ppBreakpoint;
  1386. }
  1387. public static ICorDebugHandleValue CreateHandle(this ICorDebugHeapValue2 instance, CorDebugHandleType type)
  1388. {
  1389. ICorDebugHandleValue ppHandle;
  1390. instance.__CreateHandle(type, out ppHandle);
  1391. ProcessOutParameter(ppHandle);
  1392. return ppHandle;
  1393. }
  1394. public static ICorDebugChain GetChain(this ICorDebugILFrame instance)
  1395. {
  1396. ICorDebugChain ppChain;
  1397. instance.__GetChain(out ppChain);
  1398. ProcessOutParameter(ppChain);
  1399. return ppChain;
  1400. }
  1401. public static ICorDebugCode GetCode(this ICorDebugILFrame instance)
  1402. {
  1403. ICorDebugCode ppCode;
  1404. instance.__GetCode(out ppCode);
  1405. ProcessOutParameter(ppCode);
  1406. return ppCode;
  1407. }
  1408. public static ICorDebugFunction GetFunction(this ICorDebugILFrame instance)
  1409. {
  1410. ICorDebugFunction ppFunction;
  1411. instance.__GetFunction(out ppFunction);
  1412. ProcessOutParameter(ppFunction);
  1413. return ppFunction;
  1414. }
  1415. public static uint GetFunctionToken(this ICorDebugILFrame instance)
  1416. {
  1417. uint pToken;
  1418. instance.__GetFunctionToken(out pToken);
  1419. return pToken;
  1420. }
  1421. public static void GetStackRange(this ICorDebugILFrame instance, out ulong pStart, out ulong pEnd)
  1422. {
  1423. instance.__GetStackRange(out pStart, out pEnd);
  1424. }
  1425. public static ICorDebugFrame GetCaller(this ICorDebugILFrame instance)
  1426. {
  1427. ICorDebugFrame ppFrame;
  1428. instance.__GetCaller(out ppFrame);
  1429. ProcessOutParameter(ppFrame);
  1430. return ppFrame;
  1431. }
  1432. public static ICorDebugFrame GetCallee(this ICorDebugILFrame instance)
  1433. {
  1434. ICorDebugFrame ppFrame;
  1435. instance.__GetCallee(out ppFrame);
  1436. ProcessOutParameter(ppFrame);
  1437. return ppFrame;
  1438. }
  1439. public static ICorDebugStepper CreateStepper(this ICorDebugILFrame instance)
  1440. {
  1441. ICorDebugStepper ppStepper;
  1442. instance.__CreateStepper(out ppStepper);
  1443. ProcessOutParameter(ppStepper);
  1444. return ppStepper;
  1445. }
  1446. public static void GetIP(this ICorDebugILFrame instance, out uint pnOffset, out CorDebugMappingResult pMappingResult)
  1447. {
  1448. instance.__GetIP(out pnOffset, out pMappingResult);
  1449. ProcessOutParameter(pMappingResult);
  1450. }
  1451. public static void SetIP(this ICorDebugILFrame instance, uint nOffset)
  1452. {
  1453. instance.__SetIP(nOffset);
  1454. }
  1455. public static ICorDebugValueEnum EnumerateLocalVariables(this ICorDebugILFrame instance)
  1456. {
  1457. ICorDebugValueEnum ppValueEnum;
  1458. instance.__EnumerateLocalVariables(out ppValueEnum);
  1459. ProcessOutParameter(ppValueEnum);
  1460. return ppValueEnum;
  1461. }
  1462. public static ICorDebugValue GetLocalVariable(this ICorDebugILFrame instance, uint dwIndex)
  1463. {
  1464. ICorDebugValue ppValue;
  1465. instance.__GetLocalVariable(dwIndex, out ppValue);
  1466. ProcessOutParameter(ppValue);
  1467. return ppValue;
  1468. }
  1469. public static ICorDebugValueEnum EnumerateArguments(this ICorDebugILFrame instance)
  1470. {
  1471. ICorDebugValueEnum ppValueEnum;
  1472. instance.__EnumerateArguments(out ppValueEnum);
  1473. ProcessOutParameter(ppValueEnum);
  1474. return ppValueEnum;
  1475. }
  1476. public static ICorDebugValue GetArgument(this ICorDebugILFrame instance, uint dwIndex)
  1477. {
  1478. ICorDebugValue ppValue;
  1479. instance.__GetArgument(dwIndex, out ppValue);
  1480. ProcessOutParameter(ppValue);
  1481. return ppValue;
  1482. }
  1483. public static uint GetStackDepth(this ICorDebugILFrame instance)
  1484. {
  1485. uint pDepth;
  1486. instance.__GetStackDepth(out pDepth);
  1487. return pDepth;
  1488. }
  1489. public static ICorDebugValue GetStackValue(this ICorDebugILFrame instance, uint dwIndex)
  1490. {
  1491. ICorDebugValue ppValue;
  1492. instance.__GetStackValue(dwIndex, out ppValue);
  1493. ProcessOutParameter(ppValue);
  1494. return ppValue;
  1495. }
  1496. public static void CanSetIP(this ICorDebugILFrame instance, uint nOffset)
  1497. {
  1498. instance.__CanSetIP(nOffset);
  1499. }
  1500. public static void RemapFunction(this ICorDebugILFrame2 instance, uint newILOffset)
  1501. {
  1502. instance.__RemapFunction(newILOffset);
  1503. }
  1504. public static ICorDebugTypeEnum EnumerateTypeParameters(this ICorDebugILFrame2 instance)
  1505. {
  1506. ICorDebugTypeEnum ppTyParEnum;
  1507. instance.__EnumerateTypeParameters(out ppTyParEnum);
  1508. ProcessOutParameter(ppTyParEnum);
  1509. return ppTyParEnum;
  1510. }
  1511. public static ICorDebugChain GetChain(this ICorDebugInternalFrame instance)
  1512. {
  1513. ICorDebugChain ppChain;
  1514. instance.__GetChain(out ppChain);
  1515. ProcessOutParameter(ppChain);
  1516. return ppChain;
  1517. }
  1518. public static ICorDebugCode GetCode(this ICorDebugInternalFrame instance)
  1519. {
  1520. ICorDebugCode ppCode;
  1521. instance.__GetCode(out ppCode);
  1522. ProcessOutParameter(ppCode);
  1523. return ppCode;
  1524. }
  1525. public static ICorDebugFunction GetFunction(this ICorDebugInternalFrame instance)
  1526. {
  1527. ICorDebugFunction ppFunction;
  1528. instance.__GetFunction(out ppFunction);
  1529. ProcessOutParameter(ppFunction);
  1530. return ppFunction;
  1531. }
  1532. public static uint GetFunctionToken(this ICorDebugInternalFrame instance)
  1533. {
  1534. uint pToken;
  1535. instance.__GetFunctionToken(out pToken);
  1536. return pToken;
  1537. }
  1538. public static void GetStackRange(this ICorDebugInternalFrame instance, out ulong pStart, out ulong pEnd)
  1539. {
  1540. instance.__GetStackRange(out pStart, out pEnd);
  1541. }
  1542. public static ICorDebugFrame GetCaller(this ICorDebugInternalFrame instance)
  1543. {
  1544. ICorDebugFrame ppFrame;
  1545. instance.__GetCaller(out ppFrame);
  1546. ProcessOutParameter(ppFrame);
  1547. return ppFrame;
  1548. }
  1549. public static ICorDebugFrame GetCallee(this ICorDebugInternalFrame instance)
  1550. {
  1551. ICorDebugFrame ppFrame;
  1552. instance.__GetCallee(out ppFrame);
  1553. ProcessOutParameter(ppFrame);
  1554. return ppFrame;
  1555. }
  1556. public static ICorDebugStepper CreateStepper(this ICorDebugInternalFrame instance)
  1557. {
  1558. ICorDebugStepper ppStepper;
  1559. instance.__CreateStepper(out ppStepper);
  1560. ProcessOutParameter(ppStepper);
  1561. return ppStepper;
  1562. }
  1563. public static CorDebugInternalFrameType GetFrameType(this ICorDebugInternalFrame instance)
  1564. {
  1565. CorDebugInternalFrameType pType;
  1566. instance.__GetFrameType(out pType);
  1567. ProcessOutParameter(pType);
  1568. return pType;
  1569. }
  1570. public static void GetName(this ICorDebugMDA instance, uint cchName, out uint pcchName, IntPtr szName)
  1571. {
  1572. instance.__GetName(cchName, out pcchName, szName);
  1573. }
  1574. public static void GetDescription(this ICorDebugMDA instance, uint cchName, out uint pcchName, IntPtr szName)
  1575. {
  1576. instance.__GetDescription(cchName, out pcchName, szName);
  1577. }
  1578. public static void GetXML(this ICorDebugMDA instance, uint cchName, out uint pcchName, IntPtr szName)
  1579. {
  1580. instance.__GetXML(cchName, out pcchName, szName);
  1581. }
  1582. public static void GetFlags(this ICorDebugMDA instance, ref CorDebugMDAFlags pFlags)
  1583. {
  1584. instance.__GetFlags(ref pFlags);
  1585. ProcessOutParameter(pFlags);
  1586. }
  1587. public static uint GetOSThreadId(this ICorDebugMDA instance)
  1588. {
  1589. uint pOsTid;
  1590. instance.__GetOSThreadId(out pOsTid);
  1591. return pOsTid;
  1592. }
  1593. public static void Breakpoint(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr pThread, IntPtr pBreakpoint)
  1594. {
  1595. instance.Breakpoint(pAppDomain, pThread, pBreakpoint);
  1596. }
  1597. public static void StepComplete(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr pThread, IntPtr pStepper, CorDebugStepReason reason)
  1598. {
  1599. instance.StepComplete(pAppDomain, pThread, pStepper, reason);
  1600. }
  1601. public static void Break(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr thread)
  1602. {
  1603. instance.Break(pAppDomain, thread);
  1604. }
  1605. public static void Exception(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr pThread, int unhandled)
  1606. {
  1607. instance.Exception(pAppDomain, pThread, unhandled);
  1608. }
  1609. public static void EvalComplete(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr pThread, IntPtr pEval)
  1610. {
  1611. instance.EvalComplete(pAppDomain, pThread, pEval);
  1612. }
  1613. public static void EvalException(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr pThread, IntPtr pEval)
  1614. {
  1615. instance.EvalException(pAppDomain, pThread, pEval);
  1616. }
  1617. public static void CreateProcess(this ICorDebugManagedCallback instance, IntPtr pProcess)
  1618. {
  1619. instance.CreateProcess(pProcess);
  1620. }
  1621. public static void ExitProcess(this ICorDebugManagedCallback instance, IntPtr pProcess)
  1622. {
  1623. instance.ExitProcess(pProcess);
  1624. }
  1625. public static void CreateThread(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr thread)
  1626. {
  1627. instance.CreateThread(pAppDomain, thread);
  1628. }
  1629. public static void ExitThread(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr thread)
  1630. {
  1631. instance.ExitThread(pAppDomain, thread);
  1632. }
  1633. public static void LoadModule(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr pModule)
  1634. {
  1635. instance.LoadModule(pAppDomain, pModule);
  1636. }
  1637. public static void UnloadModule(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr pModule)
  1638. {
  1639. instance.UnloadModule(pAppDomain, pModule);
  1640. }
  1641. public static void LoadClass(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr c)
  1642. {
  1643. instance.LoadClass(pAppDomain, c);
  1644. }
  1645. public static void UnloadClass(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr c)
  1646. {
  1647. instance.UnloadClass(pAppDomain, c);
  1648. }
  1649. public static void DebuggerError(this ICorDebugManagedCallback instance, IntPtr pProcess, int errorHR, uint errorCode)
  1650. {
  1651. instance.DebuggerError(pProcess, errorHR, errorCode);
  1652. }
  1653. public static void LogMessage(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr pThread, int lLevel, IntPtr pLogSwitchName, IntPtr pMessage)
  1654. {
  1655. instance.LogMessage(pAppDomain, pThread, lLevel, pLogSwitchName, pMessage);
  1656. }
  1657. public static void LogSwitch(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr pThread, int lLevel, uint ulReason, IntPtr pLogSwitchName, IntPtr pParentName)
  1658. {
  1659. instance.LogSwitch(pAppDomain, pThread, lLevel, ulReason, pLogSwitchName, pParentName);
  1660. }
  1661. public static void CreateAppDomain(this ICorDebugManagedCallback instance, IntPtr pProcess, IntPtr pAppDomain)
  1662. {
  1663. instance.CreateAppDomain(pProcess, pAppDomain);
  1664. }
  1665. public static void ExitAppDomain(this ICorDebugManagedCallback instance, IntPtr pProcess, IntPtr pAppDomain)
  1666. {
  1667. instance.ExitAppDomain(pProcess, pAppDomain);
  1668. }
  1669. public static void LoadAssembly(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr pAssembly)
  1670. {
  1671. instance.LoadAssembly(pAppDomain, pAssembly);
  1672. }
  1673. public static void UnloadAssembly(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr pAssembly)
  1674. {
  1675. instance.UnloadAssembly(pAppDomain, pAssembly);
  1676. }
  1677. public static void ControlCTrap(this ICorDebugManagedCallback instance, IntPtr pProcess)
  1678. {
  1679. instance.ControlCTrap(pProcess);
  1680. }
  1681. public static void NameChange(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr pThread)
  1682. {
  1683. instance.NameChange(pAppDomain, pThread);
  1684. }
  1685. public static void UpdateModuleSymbols(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr pModule, IntPtr pSymbolStream)
  1686. {
  1687. instance.UpdateModuleSymbols(pAppDomain, pModule, pSymbolStream);
  1688. }
  1689. public static void EditAndContinueRemap(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr pThread, IntPtr pFunction, int fAccurate)
  1690. {
  1691. instance.EditAndContinueRemap(pAppDomain, pThread, pFunction, fAccurate);
  1692. }
  1693. public static void BreakpointSetError(this ICorDebugManagedCallback instance, IntPtr pAppDomain, IntPtr pThread, IntPtr pBreakpoint, uint dwError)
  1694. {
  1695. instance.BreakpointSetError(pAppDomain, pThread, pBreakpoint, dwError);
  1696. }
  1697. public static void FunctionRemapOpportunity(this ICorDebugManagedCallback2 instance, IntPtr pAppDomain, IntPtr pThread, IntPtr pOldFunction, IntPtr pNewFunction, uint oldILOffset)
  1698. {
  1699. instance.FunctionRemapOpportunity(pAppDomain, pThread, pOldFunction, pNewFunction, oldILOffset);
  1700. }
  1701. public static void CreateConnection(this ICorDebugManagedCallback2 instance, IntPtr pProcess, uint dwConnectionId, IntPtr pConnName)
  1702. {
  1703. instance.CreateConnection(pProcess, dwConnectionId, pConnName);
  1704. }
  1705. public static void ChangeConnection(this ICorDebugManagedCallback2 instance, IntPtr pProcess, uint dwConnectionId)
  1706. {
  1707. instance.ChangeConnection(pProcess, dwConnectionId);
  1708. }
  1709. public static void DestroyConnection(this ICorDebugManagedCallback2 instance, IntPtr pProcess, uint dwConnectionId)
  1710. {
  1711. instance.DestroyConnection(pProcess, dwConnectionId);
  1712. }
  1713. public static void Exception(this ICorDebugManagedCallback2 instance, IntPtr pAppDomain, IntPtr pThread, IntPtr pFrame, uint nOffset, CorDebugExceptionCallbackType dwEventType, uint dwFlags)
  1714. {
  1715. instance.Exception(pAppDomain, pThread, pFrame, nOffset, dwEventType, dwFlags);
  1716. }
  1717. public static void ExceptionUnwind(this ICorDebugManagedCallback2 instance, IntPtr pAppDomain, IntPtr pThread, CorDebugExceptionUnwindCallbackType dwEventType, uint dwFlags)
  1718. {
  1719. instance.ExceptionUnwind(pAppDomain, pThread, dwEventType, dwFlags);
  1720. }
  1721. public static void FunctionRemapComplete(this ICorDebugManagedCallback2 instance, IntPtr pAppDomain, IntPtr pThread, IntPtr pFunction)
  1722. {
  1723. instance.FunctionRemapComplete(pAppDomain, pThread, pFunction);
  1724. }
  1725. public static void MDANotification(this ICorDebugManagedCallback2 instance, IntPtr pController, IntPtr pThread, IntPtr pMDA)
  1726. {
  1727. instance.MDANotification(pController, pThread, pMDA);
  1728. }
  1729. public static ICorDebugProcess GetProcess(this ICorDebugModule instance)
  1730. {
  1731. ICorDebugProcess ppProcess;
  1732. instance.__GetProcess(out ppProcess);
  1733. ProcessOutParameter(ppProcess);
  1734. return ppProcess;
  1735. }
  1736. public static ulong GetBaseAddress(this ICorDebugModule instance)
  1737. {
  1738. ulong pAddress;
  1739. instance.__GetBaseAddress(out pAddress);
  1740. return pAddress;
  1741. }
  1742. public static ICorDebugAssembly GetAssembly(this ICorDebugModule instance)
  1743. {
  1744. ICorDebugAssembly ppAssembly;
  1745. instance.__GetAssembly(out ppAssembly);
  1746. ProcessOutParameter(ppAssembly);
  1747. return ppAssembly;
  1748. }
  1749. public static void GetName(this ICorDebugModule instance, uint cchName, out uint pcchName, IntPtr szName)
  1750. {
  1751. instance.__GetName(cchName, out pcchName, szName);
  1752. }
  1753. public static void EnableJITDebugging(this ICorDebugModule instance, int bTrackJITInfo, int bAllowJitOpts)
  1754. {
  1755. instance.__EnableJITDebugging(bTrackJITInfo, bAllowJitOpts);
  1756. }
  1757. public static void EnableClassLoadCallbacks(this ICorDebugModule instance, int bClassLoadCallbacks)
  1758. {
  1759. instance.__EnableClassLoadCallbacks(bClassLoadCallbacks);
  1760. }
  1761. public static ICorDebugFunction GetFunctionFromToken(this ICorDebugModule instance, uint methodDef)
  1762. {
  1763. ICorDebugFunction ppFunction;
  1764. instance.__GetFunctionFromToken(methodDef, out ppFunction);
  1765. ProcessOutParameter(ppFunction);
  1766. return ppFunction;
  1767. }
  1768. public static ICorDebugFunction GetFunctionFromRVA(this ICorDebugModule instance, ulong rva)
  1769. {
  1770. ICorDebugFunction ppFunction;
  1771. instance.__GetFunctionFromRVA(rva, out ppFunction);
  1772. ProcessOutParameter(ppFunction);
  1773. return ppFunction;
  1774. }
  1775. public static ICorDebugClass GetClassFromToken(this ICorDebugModule instance, uint typeDef)
  1776. {
  1777. ICorDebugClass ppClass;
  1778. instance.__GetClassFromToken(typeDef, out ppClass);
  1779. ProcessOutParameter(ppClass);
  1780. return ppClass;
  1781. }
  1782. public static ICorDebugModuleBreakpoint CreateBreakpoint(this ICorDebugModule instance)
  1783. {
  1784. ICorDebugModuleBreakpoint ppBreakpoint;
  1785. instance.__CreateBreakpoint(out ppBreakpoint);
  1786. ProcessOutParameter(ppBreakpoint);
  1787. return ppBreakpoint;
  1788. }
  1789. public static ICorDebugEditAndContinueSnapshot GetEditAndContinueSnapshot(this ICorDebugModule instance)
  1790. {
  1791. ICorDebugEditAndContinueSnapshot ppEditAndContinueSnapshot;
  1792. instance.__GetEditAndContinueSnapshot(out ppEditAndContinueSnapshot);
  1793. ProcessOutParameter(ppEditAndContinueSnapshot);
  1794. return ppEditAndContinueSnapshot;
  1795. }
  1796. public static object GetMetaDataInterface(this ICorDebugModule instance, ref Guid riid)
  1797. {
  1798. object ppObj;
  1799. instance.__GetMetaDataInterface(ref riid, out ppObj);
  1800. ProcessOutParameter(ppObj);
  1801. return ppObj;
  1802. }
  1803. public static uint GetToken(this ICorDebugModule instance)
  1804. {
  1805. uint pToken;
  1806. instance.__GetToken(out pToken);
  1807. return pToken;
  1808. }
  1809. public static int IsDynamic(this ICorDebugModule instance)
  1810. {
  1811. int pDynamic;
  1812. instance.__IsDynamic(out pDynamic);
  1813. return pDynamic;
  1814. }
  1815. public static ICorDebugValue GetGlobalVariableValue(this ICorDebugModule instance, uint fieldDef)
  1816. {
  1817. ICorDebugValue ppValue;
  1818. instance.__GetGlobalVariableValue(fieldDef, out ppValue);
  1819. ProcessOutParameter(ppValue);
  1820. return ppValue;
  1821. }
  1822. public static uint GetSize(this ICorDebugModule instance)
  1823. {
  1824. uint pcBytes;
  1825. instance.__GetSize(out pcBytes);
  1826. return pcBytes;
  1827. }
  1828. public static int IsInMemory(this ICorDebugModule instance)
  1829. {
  1830. int pInMemory;
  1831. instance.__IsInMemory(out pInMemory);
  1832. return pInMemory;
  1833. }
  1834. public static void SetJMCStatus(this ICorDebugModule2 instance, int bIsJustMyCode, uint cTokens, ref uint pTokens)
  1835. {
  1836. instance.__SetJMCStatus(bIsJustMyCode, cTokens, ref pTokens);
  1837. }
  1838. public static void ApplyChanges(this ICorDebugModule2 instance, uint cbMetadata, byte[] pbMetadata, uint cbIL, byte[] pbIL)
  1839. {
  1840. instance.__ApplyChanges(cbMetadata, pbMetadata, cbIL, pbIL);
  1841. ProcessOutParameter(pbMetadata);
  1842. ProcessOutParameter(pbIL);
  1843. }
  1844. public static void SetJITCompilerFlags(this ICorDebugModule2 instance, uint dwFlags)
  1845. {
  1846. instance.__SetJITCompilerFlags(dwFlags);
  1847. }
  1848. public static uint GetJITCompilerFlags(this ICorDebugModule2 instance)
  1849. {
  1850. uint pdwFlags;
  1851. instance.__GetJITCompilerFlags(out pdwFlags);
  1852. return pdwFlags;
  1853. }
  1854. public static void ResolveAssembly(this ICorDebugModule2 instance, uint tkAssemblyRef, ref ICorDebugAssembly ppAssembly)
  1855. {
  1856. instance.__ResolveAssembly(tkAssemblyRef, ref ppAssembly);
  1857. ProcessOutParameter(ppAssembly);
  1858. }
  1859. public static object CreateReaderForInMemorySymbols(this ICorDebugModule3 instance, ref Guid riid)
  1860. {
  1861. object ppObj;
  1862. instance.__CreateReaderForInMemorySymbols(ref riid, out ppObj);
  1863. ProcessOutParameter(ppObj);
  1864. return ppObj;
  1865. }
  1866. public static void Activate(this ICorDebugModuleBreakpoint instance, int bActive)
  1867. {
  1868. instance.__Activate(bActive);
  1869. }
  1870. public static int IsActive(this ICorDebugModuleBreakpoint instance)
  1871. {
  1872. int pbActive;
  1873. instance.__IsActive(out pbActive);
  1874. return pbActive;
  1875. }
  1876. public static ICorDebugModule GetModule(this ICorDebugModuleBreakpoint instance)
  1877. {
  1878. ICorDebugModule ppModule;
  1879. instance.__GetModule(out ppModule);
  1880. ProcessOutParameter(ppModule);
  1881. return ppModule;
  1882. }
  1883. public static void Skip(this ICorDebugModuleEnum instance, uint celt)
  1884. {
  1885. instance.__Skip(celt);
  1886. }
  1887. public static void Reset(this ICorDebugModuleEnum instance)
  1888. {
  1889. instance.__Reset();
  1890. }
  1891. public static ICorDebugEnum Clone(this ICorDebugModuleEnum instance)
  1892. {
  1893. ICorDebugEnum ppEnum;
  1894. instance.__Clone(out ppEnum);
  1895. ProcessOutParameter(ppEnum);
  1896. return ppEnum;
  1897. }
  1898. public static uint GetCount(this ICorDebugModuleEnum instance)
  1899. {
  1900. uint pcelt;
  1901. instance.__GetCount(out pcelt);
  1902. return pcelt;
  1903. }
  1904. public static uint Next(this ICorDebugModuleEnum instance, uint celt, IntPtr modules)
  1905. {
  1906. uint pceltFetched;
  1907. instance.__Next(celt, modules, out pceltFetched);
  1908. return pceltFetched;
  1909. }
  1910. public static ICorDebugChain GetChain(this ICorDebugNativeFrame instance)
  1911. {
  1912. ICorDebugChain ppChain;
  1913. instance.__GetChain(out ppChain);
  1914. ProcessOutParameter(ppChain);
  1915. return ppChain;
  1916. }
  1917. public static ICorDebugCode GetCode(this ICorDebugNativeFrame instance)
  1918. {
  1919. ICorDebugCode ppCode;