?
Solved

Execute Program From Memory VB6

Posted on 2005-03-28
2
Medium Priority
?
396 Views
Last Modified: 2012-06-27
Hello, I was wondering, is it possible to execute an application that you manually loaded to memory using VB6?  Or do I have to use a lower level language to achieve this?

Like have a byte array and fill it with the contents of notepad.exe

Then execute that section of memory without using a temporary file?

If I need to use ASM for this could someone point me to a good ASM tutuorial that would allow me to achieve this?

Thanks
-Mark
0
Comment
Question by:MMKD
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 17

Accepted Solution

by:
zzzzzooc earned 750 total points
ID: 13647059
This can be done in C/C++ so possibly also VB. I do not know of any examples, though.

Here are some resources for it:
http://win32assembly.online.fr/tutorials.html (view the PE Tutorials)
http://upx.sourceforge.net/#download (I believe UPX uses a PE loader and it should have the source for it if it does)
http://experts-exchange.com/Q_21277907.html (spent a couple hours trying to reproduce it.. should provide a good reference for VB)

Also, there are articles on Microsoft about the PE format and how they're loaded.
0
 

Author Comment

by:MMKD
ID: 13647230
Thanks exactly what I was looking for
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month9 days, 19 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question