patria
Junior Member
20 Posts |
Posted - Sep 22 2005 : 5:51:50 PM
|
VA_X Version 10.1.1423.0 built 2005.09.19
Microsoft Platform SDK (Windows Server 2003 SP1) has new header annotations, replacing macros like IN, OUT, OPTIONAL.
For an example, __in_ecount_opt(nCount) in the second parameter informs that the pHandles should have [nCount] handles.
WINUSERAPI DWORD WINAPI MsgWaitForMultipleObjects( __in DWORD nCount, __in_ecount_opt(nCount) CONST HANDLE *pHandles, __in BOOL fWaitAll, __in DWORD dwMilliseconds, __in DWORD dwWakeMask);
VA_X seems to be confused with handling the above declaration.
In the following example:
MyClass::MyFunc() { HANDLE myHandle; DWORD waitResult = MsgWaitForMultipleObjects(1, &myHandle, TRUE,...); }
When I press Ctrl-Shift-Space to pop up function information, at the [n]th position of the parameter:
(1st). Fine. "DWORD nCount" is shown as bold. (2nd). __in_ecount_opt(nCount) is shown as bold. (-->"CONST HANDLE *pHandles" should be) (3rd). Nothing is shown as bold. (--> "BOOL fWaitAll" should be) (4th). __in BOOL fWaitAll is bold (--> "DWORD dwMilliseconds" should be)
I have seen this also in earlier builds also.
|
Edited by - patria on Sep 22 2005 5:52:26 PM |
|