|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Set concurrent connections on shareHello,
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? "aiKeith" <aiKe***@discussions.microsoft.com> wrote in message AFAIK, the .NET Framework doesn't include functionality for this, so you 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? 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 For what purpose and in what scenario?> file? 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? > > > "aiKeith" <aiKe***@discussions.microsoft.com> wrote in message Sorry, maybe I'm missing something here. It sounded to me like you have an 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) 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. > Are you counting concurrent connections to a server application (e.g.: a > 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. 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? >> >> >>
Other interesting topics
Remoting Problem
WS Security issues Isolated Storage Access User Identity Storing user settings file Newbie Question - List of all available hash algorithms? DPAPI Decryption on different machine Bad Data CryptographicException when RSA decrypting MemoryStream requires FileIOPermission ??? SymmetricAlgorithm/CryptoStream screwed? "Length of data to encrypt is invalid" |
|||||||||||||||||||||||