[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 749
  • Last Modified:

ShellExecute and SendMessage from ActiveX DLL in ASP as Administrator

Hello everyone,

My problem: I have made a DLL in VB that starts an application, gets its handle and uses SendMessage

to send commands to the application. The problem is that when i use the component from ASP, it runs

the application as the IUSR or the IWAM (when logged in using NTLM) user account. What i need is to run my component from ASP as the Administrator so the application starts up properly and accepts messages. Any ideas? Perhaps i should use DCOM (no experience)? Can i register the component programmatically when DCOM should be needed?

Thanks in advance,
Jacob
0
Nd
Asked:
Nd
1 Solution
 
SVirCommented:
Use COM+ to solve this issue.

you can create an application in component services which uses this dll. then you can change the identity of the user for this application. It should only take you 5 min.

Details on creating a com+ application on
http://webdevelopment.developersnetwork.com/Articles.asp?Article=57
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/iis/deploy/depovg/compl.asp
0
 
lavinderCommented:
Hi

 If you have control of webserver and the administrator allows you to have administrator privileges for the component to run, then Svir has given the solution. Otherwise, i think you will need to use WSH for this purpose. If you can explain what your component is doing in problem's context, perhaps, i can try to give better answer.

hp!!
0
 
NdAuthor Commented:
Thank you so far! I'll give it a try when i can get back to fixing the problem.. i'll post later to tell whether i've fixed it, otherwise i'll explain in a little more detail what i'm trying to accomplish.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
NdAuthor Commented:
Thanks everyone for all of your advice, but this doesn't quite accomplish what i had in mind.. what i wanted to achieve was similar to the code you'll find in the following article:
http://support.microsoft.com/default.aspx?scid=KB;en-us;q248187

thanks again, J
0
 
apolloisCommented:
Hi Nd,

Since you solved the problem yourself, you can close this question and obtain a refund of your points by posting a zero-point question with Community Support (http://www.experts-exchange.com/Community_Support/).  Include a link to this question and your request.

Good luck on your project.

Best Regards,
>apollois<
0
 
BanathCommented:
A request has been made to refund and/or delete this question; if there are no objections within 72 hours, the request will be granted.

EXPERTS: Please leave your thoughts on the disposition of this question here.

Nd- Thanks for providing your solution.

Banath
EE Moderator
0
 
BanathCommented:
Per request - refunding points & PAQing.

Nd- Thanks for sharing your solution.

Banath
EE Moderator
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now