�ر�
| 65 | |
| 66 | // �ر� |
| 67 | NTSTATUS RegistryKey::Close() { |
| 68 | NTSTATUS status = STATUS_SUCCESS; |
| 69 | if (_hKey && _own) { |
| 70 | // ��Zw��ͷ���ں˺�����IRQLҪ����PASSIVE_LEVEL |
| 71 | status = ZwClose(_hKey); |
| 72 | _hKey = nullptr; |
| 73 | } |
| 74 | return status; |
| 75 | } |
| 76 | |
| 77 | NTSTATUS RegistryKey::SetValue(PUNICODE_STRING name, ULONG type, PVOID pValue,ULONG bytes) { |
| 78 | return ZwSetValueKey(_hKey, name, 0, type, pValue, bytes); |
nothing calls this directly
no outgoing calls
no test coverage detected