我定义了这个API函数:
FUNCTION ulong FormatMessage(ulong dwFlags,ref Any lpSource,ulong dwMessageId,ulong dwLanguageId,ref string lpBuffer,ulong nSize,ref ulong Arguments) LIBRARY "kernel32.dll" ALIAS FOR "FormatMessageA"
想取得调用ApI函数时的地错误信息.
请高手指点里面各个参数的意思是什么??
FormatMessage
The FormatMessage function formats a message string. The function requires a message definition as input. The message definition can come from a buffer passed into the function. It can come from a message table resource in an already-loaded module. Or the caller can ask the function to search the systems message table resource(s) for the message definition. The function finds the message definition in a message table resource based on a message identifier and a language identifier. The function copies the formatted message text to an output buffer, processing any embedded insert sequences if requested.
DWORD FormatMessage(
DWORD dwFlags, // source and processing options
LPCVOID lpSource, // message source
DWORD dwMessageId, // message identifier
DWORD dwLanguageId, // language identifier
LPTSTR lpBuffer, // message buffer
DWORD nSize, // maximum size of message buffer
va_list *Arguments // array of message inserts
);
Parameters