Skip to content
New issue

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

RegNotifyChangeKeyValue isn't supported in the crate #72

Open
shacharrozin2 opened this issue Nov 20, 2024 · 0 comments
Open

RegNotifyChangeKeyValue isn't supported in the crate #72

shacharrozin2 opened this issue Nov 20, 2024 · 0 comments

Comments

@shacharrozin2
Copy link

shacharrozin2 commented Nov 20, 2024

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);
}

@shacharrozin2 shacharrozin2 changed the title RegNotifyChangeKeyValue isn't supported in the lib RegNotifyChangeKeyValue isn't supported in the crate Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant