23 #define PH_LOG_PRIVATE
37 if (entries > 0x1000) entries = 0x1000;
38 PhInitializeCircularBuffer_PVOID(&
PhLogBuffer, entries);
83 _In_opt_ HANDLE ParentProcessId,
94 entry->
Process.ParentProcessId = ParentProcessId;
99 entry->
Process.ParentName = ParentName;
117 entry->
Service.DisplayName = DisplayName;
142 oldEntry = PhAddItemCircularBuffer2_PVOID(&
PhLogBuffer, Entry);
170 _In_opt_ HANDLE ParentProcessId,
202 L
"Process created: %s (%u) started by %s (%u)",
203 Entry->Process.Name->Buffer,
204 (ULONG)Entry->Process.ProcessId,
206 (ULONG)Entry->Process.ParentProcessId
209 return PhFormatString(L
"Process terminated: %s (%u)", Entry->Process.Name->Buffer, (ULONG)Entry->Process.ProcessId);
211 return PhFormatString(L
"Service created: %s (%s)", Entry->Service.Name->Buffer, Entry->Service.DisplayName->Buffer);
213 return PhFormatString(L
"Service deleted: %s (%s)", Entry->Service.Name->Buffer, Entry->Service.DisplayName->Buffer);
215 return PhFormatString(L
"Service started: %s (%s)", Entry->Service.Name->Buffer, Entry->Service.DisplayName->Buffer);
217 return PhFormatString(L
"Service stopped: %s (%s)", Entry->Service.Name->Buffer, Entry->Service.DisplayName->Buffer);
219 return PhFormatString(L
"Service continued: %s (%s)", Entry->Service.Name->Buffer, Entry->Service.DisplayName->Buffer);
221 return PhFormatString(L
"Service paused: %s (%s)", Entry->Service.Name->Buffer, Entry->Service.DisplayName->Buffer);
224 return Entry->Message;