Results 1 to 3 of 3

Thread: Passing data to a Windows service?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Houston, TX
    Posts
    342

    Passing data to a Windows service?

    Is it possible to pass data to a Windows service?

    For example, I want to create a service that run an event at a specified interval, however I want to be able to externally control that interval. Can I write another Windows application that will communicate directly with the service?

    Thanks!!

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    hmm..good question..You actually should be able to. If you have a Shared/Static class, you should be able to instantiate the class of the running service. But I am just guessing , but that sounds possible.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    Member
    Join Date
    Aug 2002
    Location
    Netherlands
    Posts
    39

    Exclamation maybe this is a solution

    I don't know exactly what you mean, but if you are talking about a function instead of an instance, you could put your code in a public shared function which can be called witihin your app from anywhere...

    To pass data itself you could try making a seperate class and dim it with ByRef.

    Dozo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width