-
-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mimic ordinal counter (start from 1 instead of 0) #8
Comments
Where you found problems with ordinals ? :) or you need also the DllMain features (#5) ? In Conari engine I implemented simplified work with export table of PE data for native features between C# and C++ (binding from any exported functions of libraries etc.):
but important note:
and yes, the DllExport uses native ILasm features - see .export [<ordinal>] as <export_name> read also my short explanation here |
Export ordinals are 1-based, it is the common practice.
Yeah, I know how this works, in fact I have made my own "DllExporter".. |
and ? Vasya Pupkin loves start from 5 and hates a common practice at all... and ? You need add 4-bytes value from offset 0x10 to each element of the AddressOfNameOrdinals. Read more from Matt Pietrek. If this value does not match at all ... please, say simply, this is it. I will check it later.
ok. |
The one (1) now is used by default as Base for all ordinals #8 There is also alternative to configure this number - MSBuild property: DllExportOrdinalsBase
* FIXED: Fixed bug - `An item with the same key has already been added`. Issue #10 * FIXED: Bug with Meta library: Incorrect default values. Issue #16 please note, the __cdecl is the default calling convention for our library as and for C and C++ programs. * FIXED?: Probably fixed bug - `Script errors on package install` Issue #6 * FIXED?: Probably fixed bug - `non-English system language - syntax error` Issue #7 * NEW: GUI Configurator with updated ddNS features. * NEW: Implemented feature 'Export for platform': [ x86 / x64 / x86 + x64 ] Issue #9 * NEW: Implemented feature 'Base for ordinals'. Issue #11 There is also alternative to configure this number - MSBuild property: DllExportOrdinalsBase * NEW: The one (1) now is used by default as Base for all ordinals. `Mimic ordinal counter (start from 1 instead of 0)` Issue #8 * CHANGED: The ddNS features now as binary cmdlet `NSBin`. Use `nsbin.bat` if needed. * CHANGED: `Set "Inherited = false" in AttributeUsage for DllExportAttribute`. Issue #15 * OTHER: other possible changes and fixes.
I think the title says it all.
Ordinal is not as index, thus it should start counting from 1 rather than 0.
Open any native Windows DLL with
dumpbin /EXPORTS
(or use PE explorer program), and you will notice that ordinal always starts from 1.The text was updated successfully, but these errors were encountered: