Skip to content

Commit

Permalink
hider: maintain additional extended hiding rules
Browse files Browse the repository at this point in the history
Add set of dynamic and persistent rules for advanced
device hiding feature.

Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
  • Loading branch information
ybendito authored and YanVugenfirer committed Apr 15, 2019
1 parent 4ebf0da commit ad8a883
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions UsbDk/ControlDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ class CRegHideRule final : private CRegKey
NTSTATUS CUsbDkControlDevice::ReloadPersistentHideRules()
{
m_PersistentHideRules.Clear();
m_PersistentExtHideRules.Clear();

CHideRulesRegKey RulesKey;
auto status = RulesKey.Open();
Expand Down
2 changes: 2 additions & 0 deletions UsbDk/ControlDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ class CUsbDkControlDevice : private CWdfControlDevice, public CAllocatable<USBDK
typedef CWdmSet<CUsbDkHideRule, CLockedAccess, CNonCountingObject> HideRulesSet;
HideRulesSet m_HideRules;
HideRulesSet m_PersistentHideRules;
HideRulesSet m_ExtHideRules;
HideRulesSet m_PersistentExtHideRules;

NTSTATUS AddHideRuleToSet(const USB_DK_HIDE_RULE &UsbDkRule, HideRulesSet &Set);

Expand Down

0 comments on commit ad8a883

Please sign in to comment.