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

  • Home
  • SEARCH
  • 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 8504793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:08:06+00:00 2026-06-11T02:08:06+00:00

I need some help regarding a security problem in updating some Windows software for

  • 0

I need some help regarding a security problem in updating some Windows software for communicating with a non-storage SCSI device.

The original software was written for Windows XP as a DLL, and talked with the device via Adaptec’s ASPI API. ASPI didn’t really have any security, so any application run by any user could use my DLL to talk to one of these devices, and everything worked great.

I’m now updating the software to work with Windows 7 using Microsoft’s modern SPTI (SCSI Pass-Through Interface) API. Things work fine with SPTI under XP, but Windows 7 has much tighter security, and for normal users or even administrators, SPTI calls return an error indicating insufficient permissions. If I log in using the hidden “Administrator” account, my software runs fine with SPTI, but that’s not an acceptable deployment option.

Here are some alternatives I’ve looked into so far, in order of decreasing level of having to rewrite existing code:

  • Spinning off a thread and escalating its privileges to be pretend to be “Administrator” so it can talk with SPTI. [I haven’t been able to get this to work using LogonUser()/ImpersonateLoggedOnUser()/LoadUserProfile(); the call to LoadUserProfile() fails, and SPTI calls fail as well with an insufficient permissions error.]
  • Writing a Windows Service that has adequate permissions to talk with SPTI, and then having my DLL talk with that service.
  • Userspace (UMDF) driver. It would be an expensive rewrite, and it’s not clear to me whether UMDF supports accessing SCSI devices.
  • Kernel (KMDF) driver. Should work, but would be a longer, more expensive rewrite.

I hope the community here can help with some wisdom/experience/ideas that will let my code talk to this SCSI device under Windows 7, ideally without having to rewrite too much.

  • 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-06-11T02:08:08+00:00Added an answer on June 11, 2026 at 2:08 am

    I’m tendering this as an answer because it is bit too long to be a comment.

    I presume you have tried setting the manifest of the application so that it requires elevation when it runs? It is important to note that you have to elevate a process, AFAIK you cannot elevate a thread.

    Your suggestion of running it as a service and then communicating to that (a named pipe or WCF are viable options) is a good one. If you run it as Local System then your service will be more privileged than a local Administrator.

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

Sidebar

Related Questions

I need some help regarding algorithm for randomness. So Problem is. There are 50
I need some help regarding the extraction of eventlog data under Windows 7. What
I need some help regarding RSS feeds. I need all the RSS feeds data
I need some help regarding the arrays in Perl This is the constructor I
I need your help in JAVA (with some sample code if possible) regarding to
Need some help with this problem in implementing with XSLT, I had already implemented
I am a newbie in NSIS. I need some help regarding the MUI Components
I need some help regarding Visual Studio solution and project organization. I have a
I need some help here, I have two questions regarding Qt's style sheet customization
I am a bit new to Perl and I need some help regarding moving

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.