Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

how to create a windows service which can return values?

Posted on 2004-09-10
5
358 Views
Last Modified: 2011-10-03
how to create a windows service which can return values? or how we can call a module or function from a windows service?
0
Comment
Question by:ajay_3480
  • 2
  • 2
5 Comments
 

Author Comment

by:ajay_3480
ID: 12024806
thanx in advance
0
 
LVL 1

Expert Comment

by:davee_jay
ID: 12026696
ajay_3480 - this is an incredibly broad question, please be more specific both about the environment (o/s), the programming platform (Visual Studio, .Net etc), the language (C#, VB, VB.Net) and finally give us an idea of the application you are thinking of.

DJ
0
 

Author Comment

by:ajay_3480
ID: 12041452
i am trying to make a web application in asp.net and vb.net, for intranet use, I have successfully prepared the application for security reasons I have have added some registration keys into the system (WiNDOWS 2000), now, I wand is to have a windows service to return those values from the file located in the windows system directory, how is it possible?
0
 
LVL 1

Accepted Solution

by:
davee_jay earned 125 total points
ID: 12041775
Thanks for the extra info.

I'm not sure that a windows service is what you need.  Typically a windows service is a process which has no direct user interface, and needs to run outside of any particular logon (although a user context can be given to a service to allow that service to run with certain permissions, locale settings etc.)

You may be aware that using impersonation it is possible to get the ASP.Net process or even just a single page to impersonate a different set of permissions to normal ASP.Net see:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconaspnetimpersonation.asp

Thoughts?

DJ
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an explanation of a simple data model to help parse a JSON feed
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question