| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | DETECTING A PROCESS |
-=> Quoting Edward Fuller to Phil Crown <=-
EF> I read your message and looked for a routine in the library reference
EF> for my compiler. I didn't find anything that would give you any
EF> information directly. However, there are two routines that you might
EF> investigate. The first is getpid which returns the pid for the process
Thanks, I'll have a look.
EF> that you are investigating. The second routine is system which issues a
EF> command to the system. You could invoke the command "pstat >
EF> [filename]" where filename receives the data from pstat. Knowing the
EF> name for the process you could search the file for the existence of the
EF> process name. There may be a more clever method of getting the
EF> information you want but I don't know that method. The above should
EF> work but it's the long way. I have version 1.5 of Borland's C++ for
EF> OS/2.
That'll work until I find something else. Someone mentioned DosQProcStatus,
which is an undocumented API. I have enough trouble with the documented
API's... and I want to keep using bcc2.exe, which won't thunk, and I think
DosQProcStatus is an old 16bit API.
Phil
Fido: 1:124/8014.1 | Internet: phil.crown{at}bluecafe.com
___ Blue Wave/OS2 v2.30
--- WILDMAIL!/WC v4.12
* Origin: The Blues Cafe (214) 638-1186 8 Nodes (1:124/8014.0)SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 124/8014 8001 1 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.