Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to understand .def files?

Tags:

c++

c

LIBRARY     Vcam.ax
EXPORTS
            DllMain                 PRIVATE
            DllGetClassObject       PRIVATE
            DllCanUnloadNow         PRIVATE
            DllRegisterServer       PRIVATE
            DllUnregisterServer     PRIVATE

The above is from Filters.def, what does it actually do?

like image 923
user198729 Avatar asked Nov 06 '25 06:11

user198729


1 Answers

See MSDN:

Module-Definition (.def) Files

Exporting from a DLL Using DEF Files

About PRIVATE, they say this:

The optional keyword PRIVATE prevents entryname from being placed in the import library generated by LINK. It has no effect on the export in the image also generated by LINK.

In other words, those functions are hidden from the DLL's table of entry points and reserved for the OS.

like image 93
Potatoswatter Avatar answered Nov 08 '25 19:11

Potatoswatter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!