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. Server/Service Enumeration in C#

Server/Service Enumeration in C#

Scheduled Pinned Locked Moved C#
questioncsharpsysadminalgorithmssecurity
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.
  • W Offline
    W Offline
    Wolfram Steinke
    wrote on last edited by
    #1

    I have a simple question with no doubt a complex answer. What I am trying to achieve is to check LAN for machines (mostly Workstations but could be windows xxxx Servers among them and find which ones are running a particular Service. Is there a relatively easy way of doing this? What sort of security measures could get in the way? The service I'll be searching for will does export a remoting interface. Any pointers would be greatly appreciated.

    Happy programming!!

    Mircea PuiuM 1 Reply Last reply
    0
    • W Wolfram Steinke

      I have a simple question with no doubt a complex answer. What I am trying to achieve is to check LAN for machines (mostly Workstations but could be windows xxxx Servers among them and find which ones are running a particular Service. Is there a relatively easy way of doing this? What sort of security measures could get in the way? The service I'll be searching for will does export a remoting interface. Any pointers would be greatly appreciated.

      Happy programming!!

      Mircea PuiuM Offline
      Mircea PuiuM Offline
      Mircea Puiu
      wrote on last edited by
      #2

      One way could be using [DllImport("MPR.dll")] public static extern UInt32 WNetEnumResource(IntPtr hEnum, ref Int32 lpcCount, IntPtr lpBuffer, ref UInt32 lpBufferSize); Some code example[^]

      SkyWalker

      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