MCPcopy Create free account
hub / github.com/Meowmycks/LetMeowIn / InitializeObjectAttributes

Function InitializeObjectAttributes

src/main.cpp:95–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void 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
110std::wstring GetLastErrorMessage() {
111 DWORD errorCode = GetLastError();

Callers 3

GetPromotedFunction · 0.85
FindersKeepersFunction · 0.85
HijackHandleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected