Click here to Skip to main content
15,896,207 members
Articles / Programming Languages / Visual Basic

Easy Detection of Memory Leaks

Rate me:
Please Sign up or sign in to vote.
4.73/5 (25 votes)
4 Aug 20058 min read 186.8K   8.6K   122  
Describes a tool for easy detection of memory leaks.
#ifndef __CodeInjectorAPI_h__included__9CECDE9D_5970_4271_B9F1_9951FD7715D9
#define __CodeInjectorAPI_h__included__9CECDE9D_5970_4271_B9F1_9951FD7715D9

//////////////////////////////////////////////////////////
// Code Injector
//
// Used to inject and execute code in running processes
//
// migo (2005)
//////////////////////////////////////////////////////////

#ifdef CODEINJECTOR_EXPORTS
#define CODEINJECTOR_API extern "C" __declspec(dllexport)
#else
#define CODEINJECTOR_API extern "C" __declspec(dllimport)
#endif


// Synchronic: waits until the operation is finished
CODEINJECTOR_API BOOL ExecuteInRemoteProcess( DWORD dwPID, LPCTSTR strLibrary, LPCTSTR strFunction );

// A-synchronic: launches the code on remote process, and returns
CODEINJECTOR_API BOOL LaunchInRemoteProcess( DWORD dwPID, LPCTSTR strLibrary, LPCTSTR strFunction );


#endif  // include once

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Israel Israel
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions