是否有与 EDQUOT 等效的 Windows 版本?

发布于 2024-07-18 04:56:41 字数 284 浏览 4 评论 0原文

我正在将一些 C++ 代码从 UNIX 移植到 Windows,该代码检测 EDQUOT 错误的发生,该错误表明超出当前用户磁盘配额的尝试失败。 Visual Studio 的没有 EDQUOT,尽管我知道 Windows 有磁盘配额功能。 Visual Studio 的确实有一个 ENOSPC,这可能是 CRT 表达 UNIX 所表达的 EDQUOT 的方式。 有人能证实或否认这个理论吗? 如果这不是处理这个问题的方法,那什么才是呢?

I'm porting some C++ code from UNIX to Windows which detects the occurrence of the EDQUOT error, which indicates that there was an unsuccessful attempt to exceed the current user's disk quota. Visual Studio's <errno.h> doesn't have an EDQUOT, although I know that Windows has disk quota functionality. Visual Studio's <errno.h> does have an ENOSPC, which might be how the CRT expresses what UNIX would express as EDQUOT. Can anybody confirm or deny this theory? And if this isn't the way to handle this, what is?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北陌 2024-07-25 04:56:41

C:\ Program Files \ Microsoft SDKs \ Windows \ v7.0A \ Include \ WinSock.h

C:\ Program Files \ Microsoft SDKs \ Windows \ v7.1 \ Include \ WinSock.h

#if 0
#define EDQUOT                  WSAEDQUOT
#endif

C:\ Program Files \ Microsoft SDKs \ Windows \ v7.0A \ Include \ WinError.h

C:\ Program Files \ Microsoft SDKs \ Windows \ v7.1 \ Include \ WinError.h

//
// MessageId: WSAEDQUOT
//
// MessageText:
//
// Ran out of disk quota.
//
#define WSAEDQUOT                        10069L

C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include\WinSock.h

C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock.h

#if 0
#define EDQUOT                  WSAEDQUOT
#endif

C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include\WinError.h

C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinError.h

//
// MessageId: WSAEDQUOT
//
// MessageText:
//
// Ran out of disk quota.
//
#define WSAEDQUOT                        10069L
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文