MSDN documentation issue

Igor Korot 6 Reputation points
2022-11-18T21:56:21.787+00:00

Hi, ALL,
On the page https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulehandleexa, it is stated that the first parameter can be 0.

However there is no explanation in the behavior in the Remarks section if any.

Are we to presume that "0" has no meaning at all?
Moreover it is explicitly stated that when the GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, one have to use FreeLibrary() call.

Having the value of 0 should be documented properly.

Thank you.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,683 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2022-11-18T22:17:53.437+00:00

    You could provide the feedback here.

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    262024-image.png


  2. Obaid Farooqi MSFT 591 Reputation points Microsoft Employee
    2022-11-19T02:53:41.267+00:00

    Hi @Igor Korot
    This tag is dedicated to supporting issues related to open specifications. You can find open specifications here https://learn.microsoft.com/en-us/openspecs/
    I am removing openspecs-windows tag and adding windows-api, which is more appropriate for your inquiry.

    Regards,
    Obaid Farooqi - MSFT


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.