We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSDN documentation for this: https://learn.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regnotifychangekeyvalue
Can be wrapped with something list: (possibly in reg_key.rs)
use std::ptr; use winapi::um::winreg::RegNotifyChangeKeyValue; use winapi::um::winnt::HKEY;
pub enum NotifyFilter { Name = winapi::um::winnt::REG_NOTIFY_CHANGE_NAME, Attributes = winapi::um::winnt::REG_NOTIFY_CHANGE_ATTRIBUTES, LastSet = winapi::um::winnt::REG_NOTIFY_CHANGE_LAST_SET, Security = winapi::um::winnt::REG_NOTIFY_CHANGE_SECURITY, }
fn notify_change_key_value(watch_subtree: bool, dwNotifyFilter: NotifyFilter, fAsynchronous:bool) unsafe { RegNotifyChangeKeyValue(self.hkey, watch_subtree, dwNotifyFilter as uint32, ptr::null_mut(), fAsynchronous); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
MSDN documentation for this:
https://learn.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regnotifychangekeyvalue
Can be wrapped with something list: (possibly in reg_key.rs)
use std::ptr;
use winapi::um::winreg::RegNotifyChangeKeyValue;
use winapi::um::winnt::HKEY;
pub enum NotifyFilter {
Name = winapi::um::winnt::REG_NOTIFY_CHANGE_NAME,
Attributes = winapi::um::winnt::REG_NOTIFY_CHANGE_ATTRIBUTES,
LastSet = winapi::um::winnt::REG_NOTIFY_CHANGE_LAST_SET,
Security = winapi::um::winnt::REG_NOTIFY_CHANGE_SECURITY,
}
fn notify_change_key_value(watch_subtree: bool, dwNotifyFilter: NotifyFilter, fAsynchronous:bool)
unsafe {
RegNotifyChangeKeyValue(self.hkey, watch_subtree, dwNotifyFilter as uint32, ptr::null_mut(), fAsynchronous);
}
The text was updated successfully, but these errors were encountered: