Solved

how to create a windows service which can return values?

Posted on 2004-09-10
5
355 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This is about my first experience with programming Arduino.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now