I am developing registry monitor for watching particular keys, i am having a problem with System.Management.ManagementObject
SECURITY_DESCRIPTOR
value getting null on RegistryValueChangeEvent
event. Please kindly help
Asked
Active
Viewed 100 times
0

Naeem Ul Wahhab
- 2,465
- 4
- 32
- 59

Devrk
- 1
- 1
-
Please show your code (or what you have tried) to clarify your question. – Naeem Ul Wahhab Jul 19 '17 at 07:42
-
Hi Naeem, please see below code void valuechange_RegistryValueChanged(object sender, RegistryValueChangedEventArgs e) { lsbDisplay.Invoke((MethodInvoker)(() => { lsbDisplay.Items.Add(string.Format("RegistryValueChangeEvent detected changed by {0} , e.RegistryValueChangeData.SECURITY_DESCRIPTOR == null ? "N/A" : e.RegistryValueChangeData.SECURITY_DESCRIPTOR[0].ToString()) )); })); } – Devrk Jul 19 '17 at 09:38