 |
|
 |
even though the article is rather dated its still a far easier and better performing alternative to the IFsrmQuotaManager Interface, although being not purely managed code but COM-Interop.
|
|
|
|
 |
|
 |
Very nice job here!
However I have 2 things to say:
1. As you've already noticed there are no DLL included. There are instructions on how to import it using a tool, but the tool is happend to be a part of SDK ~100MB and could not be downloaded separately. However if you are using Visual Studio (2008 in my case) you can simply add a reference to the dll and it'll do all you need. Solution Explorer -> Your project -> References -> Add Reference -> COM Tab -> Sort entries by path -> Look for \Windows\System32\dskquota.dll -> select it and click ok.
2. Major issue with code was that it spantaneously wouldn't remove users qouta entries. After some research I found out that there is a SID name chache which is kept in memory and it may not have newly created quota entries. And the FindUser(userName) function uses this chache. To look for user directly on the disk you need to pass user's SID to the function instead of the name.
Sortly:
replace
DiskQuotaControl.FindUser(userName)
with
DiskQuotaControl.FindUser(DiskQuotaControl.TranslateLogonNameToSID(userName))
Regards
Daniel
|
|
|
|
 |
|
 |
thank you so much for sharing the cached SIDs issue!
|
|
|
|
 |
|
 |
I came across your DLL library for managing quotas in a Windows 2003 environment. Have you ever extended the library to work with the newer quota features introduced in Windows Server 2003 R2?
|
|
|
|
 |
|
 |
sir
please help me,how to include this class in my web application,i want to make a quota handling operation in vb.net ,but i can,t use u,r class in xp local server,when i use this in xp localhost using vb.net,it show the error....
The filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT: 0x8007007B)
i make this change only
Private Const FILESHAREVOLUME As String = " //localhost:3804/quotaclasstest$\"
Private Const MBTOBYTES As Integer = 1048576
i call make folder application in button click part
Ram Krishna Pattnayak
Software Developer(SDS)
Sun-Dew Solutions Pvt.Ltd
www.sundewsolutions.com
kolkata
|
|
|
|
 |
|
 |
Is it possible to query quota information for the logged on user when they are not an administrator? I always get access denied, even if I specify read-only in the Initialize method.
|
|
|
|
 |
|
 |
Hi ! This is sree
its nice..article...
but in that one u used ..some Ex3cut3.Libraries..
but u didnt give the code..for this libraries..where we can get the source code for this Ex3cut3.Libraries.
so that while executing it shows some errors like
" The type or namespace name 'user' could not be found (are you missing a using directive or an assembly reference?) "
and
" The type or namespace name 'System ' could not be found (are you missing a using directive or an assembly reference?) "
..so that i am requesting u ..can u rectify this error or
tell me how to add or set quota settings to a user ..in .net interface..
i will wait..for u r reponse..plz..
or else give some related urls...
ok..
bye
sree..
sree
|
|
|
|
 |
|
 |
Hi,
my advices to you:
1. Ex3cut3.Libraries is not a library, but only a namespace and you have nothing to worry about that, to get a dll just type:
tlbimp %windir%\dskquota.dll /out:c:\DiskQuotaTypeLibrary.dll /namespace:DiskQuotaTypeLibrary
as wrote 'DaRedmondChew'
2. add this new generated dll to yours projects references
3. 'user' really don't exists so replace:
user.SAMAccountName --> userName
user.Domain --> userDomain
that's all right now
gl & hf
|
|
|
|
 |
|
 |
Hi ! This is sree
its nice..article...
but in that one u used ..some Ex3cut3.Libraries..
but u didnt give the code..for this libraries..
so that while executing it shows some errors like
" The type or namespace name 'user' could not be found (are you missing a using directive or an assembly reference?) "
and
" The type or namespace name 'System ' could not be found (are you missing a using directive or an assembly reference?) "
..so that i am requesting u ..can u rectify this error or
tell me how to add or set quota settings to a user ..in .net interface..
i will wait..for u r reponse..plz..
or else give some related urls...
ok..
bye
sree..
sree
|
|
|
|
 |
|
 |
The DLL file that is mentioned in the article is located in the windows\syste32\dskquota.dll available in almost every windows operative system.. any more questions can be made to me directly.
|
|
|
|
 |
|
 |
Where i can find the source code of this library ??
Jirka
|
|
|
|
 |
|
 |
I'm looking for the source code too. Where can i find it?
thanks
|
|
|
|
 |
|
 |
Hi !
i am also ..looking for the source code for Ex3cut3.Libraries..
where the author has given the source code.
if u know. send a mail to my id..
sreedhar
|
|
|
|
 |
|
 |
You have to generate the .NET wrapper for the dskquota.dll file. From a command prompt, type the following:
tlbimp %windir%\dskquota.dll /out:c:\DiskQuotaTypeLibrary.dll /namespace:DiskQuotaTypeLibrary
This generates the DiskQuotaTypeLibrary .NET wrapper, which contains the all the disk quota management classes and types.
|
|
|
|
 |
|
 |
Where i can find the source code of this library.
Luis
|
|
|
|
 |