473,322 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

How to run a process from memory

I am looking for a way to run a process form memory, without having any executable. The application will be kept inside a resource and will be extracted during run time. It should be then started as a new process. I couldn't find a solution that works also on x64
Mar 8 '13 #1
5 2187
weaknessforcats
9,208 Expert Mod 8TB
Are you using Windows?

If so, read Windows via C/C++ by Jeffrey Richter. There's a whole chapter on creating and managing processes.
Mar 8 '13 #2
I am using Windows, and Visual c++ 2010.
I don't understand your response. If there was a simple answer I wouldn't have published this question. It is very difficult to run a process from memory.
Mar 8 '13 #3
weaknessforcats
9,208 Expert Mod 8TB
Not true. Research CreateProcess.
Mar 8 '13 #4
I did. However, if you could submit a code sample, that would be great. Just store a "hello world" executable as a "BINARY" resource and have the application extract the resource into memory, and launch a new process with the "hello world" application, without creating any physical file
Mar 8 '13 #5
weaknessforcats
9,208 Expert Mod 8TB
Sounds like a great problem. Just Google "CreateProcess" and copy their example.
Mar 8 '13 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ronen | last post by:
Hi All, I am running a client against a web application installed on a remote server written in C# which involve infragistics for GUI . The .NET framework I use is from version 1.1.4322 and we...
5
by: Shuaib | last post by:
I wonder if anybody could shed some light on a problem I am encountering. I have written a program in C that runs on Solaris 2.8. At busy times of the day there may be multiple instances of it...
4
by: GRABLER Georg | last post by:
Hello everyone. A not too long time ago, i wrote a Post about "Reading process memory". Now, i got a good answer, about using the "marshal" class. I read over the class quickly, but i could...
1
by: Cy Huckaba | last post by:
We are running our company website on a win2k server running .NET framework 1.0 and IIS 5. The pages consist of mostly static content built from a combination of custom controls (dll is only 148k...
1
by: Ashish | last post by:
hi all we have tested out web site for performance and we observed that the asp.net process does disposes memory ( as opposed to my earlier observation ), i was just curious if the asp.net...
2
by: anguish | last post by:
I'm using ReadProcessMemory from kernel32.dll to read specific bytes from the process memory of a program. While the solution I have now (which updates the memory content at regular intervals)...
1
by: Pablo Bianco SE | last post by:
Hi everyone, I am new in this group. I have a question and would like to have some support. A customer is experiencing memory problems with the asp.net worker process. The have an application...
1
by: =?Utf-8?B?UmFzaGVlZA==?= | last post by:
We have distributed application built upon .NET 2.0. The business components are exposed as Web Services. Some of the Business Components involves in heavy processing and occupies more RAM. It...
0
by: desperateinc | last post by:
I figured out how to read and write to the process memory and want to learn more about it. How do I create my own chunk of memory to do stuff with? I don't need 5MB of memory. Just enough to create...
2
PRANEET ARORA
by: PRANEET ARORA | last post by:
I know that WinAPI has built-in hacking functions. How i could protect my application from process memory editing, deny DLL injecting and other hacking ways.
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.