Click here to Skip to main content
15,888,254 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I Created COM exe Server, When i run client using authenticated user then server run properly, but when i run client run on normal user another instance of server get created, i want same instance(the previous one) of server has to serve the next client..
what changes i have to made in server code.??
Posted
Comments
Sergey Alexandrovich Kryukov 18-Nov-14 9:21am    
How can we know what is your current code? I looks like you did not really created a server, or created in-proc server/component.
—SA
Member 9899644 18-Nov-14 13:50pm    
I Literally Created exe server component(out-of-proc server), when I run number of client From same user then single instance of exe component is created which serves to client, but while doing this I run client which request for same exe server component from another user of same machine then new instance of exe component is created, but I want same instance has to shared among them.
Sergey Alexandrovich Kryukov 18-Nov-14 14:21pm    
All right then, but... not enough information. Something is screwed up. How can we know what?..
—SA
Member 9899644 19-Nov-14 23:16pm    
I have exe server component, if client run under privilege command prompt then component server receives "-Embedding" parameter and register class object in running object table(ROT) and serve to first client, while doing this i run second client under same privilege same server component serves to client, but if i run another client under normal command prompt then new instance of server is created. why this?

1 solution

That's a conceptual change. You created an Outproc COM server and that runs per user, but you need a Windows Service. The Windows Service runs independently from any logged-in user (typically with Local Systems account), and your client program can communicate with it via some remoting technology (e.g. WCF, SOAP, etc); it may even reside on a different machine and serve multiple users on multiple computers.
 
Share this answer
 
Comments
Member 9899644 19-Nov-14 23:07pm    
Thank you sir, But I run client on same user, change is only one client run under privilege(Administrator permission) command prompt and second client under normal command prompt then also two server instance is created.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900