@@ -28,7 +28,7 @@ public override bool Initialize(IPluginHost host)
2828 {
2929 Contract . Requires ( host != null ) ;
3030
31- System . Diagnostics . Debugger . Launch ( ) ;
31+ // System.Diagnostics.Debugger.Launch();
3232
3333 if ( MemoryPipePluginExt . host != null )
3434 {
@@ -97,7 +97,7 @@ private static IEnumerable<string> GetPipes()
9797 /// ]]></remarks>
9898 /// <param name="process">The process to check.</param>
9999 /// <returns>True if the process is valid, false if not.</returns>
100- [ DllExport ( CallingConvention = CallingConvention . Cdecl ) ]
100+ [ DllExport ( CallingConvention = CallingConvention . StdCall ) ]
101101 public static bool IsProcessValid ( IntPtr process )
102102 {
103103 lock ( sync )
@@ -131,7 +131,7 @@ public static bool IsProcessValid(IntPtr process)
131131 /// <param name="pid">The process id.</param>
132132 /// <param name="desiredAccess">The desired access. (ignored)</param>
133133 /// <returns>A plugin internal handle to the process.</returns>
134- [ DllExport ( CallingConvention = CallingConvention . Cdecl ) ]
134+ [ DllExport ( CallingConvention = CallingConvention . StdCall ) ]
135135 private static IntPtr OpenRemoteProcess ( int pid , int desiredAccess )
136136 {
137137 lock ( sync )
@@ -195,7 +195,7 @@ private static IntPtr OpenRemoteProcess(int pid, int desiredAccess)
195195 /// <- StatusMessage
196196 /// ]]></remarks>
197197 /// <param name="process">The process to close.</param>
198- [ DllExport ( CallingConvention = CallingConvention . Cdecl ) ]
198+ [ DllExport ( CallingConvention = CallingConvention . StdCall ) ]
199199 private static void CloseRemoteProcess ( IntPtr process )
200200 {
201201 lock ( sync )
@@ -232,7 +232,7 @@ private static void CloseRemoteProcess(IntPtr process)
232232 /// <param name="buffer">The buffer to read into.</param>
233233 /// <param name="size">The size of the memory to read.</param>
234234 /// <returns>True if it succeeds, false if it fails.</returns>
235- [ DllExport ( CallingConvention = CallingConvention . Cdecl ) ]
235+ [ DllExport ( CallingConvention = CallingConvention . StdCall ) ]
236236 private static bool ReadRemoteMemory ( IntPtr process , IntPtr address , IntPtr buffer , int size )
237237 {
238238 lock ( sync )
@@ -281,7 +281,7 @@ private static bool ReadRemoteMemory(IntPtr process, IntPtr address, IntPtr buff
281281 /// <param name="buffer">The memory to write.</param>
282282 /// <param name="size">The size of the memory to write.</param>
283283 /// <returns>True if it succeeds, false if it fails.</returns>
284- [ DllExport ( CallingConvention = CallingConvention . Cdecl ) ]
284+ [ DllExport ( CallingConvention = CallingConvention . StdCall ) ]
285285 private static bool WriteRemoteMemory ( IntPtr process , IntPtr address , IntPtr buffer , int size )
286286 {
287287 lock ( sync )
@@ -310,7 +310,7 @@ private static bool WriteRemoteMemory(IntPtr process, IntPtr address, IntPtr buf
310310
311311 /// <summary>Enumerates all pipes started by the ReClass.NET PipeServer.</summary>
312312 /// <param name="callbackProcess">The callback which gets called for every process.</param>
313- [ DllExport ( CallingConvention = CallingConvention . Cdecl ) ]
313+ [ DllExport ( CallingConvention = CallingConvention . StdCall ) ]
314314 private static void EnumerateProcesses ( EnumerateProcessCallback callbackProcess )
315315 {
316316 if ( callbackProcess == null )
@@ -345,7 +345,7 @@ private static void EnumerateProcesses(EnumerateProcessCallback callbackProcess)
345345 /// <param name="process">The process.</param>
346346 /// <param name="callbackSection">The callback which gets called for every section.</param>
347347 /// <param name="callbackModule">The callback which gets called for every module.</param>
348- [ DllExport ( CallingConvention = CallingConvention . Cdecl ) ]
348+ [ DllExport ( CallingConvention = CallingConvention . StdCall ) ]
349349 private static void EnumerateRemoteSectionsAndModules ( IntPtr process , EnumerateRemoteSectionCallback callbackSection , EnumerateRemoteModuleCallback callbackModule )
350350 {
351351 if ( callbackSection == null && callbackModule == null )
0 commit comments