如何隐藏DLL的导出接口


如何你希望优化你DLL的最终生成大小,在每一个导出函数中使用NONAME属性。增加了这个属性表明你只希望保留DLL导出表中顺序,不希望让别人看到你导出的函数名

 

EXPORTS

         fnHideExportingFunctions @ 1 NONAME

         fnHideExportingFunctions1 @ 2 NONAME

         fnHideExportingFunctions2 @ 3 NONAME

         fnHideExportingFunctions3 @ 4 NONAME

         fnHideExportingFunctions4 @ 5 NONAME

         fnHideExportingFunctions5 @ 6 NONAME

         fnHideExportingFunctions6 @ 7 NONAME

         fnHideExportingFunctions7 @ 8 NONAME

         fnHideExportingFunctions8 @ 9 NONAME

         fnHideExportingFunctions9 @ 10 NONAME

 

你可能感兴趣的:(优化,dll)