Hello
I,m developing a simple driver to notify process creation to user mode !
I searched an found some good example but that's only show result in "dbgView" !
My problem is retrieve and send the : ImageFileName and CommandLine from PPS_CREATE_NOTIFY_INFO CreateInfo.
This is my code in side the CreateProcessNotifyEx callback :
Where is my wrong ?
{Ohhh Excuse my if my English is bad}
I,m developing a simple driver to notify process creation to user mode !
I searched an found some good example but that's only show result in "dbgView" !
My problem is retrieve and send the : ImageFileName and CommandLine from PPS_CREATE_NOTIFY_INFO CreateInfo.
This is my code in side the CreateProcessNotifyEx callback :
Code: Select all
This code work perfectly and i got the Pinfo struct in user mode, but the Pinfo->ImageFileName and Pinfo->CommandLine does not contain any string ! (Pinfo->ProcessId and Pinfo->Create fills by true data)VOID CreateProcessNotifyEx(
__inout PEPROCESS Process,
__in HANDLE ProcessId,
__in_opt PPS_CREATE_NOTIFY_INFO CreateInfo
)
{ ...
Pinfo->ParentId = CreateInfo->ParentProcessId;
Pinfo->ProcessId = ProcessId;
Pinfo->Create = CreateInfo->CreationStatus;
Pinfo->ImageFileName= CreateInfo->ImageFileName;
Pinfo->CommandLine= CreateInfo->CommandLine;
..
KeSetEvent(ProcessEvent, 0, FALSE);
KeClearEvent(ProcessEvent);
....}
Where is my wrong ?
{Ohhh Excuse my if my English is bad}