Home All Groups Group Topic Archive Search About

Set concurrent connections on share

Author
7 Jun 2005 2:29 PM
aiKeith
Hello,

Could somebody tell me how I can limit the concurrent connections on a share
via .net code?

Or is there a better way to limit concurrent connections to a given .exe file?

Author
7 Jun 2005 5:05 PM
Nicole Calinoiu
"aiKeith" <aiKe***@discussions.microsoft.com> wrote in message
news:0497BF29-69F4-4543-8512-AD9DAB4B615A@microsoft.com...
> Hello,
>
> Could somebody tell me how I can limit the concurrent connections on a
> share
> via .net code?

AFAIK, the .NET Framework doesn't include functionality for this, so you
would need to use an alternate API (e.g.: WMI or to p/invoke into Windows
API).


> Or is there a better way to limit concurrent connections to a given .exe
> file?

For what purpose and in what scenario?
Author
7 Jun 2005 5:25 PM
aiKeith
Hello Nicole,

Thank you.

I am actually looking at the WMI, but I see NO WAY to limit connections on a
..exe bases (or at all for that matter)

purpose/scenerio

We have several .exe apps on a server (com and .net).  Customers pay a
license fee for concurrent connections and we wanted to run a win services
that looks at the applications, number of licenses and if it is maxed, refuse
a client to run the .exe and return a custom error message.

not as though im asking for much (ha ha)

If you have some ideas (wmi, etc) im all ears.

thanks again...




Show quoteHide quote
"Nicole Calinoiu" wrote:

> "aiKeith" <aiKe***@discussions.microsoft.com> wrote in message
> news:0497BF29-69F4-4543-8512-AD9DAB4B615A@microsoft.com...
> > Hello,
> >
> > Could somebody tell me how I can limit the concurrent connections on a
> > share
> > via .net code?
>
> AFAIK, the .NET Framework doesn't include functionality for this, so you
> would need to use an alternate API (e.g.: WMI or to p/invoke into Windows
> API).
>
>
> > Or is there a better way to limit concurrent connections to a given .exe
> > file?
>
> For what purpose and in what scenario?
>
>
>
Author
7 Jun 2005 5:51 PM
Nicole Calinoiu
"aiKeith" <aiKe***@discussions.microsoft.com> wrote in message
news:52E5D6B9-38DF-4AE4-A875-54EABFAA25BA@microsoft.com...
> Hello Nicole,
>
> Thank you.
>
> I am actually looking at the WMI, but I see NO WAY to limit connections on
> a
> .exe bases (or at all for that matter)

Sorry, maybe I'm missing something here.  It sounded to me like you have an
exe stored on a share and you want to limit the number of users that may
concurrently connect to that share in order to launch the exe.  Is the
intent instead to limit the number of concurrent connections that may be
made to a share via an exe?  If so, I know of no way to do this via only
functionality built into Windows.

>
> purpose/scenerio
>
> We have several .exe apps on a server (com and .net).  Customers pay a
> license fee for concurrent connections and we wanted to run a win services
> that looks at the applications, number of licenses and if it is maxed,
> refuse
> a client to run the .exe and return a custom error message.

Are you counting concurrent connections to a server application (e.g.: a
service) or concurrent uses of a client exe regardless of what it happens to
be doing?


Show quoteHide quote
>
> not as though im asking for much (ha ha)
>
> If you have some ideas (wmi, etc) im all ears.
>
> thanks again...
>
>
>
>
> "Nicole Calinoiu" wrote:
>
>> "aiKeith" <aiKe***@discussions.microsoft.com> wrote in message
>> news:0497BF29-69F4-4543-8512-AD9DAB4B615A@microsoft.com...
>> > Hello,
>> >
>> > Could somebody tell me how I can limit the concurrent connections on a
>> > share
>> > via .net code?
>>
>> AFAIK, the .NET Framework doesn't include functionality for this, so you
>> would need to use an alternate API (e.g.: WMI or to p/invoke into Windows
>> API).
>>
>>
>> > Or is there a better way to limit concurrent connections to a given
>> > .exe
>> > file?
>>
>> For what purpose and in what scenario?
>>
>>
>>