winreg-rs icon indicating copy to clipboard operation
winreg-rs copied to clipboard

REG_LINK keys

Open theflakes opened this issue 4 years ago • 2 comments

How do I tell if a reg key is a REG_LINK?

I apologize if I’m missing something simple.

Thanks

theflakes avatar Nov 28 '20 00:11 theflakes

@theflakes, you should be able to use key.get_raw_value("key name") -- it returns an io::Result<RegValue>, and RegValue::vtype contains an enum that identifies the type. You can match that against RegType::REG_LINK :)

jorgenpt avatar May 14 '21 20:05 jorgenpt

It's not so simple unfortunately https://stackoverflow.com/questions/53009194/checking-if-registry-key-is-link-to-or-copy-of-another-one

gentoo90 avatar May 15 '21 12:05 gentoo90