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. Managed C++/CLI
  4. services in Windows Server 2003 OS

services in Windows Server 2003 OS

Scheduled Pinned Locked Moved Managed C++/CLI
c++sysadminwindows-adminjsonhelp
4 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.
  • T Offline
    T Offline
    Thomas_Mathews
    wrote on last edited by
    #1

    Hi friends, There is problem in accessing mapped drives or remote machine from my vc++ service in Windows Server 2003 OS for example when I execute my program as services it fails but I am not facing any problem if I execute it as standalone program. I am having admin privilege. Below is the few of API I tried (where is S: is mapped drive in same domain) API: CreateFile and GetFileAttributes("S:\hello.txt") Thanks, Thomas

    S 1 Reply Last reply
    0
    • T Thomas_Mathews

      Hi friends, There is problem in accessing mapped drives or remote machine from my vc++ service in Windows Server 2003 OS for example when I execute my program as services it fails but I am not facing any problem if I execute it as standalone program. I am having admin privilege. Below is the few of API I tried (where is S: is mapped drive in same domain) API: CreateFile and GetFileAttributes("S:\hello.txt") Thanks, Thomas

      S Offline
      S Offline
      Sheng Jiang
      wrote on last edited by
      #2

      By default, access to the root directory from a service user is denied. It is suggested to use a standalone proxy program to perform such operations. My blogs: http://blog.joycode.com/jiangsheng http://blog.csdn.net/jiangsheng http://bloglines.com/public/jiangsheng Command what is yours Conquer what is not ---Kane

      T 1 Reply Last reply
      0
      • S Sheng Jiang

        By default, access to the root directory from a service user is denied. It is suggested to use a standalone proxy program to perform such operations. My blogs: http://blog.joycode.com/jiangsheng http://blog.csdn.net/jiangsheng http://bloglines.com/public/jiangsheng Command what is yours Conquer what is not ---Kane

        T Offline
        T Offline
        Thomas_Mathews
        wrote on last edited by
        #3

        is there any way to use it as service instead of standalone

        T 1 Reply Last reply
        0
        • T Thomas_Mathews

          is there any way to use it as service instead of standalone

          T Offline
          T Offline
          Thomas_Mathews
          wrote on last edited by
          #4

          I tried with Admin user, local System account and tried direct path also like "\\server\public_data\hello.txt" but no use. It has problem when running as a service in win2003k and as standalone no problem. do anyone know how to give more permissions to services in win2003k os?

          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