Pause / Resume a process in Windows 95/98

Hi to all!!
I need to suspend and resume a program under Win98 (I'm using an emulator).
I have search many and many, but if under NT or more recent OS it's really simple, under Win 95/8 it's (at least for me ) a mssion impossible.
Any help please?

Dan
What do you mean by "suspend"?

You can have a prompt that forces you to press enter to continue. This essentially pauses the program. You could try using the function that Duoas described in http://www.cplusplus.com/forum/articles/7312/ (I suggest reading "The Standard Way" part).
The article was written for users who couldn't keep the console window open after program termination, but it works just as well in any other situation.

But if you want a more proper suspension, I think this link might be helpful to read: https://stackoverflow.com/questions/11010165/how-to-suspend-resume-a-process-in-windows
[quote]But if you want a more proper suspension, I think this link might be helpful to read: https://stackoverflow.com/questions/11010165/how-to-suspend-resume-a-process-in-windows[quote]
Thanks!
Here is exactelly what I need, but I have a very big problem:
the source use:
HANDLE hThread = OpenThread(THREAD_ALL_ACCESS, FALSE,
threadEntry.th32ThreadID);
OpenThread is NOT available in Win 95/98, so I don't know how may I obtain an handle at the thread )I only get a Tid...)

Sorry, I don't know then.

This link talks about Thread handles and Thread IDs
https://support.microsoft.com/is-is/help/127992/thread-handles-and-thread-ids
On Windows 95, Windows 98, and Windows NT, there is no way to obtain the thread handle from the thread ID. On these operating systems, a thread handle can be shared with another process by using the DuplicateHandle() function.

But not sure if that's helpful.
closed account (E0p9LyTq)
_beginthread, _beginthreadex MIGHT be what you are looking for.
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/beginthread-beginthreadex

You might be able to use the Boost library's thread functions.
https://www.boost.org/doc/libs/1_67_0/doc/html/thread.html
Thanks for the answer, BTW I understand I was not enough clear....
what I really need is write a program like pssuspend by Sysinternals, only that have to work under Win95/98... (Sysinternal utility does not work in these OS)
Hi, sorry for curiosity, if not secret what do you do with W95/98?
3 way:
1) remember me "when I was younger, so much younger then today" ;-) ((°J°))
2) it's a releasing the same purpose with less resorces (the program BTW will work on ALL windows versions)
3) very good emulators are available...

Bye :-)
Ok, I see. I'm 19, I usually satisfy if code works on Windows XP. Bye:)
Topic archived. No new replies allowed.