What exactly does ERROR_INVALID_ORDINAL mean?

The LoadLibrary function returns me error code 182. From MSDN:

ERROR_INVALID_ORDINAL: "The operating system cannot work% 1"

Does anyone have a better description of what this error is?

+3
source share
2 answers

A very obscure mistake. However, the term "serial number" is closely related to the DLL. The DLL contains a list of exported functions, as well as a list of imported functions. Other dll files that it relates to. These exports and imports are usually named, but this is not required. They always have a number, a number is a "serial number".

To start diagnosing this, use the Dumpbin.exe SDK tool. Run this first:

Dumpbin /exports Blah.dll

. , . ,

Dumpbin /imports Blah.dll

. , DLL , DLL . . , , DependencyWalker. , - , DLL. , , , DLL Hell.

+3

, LoadLibrary? Windows . , . GetProcAddress , .

- DLL, , GetProcAddress DllMain . , GetLastError, ERROR_INVALID_ORDINAL, .

0

Source: https://habr.com/ru/post/1759964/


All Articles