Hello all,
can anybody help me with creating a named pipe kernel mode?
I’ve tried many ways, but no one worked…
Any source appreciated…
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Mark,
This should work:
NTSTATUS ntStatus;
IO_STATUS_BLOCK IoStatus;
HANDLE NtFileHandle = NULL;
OBJECT_ATTRIBUTES ObjectAttributes;
WCHAR PipeName = L"\DosDevices\Pipe\nmpipe";
// Replace nmpipe with your pipe name
UNICODE_STRING FullFileName;
int i;
LARGE_INTEGER Interval;
RtlInitUnicodeString( &FullFileName, PipeName );
KdPrint((“Attempting to open %wZ\n”, &FullFileName));
InitializeObjectAttributes ( &ObjectAttributes,
&FullFileName,
OBJ_CASE_INSENSITIVE,
NULL,
NULL );
ntStatus = ZwCreateFile( &NtFileHandle,
SYNCHRONIZE | GENERIC_READ | GENERIC_WRITE,
&ObjectAttributes,
&IoStatus,
NULL, // alloc size =
none
FILE_ATTRIBUTE_NORMAL,
FILE_SHARE_READ| FILE_SHARE_WRITE,
FILE_OPEN_IF,
FILE_SYNCHRONOUS_IO_NONALERT,
NULL, // eabuffer
0 ); // ealength
Ric Hunt
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Mark Twain
Sent: Tuesday, February 20, 2001 7:38 AM
To: NT Developers Interest List
Subject: [ntdev] Named Pipe
Hello all,
can anybody help me with creating a named pipe kernel mode?
I’ve tried many ways, but no one worked…
Any source appreciated…
You are currently subscribed to ntdev as: xxxxx@HuntConsulting.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com