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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:07:29+00:00 2026-05-24T14:07:29+00:00

I have a strange problem that i didn’t encounter before i must mention that

  • 0

I have a strange problem that i didn’t encounter before i must mention that my main programming language is delphi not c++ and i might do a stupid mistake and don’t realise it.

I have the following code :

ULONG myret;
PROCESS_BASIC_INFORMATION PRC;
...
NtQueryInformationProcess(hProcess,ProcessBasicInformation,(PVOID)(&PRC),sizeof(PROCESS_BASIC_INFORMATION),(PULONG)(&myret));
...

I get the following error message :

GetCommandArgs.obj : error LNK2019: unresolved external symbol
_NtQueryInformationProcess@20 referenced in function _wmain

What is the problem ? Thanks very 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-05-24T14:07:30+00:00Added an answer on May 24, 2026 at 2:07 pm

    This is by design. Microsoft wasn’t very happy about having to document the function, forced to by the Department of Justice settlement. It is clearly spelled out in the MSDN article for it:

    The NtQueryInformationProcess function and the structures that it
    returns are internal to the operating system and subject to change
    from one release of Windows to another. To maintain the compatibility
    of your application, it is better to use public functions mentioned in
    the description of the ProcessInformationClass parameter instead.

    If you do use NtQueryInformationProcess, access the function through
    run-time dynamic linking. This gives your code an opportunity to
    respond gracefully if the function has been changed or removed from
    the operating system. Signature changes, however, may not be
    detectable.

    This function has no associated import library. You must use the
    LoadLibrary and GetProcAddress functions to dynamically link to
    Ntdll.dll.

    The last line tells you what you have to do. The first line tells you why you shouldn’t.

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

Sidebar

Related Questions

I have a strange problem that I could not solve. When I try to
I have a strange problem that the plot overlaps in the graph, but not
I have a strange problem that is only happening in a single location. I
I'm having a strange problem in that I have php inserting text into a
I have a strange problem with mod_rewrite, the rules that are relevant here are:
I'm having a strange problem here... I have an ASP.NET 3.5 application that has
Im having a very strange problem, i have a complicated view that returns incorrect
We've faced strange problem. We have log on service, that authenticates user, adds auth
I have a strange problem in my code that I really can't explain and
I am experiencing a strange problem: I have a Screen that is using the

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.