質問

I had created a dll file(using C++) which captures password changes. Now I need to send it to a Windows service(created by me using C#) which uses WCF service. How to communicate with the service?

(the dll is primitive,without classes,and uses _stdcall as it needs to called by Windows OS)

Or are there any other ways to do it? Can the dll itself can be written in C#?(unmanaged)

役に立ちましたか?

解決

I was in a similar situation as you and I found a much easier solution. The sourceforge project passwdhk gives you a pre-made native DLL that implements the password filter interface. That DLL then will launch a external program (which you can write entirely in C#) and passing the username and password information in as arguments.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top