| 79 | } |
| 80 | |
| 81 | void RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString) { |
| 82 | if (SourceString == nullptr) { |
| 83 | DestinationString->Length = 0; |
| 84 | DestinationString->MaximumLength = 0; |
| 85 | DestinationString->Buffer = nullptr; |
| 86 | } |
| 87 | else { |
| 88 | size_t size = wcslen(SourceString) * sizeof(WCHAR); |
| 89 | DestinationString->Length = static_cast<USHORT>(size); |
| 90 | DestinationString->MaximumLength = static_cast<USHORT>(size + sizeof(WCHAR)); |
| 91 | DestinationString->Buffer = const_cast<PWSTR>(SourceString); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | void InitializeObjectAttributes( |
| 96 | POBJECT_ATTRIBUTES p, |
nothing calls this directly
no outgoing calls
no test coverage detected