Process.MainWindowTitle & Win Service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rajesh Abraham

    #1

    Process.MainWindowTitle & Win Service

    In the code below, I am getting the title as null for all
    the process when the function (BisLayer) is called from a
    windows service. However the same function when called
    from a windows from gives the proper result. I tried to
    run the service as localSystem and as administartor but
    both gives the same result.

    Process[] myProcesses = Process.GetProc esses();
    foreach(Process myProcess in myProcesses)
    {title = myProcess.MainW indowTitle;}

    Thanks,

    Rajesh Abraham

  • Horatiu Ripa

    #2
    Re: Process.MainWin dowTitle & Win Service

    Read carefully
    ms-help://MS.NETFramework SDKv1.1/cpguidenf/html/cpconIntroducti onToNTService
    Applications.ht m
    and you'll find why

    --
    Horatiu Ripa
    "Rajesh Abraham" <chacko97@hotma il.com> wrote in message
    news:034d01c38b da$5f95a580$a00 1280a@phx.gbl.. .[color=blue]
    > In the code below, I am getting the title as null for all
    > the process when the function (BisLayer) is called from a
    > windows service. However the same function when called
    > from a windows from gives the proper result. I tried to
    > run the service as localSystem and as administartor but
    > both gives the same result.
    >
    > Process[] myProcesses = Process.GetProc esses();
    > foreach(Process myProcess in myProcesses)
    > {title = myProcess.MainW indowTitle;}
    >
    > Thanks,
    >
    > Rajesh Abraham
    >[/color]


    Comment

    • Rajesh Abraham

      #3
      Re: Process.MainWin dowTitle &amp; Win Service

      Hi Ripa,

      Thanks for the response. Can you suggest me some articles
      or preferable a good book that can get me started with
      progrramaticall y accessing "Window Stations" and Desktops.
      I have only C# experience and no C++.

      Thanks,

      Rajesh ABraham Chacko

      [color=blue]
      >-----Original Message-----
      >Read carefully
      >ms-[/color]
      help://MS.NETFramework SDKv1.1/cpguidenf/html/cpconIntroduct
      ionToNTService[color=blue]
      >Applications.h tm
      >and you'll find why
      >
      >--
      >Horatiu Ripa
      >"Rajesh Abraham" <chacko97@hotma il.com> wrote in message
      >news:034d01c38 bda$5f95a580$a0 01280a@phx.gbl. ..[color=green]
      >> In the code below, I am getting the title as null for[/color][/color]
      all[color=blue][color=green]
      >> the process when the function (BisLayer) is called from[/color][/color]
      a[color=blue][color=green]
      >> windows service. However the same function when called
      >> from a windows from gives the proper result. I tried to
      >> run the service as localSystem and as administartor but
      >> both gives the same result.
      >>
      >> Process[] myProcesses = Process.GetProc esses();
      >> foreach(Process myProcess in myProcesses)
      >> {title = myProcess.MainW indowTitle;}
      >>
      >> Thanks,
      >>
      >> Rajesh Abraham
      >>[/color]
      >
      >
      >.
      >[/color]

      Comment

      Working...