MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / Close

Method Close

KernelLibrary/RegistryKey.cpp:67–75  ·  view source on GitHub ↗

�ر�

Source from the content-addressed store, hash-verified

65
66// �ر�
67NTSTATUS 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
77NTSTATUS RegistryKey::SetValue(PUNICODE_STRING name, ULONG type, PVOID pValue,ULONG bytes) {
78 return ZwSetValueKey(_hKey, name, 0, type, pValue, bytes);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected