I'd like to create a cryptographic service provider ,for example in rsaenh.dll there are many functions and this dll can export DllUnregisterServer and DllregisterServer ,I need do same as rsaenh.dll but I can't export this function from my dll?I hope it was clearly.
If you have any idea please inform me.
It is because these dll are COM components (I suppose). Why do you want to do the same ?You can simply have a dll and exports the functions you need, why do you want to register it as a COM component ?
I need provide a cryptographic service provider (CSP) and every CSP needs to have a dll ,I need create a dll same as rsaenh.dll but not exactly same of rsaenh.dll I should change a bit it and replace my dll with rsaenh.dll .
I don't understand "COM components" that you mentioned.If it isn't possible do that,how rsaenh.dll can do it,please explain me complete and step by step about "COM component" that you mentioned.
I think you first need to define more in details want you want to do (for yourself I mean). Simply saying that you want to do the same as '....' without understanding the concepts behind that will lead you to nowhere (for example here, you want to use some COM functionalities without knowing what a COM component is).
Can't you do that simply with a dll ? Why do you need to register it as a COM component (and tell me it's because rsarnh.dll does that also, I want a good reason why you want to do that).
Sorry, but if all you want to do is a kind of 'copying' an existing thing, I cannot help you (because you need first to understand the concepts before using that).
I 'm sorry ,I think I couldn't explain you my idea well,
In my project I need create a CSP for our goal ,for example I need change the digital signature in word and for this goal I should create a CSP and install it in windows.I need a CSP same as "Microsoft Strong Crypto Provider" that "Microsoft Strong Crypto Provider" uses rsaenh.dll ,I should have a dll same as rsaenh.dll that "Microsoft Strong Crypto Provider" used it, but my dll isn't exactly same as rsaenh.dll ,it have a bit differ of it. I tried to make a dll with VC++ same as rsaenh.dll because my dll should replace with rsaenh.dll and my dll should have all of functions that rsaenh.dll have used ,one of this function is DllregisterServer and DllUnregisterServer .but when I implement them and export them ,I saw my dll can export all of functions except DllUnregisterServer and DllregisterServer .
I hope I could explain my goal now.
Please help me.
I open rsaenh.dll with "DLL Export Viewer" I think this is same as Depends.exe that you mentioned but I see the DllUnregisterServer and DllregisterServer functions are exported and my dll can export these functions ,I can't understand meaning the sentence that you mentioned:
"C++ is decorating the name if that is the case declare the function as "C" (extern "C" void f(int); ). "
Please explain it if it is possible for you.
"DLL Export Viewer" says that they are exported in rsaenh.dll,but when I open my dll with "DLL Export Viewer" there aren't exported I mean my dll can't export DllUnregisterServer and DllregisterServer function.
(I'm so sorry in the last answer I wrote can but I'd like to say can't )