| 93 | } |
| 94 | |
| 95 | void InitializeObjectAttributes( |
| 96 | POBJECT_ATTRIBUTES p, |
| 97 | PUNICODE_STRING n, |
| 98 | ULONG a, |
| 99 | HANDLE r, |
| 100 | PVOID s |
| 101 | ) { |
| 102 | p->Length = sizeof(OBJECT_ATTRIBUTES); |
| 103 | p->RootDirectory = r; |
| 104 | p->Attributes = a; |
| 105 | p->ObjectName = n; |
| 106 | p->SecurityDescriptor = s; |
| 107 | p->SecurityQualityOfService = nullptr; |
| 108 | } |
| 109 | |
| 110 | std::wstring GetLastErrorMessage() { |
| 111 | DWORD errorCode = GetLastError(); |
no outgoing calls
no test coverage detected