Login method Customization using GINA

前端 未结 4 2242
粉色の甜心
粉色の甜心 2021-01-07 12:52

I know it\'s not easy to find a master in GINA, but my question is most near to Interprocess Communication(IPC), I wrote my custom GINA in unmanaged c++, I included it a met

4条回答
  •  一个人的身影
    2021-01-07 13:29

    The canonical method for communicating with a service (or most IPC that potentially needs to cross a session/desktop boundary) is a named pipe. You can use mailslots as well, but you have to deal with duplication issues because mailslot messages get duped across all installed protocols, so you need some kind of tagging system... gets kinda messy.

    See the docs for CreateNamedPipe and work your way out from there. I have talked between C++ and C# using pipes: the interop got a little messy (binary messages), but its do-able. There's some sample code for C# pipes (from both sides) here.

    The nice thing about using a pipe for your specific service to service comms problem is you can expand the design later on to support a UI if you need it.

提交回复
热议问题