HOW CAN I MAKE 2 CONECTION IN MINIFILTER THROUGH FltCreateCommunicationPort

  1. i wanted to know it is possible FltCreateCommunicationPort function i can use 2 connections at once(by changing paramters of MaxConnection 1 to 2 )???
  2. In minifilter driver i want to make attach multiple devices at once. is it possible to use for loop over filterattach,filterstartconnectons etc in user program

I thot of running .exe twice so that in ech cmd i can run and see different attached drive but in second cmd prompt it was showing error max connection reached from user .So i thot of changing the paramter of FltCreateCommunicationPort(MAx length 1 to 2 ) so wen i tried executing it my visual studio was getting crashed

Yes, if you set the MaxConnections to 2 then the port can be opened
twice via a call to FilterConnectCommunicationPort(). You can
differentiate between these calls to open the port by specifying an
lpContext value to the latter API in user mode which will be received in
your ConnectectNotifyCallback routine.

I would trace through your calls in the ConnectNotifyCallback to be sure
you are actually receiving these notifications and that you are not
failing them for some reason.

Pete


Kernel Drivers
Windows File System and Device Driver Consulting
www.KernelDrivers.com http:</http:>
866.263.9295

------ Original Message ------
From: xxxxx@gmail.com
To: “Windows File Systems Devs Interest List”
Sent: 5/5/2015 2:53:43 AM
Subject: [ntfsd] HOW CAN I MAKE 2 CONECTION IN MINIFILTER THROUGH
FltCreateCommunicationPort

>1) i wanted to know it is possible FltCreateCommunicationPort function
>i can use 2 connections at once(by changing paramters of MaxConnection
>1 to 2 )???
>2) In minifilter driver i want to make attach multiple devices at once.
>is it possible to use for loop over filterattach,filterstartconnectons
>etc in user program
>
> I thot of running .exe twice so that in ech cmd i can run and see
>different attached drive but in second cmd prompt it was showing error
>max connection reached from user .So i thot of changing the paramter of
>FltCreateCommunicationPort(MAx length 1 to 2 ) so wen i tried executing
>it my visual studio was getting crashed
>
>
>—
>NTFSD is sponsored by OSR
>
>OSR is hiring!! Info at http://www.osr.com/careers
>
>For our schedule of debugging and file system seminars visit:
>http://www.osr.com/seminars
>
>To unsubscribe, visit the List Server section of OSR Online at
>http://www.osronline.com/page.cfm?name=ListServer

Hello Peter,
Actually i’m not able to connect lpcontext of FilterConnectCommunicationPort() and context of CreateThread() how shall i make bith work togther.

As you have told me to use different lpcontext to differentiate port connection of FilterConnectCommunicationPort() but am not able to link both beacuse my threads
are doing context functionality so how can i join FilterConnectCommunicationPort() context with each thread context functionality.