如何在我的C ++应用程序中获取证书删除通知? [英] How do I get the certificate delete notification in my C++ application ?

查看:159
本文介绍了如何在我的C ++应用程序中获取证书删除通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的一个C ++应用程序中管理证书。如果用户从证书库中删除/修改证书,我想收到通知。如果没有WMI,我该怎么做?

I'm managing certificates in one of my C++ application. I want to get the notification if user delete/modify the certificate from certificate store. How can I do this without WMI?

是否可以获得特定证书更改的回调? 

Is it possible to get the callback for the particular certificate changes? 

提前致谢。

   

   

Nandkumar T。

Nandkumar T.

推荐答案

嗨Nandkumar T ,

Hi Nandkumar T,

感谢您在此处发布。

>>我在我的一个C ++应用程序中管理证书。如果用户从证书库中删除/修改证书,我想收到通知。如果没有WMI,我该怎么办?

是否可以获得特定证书更改的回调? 

对于这种情况,您可以
IWbemServices :: ExecNotificationQueryAsync
方法接收异步事件。 当您收到异步事件时,您应该提供
的实现 IWbemObjectSink 功能。每当收到事件时,IWbemServices :: ExecNotificationQueryAsync方法都会调用EventSink :: Indicate方法。

For this case, you could  the IWbemServices::ExecNotificationQueryAsync method to receive asynchronous events.  When you receive asynchronous events, you should provide an implementation of IWbemObjectSink.  The IWbemServices::ExecNotificationQueryAsync method calls the EventSink::Indicate method whenever an event is received.

有关更多信息和代码示例,请参阅以下文档。

For more information and code samples, please refer to this document below.

https://msdn.microsoft.com/en-us/library/aa390425(v = vs.85)的.aspx

希望这可以帮助你。

最好的问候,

Sera Yu


这篇关于如何在我的C ++应用程序中获取证书删除通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆