Re: How to limit the number of instances of an application on a server?
- From: "Karsten Schulz" <kahnpost@xxxxxxxxxx>
- Date: Mon, 9 Jun 2008 15:19:16 +0200
Hi Phil,
the internal processlist dont crrelates with users,they enumerate all
running Processes on the mashine.
U can easy count the name of ur modulename, by comparisation the
processlistnames.
Te name of your Application u can find out on different ways:
char
Fname[MAX_PATH];GetModuleFileName(NULL,Fname,sizeof(Fname)/sizeof(Fname[0]));
or
LPCSTR pAppName=AfxGetApp()->m_pszAppName
try it in a console app.
greetings
Karsten Schulz
"Phil" <pbruyant@xxxxxxxxx> schrieb im Newsbeitrag
news:c988a1a7-1a25-46c3-839c-11d664814130@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 9 juin, 13:56, "Karsten Schulz" <kahnp...@xxxxxxxxxx> wrote:
Hi Phil,
u can enumerate al running Processes easy,
greetings and Best Regards
Karsten Schulz
--www.kahnsoft.de
Thanks
Can this code find instances of the application when run by the other
users ?
-P
.
- Follow-Ups:
- References:
- Prev by Date: Re: IE load incorrect dll in ActiveX package
- Next by Date: Re: How to limit the number of instances of an application on a server?
- Previous by thread: Re: How to limit the number of instances of an application on a server?
- Next by thread: Re: How to limit the number of instances of an application on a server?
- Index(es):
Relevant Pages
|