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. Visual Basic
  4. setting "Allow service to interact with the desktop" property through coding in windows service [modified]

setting "Allow service to interact with the desktop" property through coding in windows service [modified]

Scheduled Pinned Locked Moved Visual Basic
questioncsharpalgorithms
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.
  • K Offline
    K Offline
    Kapil Thakur
    wrote on last edited by
    #1

    i have a windows service in vb.net. i want to set the property "Allow service to interact with the desktop" through code, instead of doing it manually everytime the service is installed. how can i do that? i have done enough searching on google but haven't found anything relative. -- modified at 2:12 Monday 17th July, 2006

    D 1 Reply Last reply
    0
    • K Kapil Thakur

      i have a windows service in vb.net. i want to set the property "Allow service to interact with the desktop" through code, instead of doing it manually everytime the service is installed. how can i do that? i have done enough searching on google but haven't found anything relative. -- modified at 2:12 Monday 17th July, 2006

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You can use WMI and the System.Management namespace to change this. The .NET ServiceInstaller class doesn't support changing this, yet at least. Handle your ServiceInstaller class' Committed event where you can use WMI's Win32_BaseService class to change the DesktopInteract property of the service after it's installed. Dave Kreskowiak Microsoft MVP - Visual Basic

      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