Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6577919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:42:07+00:00 2026-05-25T15:42:07+00:00

Background: I have a windows service that works in the background (obviously), and uses

  • 0

Background: I have a windows service that works in the background (obviously), and uses
a utility program to perform a certain interactive task and send back the data
to the service over a named pipe. The utility program runs whenever the service
sees fit, and lives only for a few seconds.

The problem begins in Vista where the program could not freely open the named pipe
for write access anymore (see Windows Service Hardening).

I plan to solve the problem by creating the named pipe with security attributes
such that grant write-access to the currently logged-in user under whos context
the program is started, while a question rose to my mind:
Could I allow access to that named pipe to only the process using its (or its thread’s)
handle?

Or to put differently: Can windows’ (Vista/7/later) security mechanism go down to
process-level granularity?

I’m a novice in that area and the docs about security are giving me quite a headache, so any enlightenment is welcome.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:42:08+00:00Added an answer on May 25, 2026 at 3:42 pm

    You can’t secure an object via process id (because processes are not security principals), but you can use GetNamedPipeClientProcessId after the connection is established, and fail all requests if the process id is not one you like.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background I have a Windows service that uses various third-party DLLs to perform work
I have a java program that is running in the background(Windows). I would like
Some background: I have a windows service with 5 web references, Everything works great
Some background: we have a windows application (c#) that locate in the system try.
Background info: I have a windows application (in c#) that handles a custom file
I have a Windows process that runs in the background and periodically backs up
I have a windows service that fails to start under some circumstances. When it
I have a .NET 3.5 Windows Service. I'm testing with a small application that
I have developed a C# Windows Forms application that runs in the background as
Problem I have an MSI that creates and starts a Windows service during installation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.