【发布时间】:2011-01-10 16:40:44
【问题描述】:
我正在运行它来测试FormatMessage:
LPVOID lpMsgBuf;
errCode=12163;
FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM ,
0,
errCode,
0,
(LPTSTR) &lpMsgBuf,
0, NULL );
但是,当它返回 lpMsgBuf 时包含 NULL... 我期待像 ERROR_INTERNET_DISCONNECTED 这样的东西。
看起来有什么问题吗?谢谢。
【问题讨论】:
标签: c windows winapi wininet formatmessage