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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:19:45+00:00 2026-05-24T22:19:45+00:00

I have an application which runs on windows 2003, window 2008 and windows small

  • 0

I have an application which runs on windows 2003, window 2008 and windows small business server.

There is a windows call that I make to reboot the system.All the calls mentioned below come from advapi32.dll

InitiateSystemshutdown – This is fine in windows 2003 and windows 2008 but for some reason not working in Windows aurora

InitiateShutdown – since the above call is not working in windows aurora we used this call and minimum supported OS for this call is windows 2008

Now my application fails to run in windows 2003 since the InitiateShutDown is not present in the advapi32.dll on Windows 2003

I get a failed to find procedure entry point for Initiateshutdown in advapi32.dll

I have already put a condition also so that the proper function calls are called with respect to the windows version.

Is there way to stop looking for the entry point in the dll when the application launches.The condition will make sure that the proper function call are called?

OR

I should be asking Microsoft why the old call InitiateSystemshutdown is not working properly ?

  • 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-24T22:19:46+00:00Added an answer on May 24, 2026 at 10:19 pm

    You have to use GetProcAddress and set your preprocessor variables for the earlier version of Windows. See http://msdn.microsoft.com/en-us/library/aa383745(VS.85).aspx#setting_winver_or__win32_winnt

    Basically, you should:

    1. Set WINVER to the earliest version of Windows you must support so you don’t accidentally use something newer.

    2. Some API calls and definitions won’t work anymore (like InitiateShutdown in your case) in your code, because they aren’t included by header files. For these, you must use them dynamically. Typically you use the GetProcAddress API and use a “typedef” to define the function’s signature (since it isn’t in the header files you’re including anymore). An example is here: http://msdn.microsoft.com/en-us/library/ms683212(VS.85).aspx. In your case you would use the InitiateShutdown API instead of the given GetNativeSystemInfo. If the call to GetProcAddress fails then you can assume that the API is not supported on that version of Windows.

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

Sidebar

Related Questions

I have an ASP.NET application which runs in Windows Server 2003. In this application
We have a Windows Service which runs on 2003 Server. It opens a source
I maintain a legacy application that runs on PHP/5.2.6 under Windows Server 2003 and
I have an application which runs a tool that requires network connection. Now my
I have a medium sized application that runs as a .net web-service which I
I have a simple .NET application which runs as Windows Service. Say it has
I have an application which runs using the context menu of windows explorer. I
I have a simple console application which runs daily (called by windows task scheduler)
I currently have a windows application which is automated and runs daily. the purpose
My application that runs on Windows Azure processes incoming requests from a user (which

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.