Discussion:
Not enough quota is available to process this command
(too old to reply)
riglee
2005-03-10 17:29:48 UTC
Permalink
I am calling CreateFile on a remote file (\\IP\C$\DirPath\FIlename). I have
all the permissions needed. See code snippet below. What is this message,
"Not enough quota is available to process this command" and why does it
happen?

m_hFile = CreateFile(SomeFileName,
GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,
NULL);

if (INVALID_HANDLE_VALUE == m_hFile) {

DWORD Err = GetLastError();

// GetLastError returns 1816

// Not enough quota is available to process this command

return false;

}



Thanks for any insight.
Alexander Nickolov
2005-03-10 18:20:41 UTC
Permalink
The target system uses disk quotas, and the user you are running
under has exceeded their quota, so a new file cannot be crated.
Try deleting some files until you fall under the quota limit for that
user.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: ***@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
Post by riglee
I am calling CreateFile on a remote file (\\IP\C$\DirPath\FIlename). I have
all the permissions needed. See code snippet below. What is this message,
"Not enough quota is available to process this command" and why does it
happen?
m_hFile = CreateFile(SomeFileName,
GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,
NULL);
if (INVALID_HANDLE_VALUE == m_hFile) {
DWORD Err = GetLastError();
// GetLastError returns 1816
// Not enough quota is available to process this command
return false;
}
Thanks for any insight.
i***@gmail.com
2017-12-10 08:04:49 UTC
Permalink
Post by riglee
I am calling CreateFile on a remote file (\\IP\C$\DirPath\FIlename). I have
all the permissions needed. See code snippet below. What is this message,
"Not enough quota is available to process this command" and why does it
happen?
m_hFile = CreateFile(SomeFileName,
GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,
NULL);
if (INVALID_HANDLE_VALUE == m_hFile) {
DWORD Err = GetLastError();
// GetLastError returns 1816
// Not enough quota is available to process this command
return false;
}
Thanks for any insight.
Loading...