Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. creating services in C#.NET

creating services in C#.NET

Scheduled Pinned Locked Moved C#
csharpsysadmindatabasedesignwindows-admin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sujay chakraborty
    wrote on last edited by
    #1

    Hello all, I am trying to develop an application which will record user login information in a database at the time any user logs into the system that is connected in a network (basically a LAN network, the information will be stored at the server).... his details like user name and login time will be fetched from registry details i suppose..... but i am not able to figure out a way of getting those events and locations in the registry using C#.net....... i believe i need to create a service application for this(as there won't be any interaction with the end-user) but i am quite new to these kinds of technologies........ For the past couple of days i have been searching on net for some articles related to design services and fetching such values in .net. but haven't got any simple documentation !!!! Please help me with this in understanding the concept step by step as this is quite an urgency for me....... your help is heighly awaited Thanks Sujay

    L 1 Reply Last reply
    0
    • S Sujay chakraborty

      Hello all, I am trying to develop an application which will record user login information in a database at the time any user logs into the system that is connected in a network (basically a LAN network, the information will be stored at the server).... his details like user name and login time will be fetched from registry details i suppose..... but i am not able to figure out a way of getting those events and locations in the registry using C#.net....... i believe i need to create a service application for this(as there won't be any interaction with the end-user) but i am quite new to these kinds of technologies........ For the past couple of days i have been searching on net for some articles related to design services and fetching such values in .net. but haven't got any simple documentation !!!! Please help me with this in understanding the concept step by step as this is quite an urgency for me....... your help is heighly awaited Thanks Sujay

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      To create a service, just use the wizard of Visual Studio. For example, you are creating MyService.exe. After compiling, you can install it using "installutil MyService.exe". Then you can start/stop/restart it in service window. To uninstall it using "installutil /u MyService.exe". To get user information, use : Environment.UserName

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups