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 9232233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:15:55+00:00 2026-06-18T06:15:55+00:00

My program currrent has the line Status := DllRegisterServer; which fails on a machine

  • 0

My program currrent has the line

Status := DllRegisterServer;

which fails on a machine that is WIN7 and the user is not administrator.

Is it possible to programatically call DllRegisterServer with elevated rights?

Or is there some way I can prompt for the elevated rights then use that info to perform the DllRegisterServer.

  • 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-18T06:15:56+00:00Added an answer on June 18, 2026 at 6:15 am

    Elevation can only be performed at the time of process creation. So you need a new process to execute this code. Your main options:

    1. Call ShellExecute passing the verb runas and an exe file. This will elevate the new process.
    2. Add the requireAdministrator manifest to an executable and run that.
    3. Use an out-of-proc COM server and initiate it elevated.

    Of these options, number 1 is likely to be simpler for you. You don’t need a separate executable for option 1. You can pass command line arguments that will result in the call to the registration function.

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

Sidebar

Related Questions

Clarification: My previous Android development environment has been a Win7 machine using command-line build
I have a task killer program that has a listbox of current running processes.
I'm writing an application which has two classes that provide basically the same functionality
I wrote the following pre-commit script for SVN to validate that a user has
I'm trying to program a line of Ruby code that calculates the probable success
I'm making a program in wxWidgets that has similar functionality to, say, MS Paint,
I'm writing a Java program that has a working drag and drop GUI for
Possible Duplicate: Extracting the current executable name I created a program that reads configuration
On my program I have a function that checks for the current version of
Using my c++ program how can I find out what group the current user

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.