1 ;---------------------------------------------------------------
2 ; This comment block added by the CLR dev team.
4 ; This is a custom autoexp.dat that causes VS2005 to nicely
5 ; pretty-print common CLR data types (MethodDesc, EEClass, etc.)
6 ; in the debugger watch window. For example, instead of
11 ; you will see the more useful
13 ; pString {0x<addr> "Hello" }
18 ; To use this file, replace the autoexp.dat file in your VS
19 ; installation with this one. This file is normally found under
22 ; C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger
24 ; If you have your own custom rules that you don't want messed
25 ; up or you're just healthily paranoid, you can cut and paste
26 ; the CLR-specific section only. The section begins with
28 ; ;---- [BEGIN] CLR-specific autoexps ---------------------------
32 ; ;---- [END] CLR-specific autoexps ---------------------------
34 ; Note that this *must* go into the [AutoExpand] section of the file.
35 ; Don't just append to the end of the file or the debugger won't
40 ;---------------------------------------------------------------
49 ;---------------------------------------------------------------
50 ; AutoExp.Dat - templates for automatically expanding data
51 ; Copyright(c) Microsoft Corporation. All Rights Reserved.
52 ;---------------------------------------------------------------
54 ; While debugging, Data Tips and items in the Watch and Variable
55 ; windows are automatically expanded to show their most important
56 ; elements. The expansion follows the format given by the rules
57 ; in this file. You can add rules for your types or change the
60 ; For good examples, read the rules in this file.
62 ; To find what the debugger considers the type of a variable to
63 ; be, add it to the Watch window and look at the Type column.
65 ; An AutoExpand rule is a line with the name of a type, an equals
66 ; sign, and text with replaceable parts in angle brackets. The
67 ; part in angle brackets names a member of the type and an
68 ; optional Watch format specifier.
70 ; AutoExpand rules use the following syntax. The equals sign (=),
71 ; angle brackets (<>), and comma are taken literally. Square
72 ; brackets ([]) indicate optional items.
74 ; type=[text]<member[,format]>...
76 ; type Name of the type (may be followed by <*> for template
77 ; types such as the ATL types listed below).
79 ; text Any text.Usually the name of the member to display,
80 ; or a shorthand name for the member.
82 ; member Name of a member to display.
84 ; format Watch format specifier. One of the following:
86 ; Letter Description Sample Display
87 ; ------ -------------------------- ------------ -------------
88 ; d,i Signed decimal integer 0xF000F065,d -268373915
89 ; u Unsigned decimal integer 0x0065,u 101
90 ; o Unsigned octal integer 0xF065,o 0170145
91 ; x,X Hexadecimal integer 61541,X 0X0000F065
92 ; l,h long or short prefix for 00406042,hx 0x0c22
94 ; f Signed floating-point 3./2.,f 1.500000
95 ; e Signed scientific-notation 3./2.,e 1.500000e+000
96 ; g Shorter of e and f 3./2.,g 1.5
97 ; c Single character 0x0065,c 'e'
98 ; s Zero-terminated string pVar,s "Hello world"
99 ; su Unicode string pVar,su "Hello world"
101 ; For details of other format specifiers see Help under:
102 ; "format specifiers/watch variable"
104 ; The special format <,t> specifies the name of the most-derived
105 ; type of the object. This is especially useful with pointers or
106 ; references to a base class.
108 ; If there is no rule for a class, the base classes are checked for
111 ; There are some special entries allowed in the AutoExpand section:
112 ; $BUILTIN is used to display more complex types that need to do more
113 ; than just show a member variable or two.
114 ; $ADDIN allows external DLLs to be added to display even more complex
115 ; types via the EE Add-in API. The first argument is the DLL name, the
116 ; second argument is the name of the export from the DLL to use. For
117 ; further information on this API see the sample called EEAddIn.
119 ; WARNING: if hexadecimal mode is on in the watch window, all numbers here are
120 ; evaluated in hex, e.g. 42 becomes 0x42
124 ;---- [BEGIN] CLR-specific autoexps ---------------------------
128 PEFile=<m_pDebugName,su>
129 Module=<m_file->m_pDebugName, su>
130 Assembly=<m_pManifestFile->m_pDebugName,su>
131 ClassLoader=<m_pAssembly->m_pManifestFile->m_pDebugName,su>
132 AssemblySpec=<m_pAssemblyName,s> v<m_context.usMajorVersion,d>.<m_context.usMinorVersion,d>.<m_context.usBuildNumber,d>.<m_context.usRevisionNumber,d> <m_CodeInfo.m_pszCodeBase,su>
134 TypeHandle=<m_asMT->m_pEEClass->m_szDebugClassName,s>
135 ParamTypeDesc=<m_TemplateMT->m_pEEClass->m_szDebugClassName, s>
138 EEClass=<m_szDebugClassName,s>
139 MethodTable=<m_pEEClass->m_szDebugClassName,s>
140 MethodDesc=<m_pszDebugClassName,s>::<m_pszDebugMethodName,s>
141 ReflectMethod=<pMethod->m_pszDebugClassName,s>::<pMethod->m_pszDebugMethodName,s>
142 FieldDesc=<m_pMTOfEnclosingClass->m_pEEClass->m_szDebugClassName,s>::<m_debugName,s>
144 Thread=<m_ThreadId,x>
146 BaseObject=<m_pMethTab->m_pEEClass->m_szDebugClassName,s>
147 Object=<m_pMethTab->m_pEEClass->m_szDebugClassName,s>
148 StringObject=<m_Characters>
149 OBJECTREF= <m_asObj->m_pMethTab->m_pEEClass->m_szDebugClassName,s>
150 REF<StringObject>=<m_asString->m_Characters>
151 REF<*>= <m_asObj->m_pMethTab->m_pEEClass->m_szDebugClassName,s>
153 ; SStrings are annoying because their internal buffer can be in either
154 ; unicode or ansi depending on the code path. Thus, this rule attempts
155 ; to print it both ways. We will do the ascii attempt first as it's
156 ; less likely to produce verbose garbage (usually, it'll print just the
159 ; So the typical output you'll see is...
161 ; {"A"/"ABCD"} ; sbuffer is using unicode representation
162 ; {"ABCD"/"<square boxes>"} ; sbuffer was using ansi representation
164 ; The rule below also kicks in as desired for StackSString and InlineSString.
166 SString =<m_buffer, s>|<m_buffer, su>
169 HolderBase<*>=<m_value>
171 NATIVE_BINDER_SPACE::IEntry=<_tag,su>
172 HolderBase<NATIVE_BINDER_SPACE::IEntry *>=<m_value> <m_value->_tag,su>
173 HolderBase<NATIVE_BINDER_SPACE::CILEntry *>=<m_value> <m_value->_tag,su>
174 HolderBase<NATIVE_BINDER_SPACE::CNgenEntry *>=<m_value> <m_value->_tag,su>
176 NATIVE_BINDER_SPACE::CILEntryBind=<_pILEntry->_tag,su>
177 HolderBase<NATIVE_BINDER_SPACE::CILEntryBind *>=<m_value> <m_value->_pILEntry->_tag,su>
179 NATIVE_BINDER_SPACE::CNgenEntryBind=<_pNgenEntry->_tag,su>
180 HolderBase<NATIVE_BINDER_SPACE::CNgenEntryBind *>=<m_value> <m_value->_pNgenEntry->_tag,su>
182 NATIVE_BINDER_SPACE::CDependencyEntry=<_pEntry->_tag,su>
183 HolderBase<NATIVE_BINDER_SPACE::CDependencyEntry *>=<m_value> <m_value->_pEntry->_tag,su>
185 CAssemblyName=<_rProp._rProp[3].asStr>
186 HolderBase<CAssemblyName *>=<m_value->_rProp._rProp[3].asStr>
187 HolderBase<IAssemblyName *>=<m_pAutoExpVisibleValue->_asCAssemblyName->_rProp._rProp[3].asStr>
189 BindResult=<m_tag,su>
190 HolderBase<BindResult *>=<m_value->m_tag,su>
191 HolderBase<IBindResult *>=<m_pAutoExpVisibleValue->_asBindResult->m_tag,su>
193 AssemblyLocation=<m_pwzAssemblyPath>
194 HolderBase<AssemblyLocation *>=<m_value->m_pwzAssemblyPath>
195 HolderBase<IAssemblyLocation *>=<m_pAutoExpVisibleValue->_asAssemblyLocation->m_pwzAssemblyPath>
198 ;---- [END] CLR-specific autoexps ---------------------------
206 tagPOINT =x=<x> y=<y>
207 tagRECT =top=<top> bottom=<bottom> left=<left> right=<right>
210 tagMSG =msg=<message,x> wp=<wParam,x> lp=<lParam,x>
214 __m128=$BUILTIN(M128)
215 __m128i=$BUILTIN(M128I)
216 __m128d=$BUILTIN(M128D)
219 CDC =hDC=<m_hDC> attrib=<m_hAttribDC>
220 CPaintDC =<,t> hWnd=<m_hWnd>
222 CRect =top=<top> bottom=<bottom> left=<left> right=<right>
223 CSize =cx=<cx> cy=<cy>
224 CWnd =<,t> hWnd=<m_hWnd>
225 CWinApp =<,t> <m_pszAppName,s>
226 CWinThread =<,t> h=<m_hThread> proc=<m_pfnThreadProc>
229 CPtrList =cnt=<m_nCount>
232 CProcessLocalObject =<,t>
233 CThreadLocalObject =<,t>
236 CArchiveException =cause=<m_cause>
237 CFile =hFile=<m_hFile> name=<m_strFileName.m_pchData,s>
238 CFileException =cause=<m_cause> OS Error=m_lOsError
239 CMemFile =pos=<m_nPosition> size=<m_nFileSize>
241 CRuntimeClass =<m_lpszClassName,s>
242 CStdioFile =FILE*=<m_pStream> name=<m_strFilename.m_pchData,s>
243 CTimeSpan =time=<m_time>
247 CByteArray =count=<m_nCount>
248 CStringList =count=<m_nCount>
249 ; same for all CXXXArray classes
251 ; same for CMapXXToXX
253 ; various string classes from MFC & ATL
255 _com_error=<m_hresult,hr>
256 _bstr_t=<m_Data->m_wstr,su> (<m_Data->m_RefCount,u>)
257 _com_ptr_t<*>=<m_pInterface>
258 _LARGE_INTEGER=<QuadPart>
259 _ULARGE_INTEGER=<QuadPart>
262 ATL::CComQIPtr<*>=<p>
264 tagVARIANT=$BUILTIN(VARIANT)
265 VARIANT=$BUILTIN(VARIANT)
268 ; see EEAddIn sample for how to use these
269 ;_SYSTEMTIME=$ADDIN(EEAddIn.dll,AddIn_SystemTime)
270 ;_FILETIME=$ADDIN(EEAddIn.dll,AddIn_FileTime)
272 std::binder1st<*>= op=<op> value=<value>
273 std::binder2nd<*>= op=<op> value=<value>
274 std::less<*>=lessthan
275 std::greater<*>=greaterthan
278 ; This section contains visualizers for STL and ATL containers
283 ATL::CStringT<char,*>|CSimpleStringT<char,*>|ATL::CSimpleStringT<char,*>{
284 preview([$c.m_pszData,s])
285 stringview([$c.m_pszData,sb])
288 ATL::CStringT<wchar_t,*>|CSimpleStringT<wchar_t,*>|ATL::CSimpleStringT<wchar_t,*>|ATL::CStringT<unsigned short,*>|CSimpleStringT<unsigned short,*>|ATL::CSimpleStringT<unsigned short,*>{
289 preview([$c.m_pszData,su])
290 stringview([$c.m_pszData,sub])
294 preview([$c.m_str,su])
295 stringview([$c.m_str,sub])
299 ;------------------------------------------------------------------------------
300 ; std::vector<bool,*> specialization
301 ;------------------------------------------------------------------------------
308 expr : ($c._Myvec._Myfirst[$i / _VBITS] >> ($i % _VBITS)),
321 expr : ($c._Myvec._Myfirst[$i / _VBITS] >> ($i % _VBITS)),
323 ) : (bool)($e & 1), ")")
327 std::vector<bool,*>::iterator|std::vector<bool,*>::const_iterator|std::_Vb_iterator<*>|std::_Vb_const_iterator<*>{
331 (bool) (((*$e._Myptr) >> $e._Myoff) & 1)
338 ptr: (bool) (((*$e._Myptr) >> $e._Myoff) & 1)
346 ;------------------------------------------------------------------------------
348 ;------------------------------------------------------------------------------
354 expr : ($c._Myfirst)[$i],
355 size : $c._Mylast-$c._Myfirst
363 $e._Mylast - $e._Myfirst ,
368 expr : ($c._Myfirst)[$i],
369 size : $c._Mylast-$c._Myfirst
378 std::_Vector_iterator<*>|std::_Vector_const_iterator<*>{
392 ;------------------------------------------------------------------------------
393 ; std::string/basic_string
394 ;------------------------------------------------------------------------------
396 std::basic_string<char,*>{
399 #if(($e._Myres) < ($e._BUF_SIZE))
411 #if(($e._Myres) < ($e._BUF_SIZE))
423 #if(($e._Myres) < ($e._BUF_SIZE))
425 #([actual members]: [$e,!] , #array( expr: $e._Bx._Buf[$i], size: $e._Mysize))
429 #([actual members]: [$e,!], #array( expr: $e._Bx._Ptr[$i], size: $e._Mysize))
435 std::basic_string<unsigned short,*>|std::basic_string<wchar_t,*>{
438 #if(($e._Myres) < ($e._BUF_SIZE)) ( [$e._Bx._Buf,su] )
439 #else ( [$e._Bx._Ptr,su] )
444 #if(($e._Myres) < ($e._BUF_SIZE)) ( [$e._Bx._Buf,sub] )
445 #else ( [$e._Bx._Ptr,sub] )
450 #if(($e._Myres) < ($e._BUF_SIZE))
452 #([actual members]: [$e,!] , #array( expr: $e._Bx._Buf[$i], size: $e._Mysize))
456 #([actual members]: [$e,!], #array( expr: $e._Bx._Ptr[$i], size: $e._Mysize))
461 std::basic_string<*>::iterator|std::basic_string<*>::const_iterator|std::_String_iterator<*>|std::_String_const_iterator<*>{
486 ;------------------------------------------------------------------------------
488 ;------------------------------------------------------------------------------
494 (*(($T1 *)$c._Myptr))
500 ptr: (*(($T1 *)$c._Myptr))
505 ;------------------------------------------------------------------------------
507 ;------------------------------------------------------------------------------
514 head : $c._Myhead->_Parent,
531 head : $c._Myhead->_Parent,
543 ;------------------------------------------------------------------------------
545 ;------------------------------------------------------------------------------
552 head : $c._Myhead->_Parent,
569 head : $c._Myhead->_Parent,
582 ;------------------------------------------------------------------------------
584 ;------------------------------------------------------------------------------
592 head : $c._Myhead->_Next,
607 head : $c._Myhead->_Next,
617 std::list<*>::iterator|std::list<*>::const_iterator|std::list<*>::_Iterator<1>|std::list<*>::_Const_iterator<1>{
625 #(ptr: $e._Ptr->_Myval)
631 ;------------------------------------------------------------------------------
632 ; std::bitset <bitset>
633 ;------------------------------------------------------------------------------
644 expr : ($c._Array[$i / $c._Bitsperword] >> ($i % $c._Bitsperword)),
654 expr : ($c._Array[$i / $c._Bitsperword] >> ($i % $c._Bitsperword)),
659 std::bitset<*>::reference{
663 "bitset[", $e._Mypos, "] = ",
664 (bool)(($e._Pbitset->_Array[$i / _Bitsperword] >> ($e._Mypos % _Bitsperword)) & 1)
669 ;------------------------------------------------------------------------------
671 ;------------------------------------------------------------------------------
678 expr : $c._Map[ (($i + $c._Myoff) / $c._EEN_DS) % $c._Mapsize][($i + $c._Myoff) % $c._EEN_DS],
692 expr : $c._Map[ (($i + $c._Myoff) / $c._EEN_DS) % $c._Mapsize][($i + $c._Myoff) % $c._EEN_DS],
701 std::deque<*,*>::iterator|std::_Deque_iterator<*,*,*>|std::_Deque_const_iterator<*,*,*>{
704 #if( $e._Myoff >= ((std::deque<$T1,$T2 > *)$c._Mycont)->_Myoff + ((std::deque<$T1,$T2 > *)$c._Mycont)->_Mysize)
711 $e._Myoff - ((std::deque<$T1,$T2 > *)$c._Mycont)->_Myoff,
713 ((std::deque<$T1,$T2 > *)$c._Mycont)->_Map[ (($c._Myoff) / ((std::deque<$T1,$T2 > *)$c._Mycont)->_EEN_DS) % ((std::deque<$T1,$T2 > *)$c._Mycont)->_Mapsize][$c._Myoff % ((std::deque<$T1,$T2 > *)$c._Mycont)->_EEN_DS]
719 #if( ((std::deque<$T1,$T2 > *)$c._Mycont)->_Myoff + ((std::deque<$T1,$T2 > *)$c._Mycont)->_Mysize > $e._Myoff)
722 ptr: ((std::deque<$T1,$T2 > *)$c._Mycont)->_Map[ ($c._Myoff / ((std::deque<$T1,$T2 > *)$c._Mycont)->_EEN_DS) % ((std::deque<$T1,$T2 > *)$c._Mycont)->_Mapsize][$c._Myoff % ((std::deque<$T1,$T2 > *)$c._Mycont)->_EEN_DS]
728 ;------------------------------------------------------------------------------
730 ;------------------------------------------------------------------------------
737 expr : $c.c._Map[ (($i + $c.c._Myoff) / $c.c._EEN_DS) % $c.c._Mapsize][($i + $c.c._Myoff) % $c.c._EEN_DS],
751 expr : $c.c._Map[ (($i + $c.c._Myoff) / $c.c._EEN_DS) % $c.c._Mapsize][($i + $c.c._Myoff) % $c.c._EEN_DS],
761 ;------------------------------------------------------------------------------
762 ; std::priority_queue
763 ;------------------------------------------------------------------------------
765 std::priority_queue<*>{
772 ;------------------------------------------------------------------------------
774 ;------------------------------------------------------------------------------
786 head : $c._Myhead->_Parent,
801 head : $c._Myhead->_Parent,
810 ;------------------------------------------------------------------------------
812 ;------------------------------------------------------------------------------
824 head : $c._Myhead->_Parent,
839 head : $c._Myhead->_Parent,
849 ;------------------------------------------------------------------------------
850 ; std::_Tree (shared my map/multimap/set/multiset)
851 ;------------------------------------------------------------------------------
853 std::_Tree<*>::iterator|std::_Tree<*>::const_iterator{
861 #(ptr: $e._Ptr->_Myval)
868 ;------------------------------------------------------------------------------
870 ;------------------------------------------------------------------------------
877 expr : $c.c._Map[ (($i + $c.c._Myoff) / $c.c._EEN_DS) % $c.c._Mapsize][($i + $c.c._Myoff) % $c.c._EEN_DS],
891 expr : $c.c._Map[ (($i + $c.c._Myoff) / $c.c._EEN_DS) % $c.c._Mapsize][($i + $c.c._Myoff) % $c.c._EEN_DS],
900 ;------------------------------------------------------------------------------
902 ; stdext::hash_multimap
904 ; stdext::hash_multiset
905 ;------------------------------------------------------------------------------
907 stdext::hash_map<*>|stdext::hash_multimap<*>|stdext::hash_set<*>|stdext::hash_multiset<*>{
918 head : $c._List._Myhead->_Next,
919 size : $c._List._Mysize,
932 head : $c._List._Myhead->_Next,
933 size : $c._List._Mysize,
939 ;------------------------------------------------------------------------------
941 ;------------------------------------------------------------------------------
948 imaginary: $e._Val[1]
955 #if ($e._Val[0] != 0)
956 ( ; Real and Imaginary components
957 #if ($e._Val[1] >= 0)
959 #($e._Val[0],"+i*", $e._Val[1])
963 #($e._Val[0],"-i*", -$e._Val[1])
968 #if ($e._Val[1] >= 0.0)
974 #("-i*", -$e._Val[1])
985 ;------------------------------------------------------------------------------
987 ;------------------------------------------------------------------------------
999 expr : ($c._Myptr)[$i],
1011 expr : ($c._Myptr)[$i],
1017 ;------------------------------------------------------------------------------
1019 ;------------------------------------------------------------------------------
1021 ; Visualizers for VT_VECTOR C arrays
1022 tagCAC|tagCAUB|tagCAI|tagCAUI|tagCAL|tagCAUL|tagCAFLT|tagCADBL|tagCACY|tagCADATE|tagCABSTR|tagCABSTRBLOB|tagCABOOL|tagCASCODE|tagCAPROPVARIANT|tagCAH|tagCAUH|tagCALPSTR|tagCALPWSTR|tagCAFILETIME|tagCACLIPDATA|tagCACLSID{
1031 expr : ($c.pElems)[$i],
1042 expr : ($c.pElems)[$i],
1049 ; Visualizers for SAFE ARRAY
1050 tagSAFEARRAY|SAFEARRAY{
1052 #if ($c.fFeatures & 0x0080) ; FADF_HAVEVARTYPE
1055 ; Switch on the variant type field - which is stored 4 bytes
1056 ; before the beginning of the SAFEARRAY type
1058 #switch( ((unsigned *)&($c))[-1] )
1059 #case 0x2 ; VT_I2 | VT_ARRAY
1062 "safearray of I2 = [",
1064 ; output the rank array
1065 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1069 ; output the data elements
1071 expr: ((signed short *)$c.pvData)[$i],
1072 size: $c.rgsabound[$r].cElements,
1074 base: $c.rgsabound[$r].lLbound
1080 #case 0x3 ; VT_I4 | VT_ARRAY
1083 "safearray of I4 = [",
1085 ; output the rank array
1086 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1090 ; output the data elements
1092 expr: ((signed int *)$c.pvData)[$i],
1093 size: $c.rgsabound[$r].cElements,
1095 base: $c.rgsabound[$r].lLbound
1101 #case 0x4 ; VT_R4 | VT_ARRAY
1104 "safearray of R4 = [",
1106 ; output the rank array
1107 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1111 ; output the data elements
1113 expr: ((float *)$c.pvData)[$i],
1114 size: $c.rgsabound[$r].cElements,
1116 base: $c.rgsabound[$r].lLbound
1122 #case 0x5 ; VT_R8 | VT_ARRAY
1125 "safearray of R8 = [",
1127 ; output the rank array
1128 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1132 ; output the data elements
1134 expr: ((double *)$c.pvData)[$i],
1135 size: $c.rgsabound[$r].cElements,
1137 base: $c.rgsabound[$r].lLbound
1143 #case 0x6 ; VT_CY | VT_ARRAY
1146 "safearray of CY = [",
1148 ; output the rank array
1149 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1153 ; output the data elements
1155 expr: ((CY *)$c.pvData)[$i],
1156 size: $c.rgsabound[$r].cElements,
1158 base: $c.rgsabound[$r].lLbound
1164 #case 0x7 ; VT_DATE | VT_ARRAY
1167 "safearray of DATE = [",
1169 ; output the rank array
1170 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1174 ; output the data elements
1176 expr: ((DATE *)$c.pvData)[$i],
1177 size: $c.rgsabound[$r].cElements,
1179 base: $c.rgsabound[$r].lLbound
1185 #case 0x8 ; VT_BSTR | VT_ARRAY
1188 "safearray of BSTR = [",
1190 ; output the rank array
1191 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1195 ; output the data elements
1197 expr: ((wchar_t **)$c.pvData)[$i],
1198 size: $c.rgsabound[$r].cElements,
1200 base: $c.rgsabound[$r].lLbound
1206 #case 0xa ; VT_ERROR | VT_ARRAY
1209 "safearray of ERROR = [",
1211 ; output the rank array
1212 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1216 ; output the data elements
1218 expr: ((long *)$c.pvData)[$i],
1219 size: $c.rgsabound[$r].cElements,
1221 base: $c.rgsabound[$r].lLbound
1227 #case 0xb ; VT_BOOL | VT_ARRAY
1230 "safearray of BOOL = [",
1232 ; output the rank array
1233 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1237 ; output the data elements
1239 expr: ((short *)$c.pvData)[$i],
1240 size: $c.rgsabound[$r].cElements,
1242 base: $c.rgsabound[$r].lLbound
1248 #case 0xc ; VT_VARIANT | VT_ARRAY
1251 "safearray of VARIANT = [",
1253 ; output the rank array
1254 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1258 ; output the data elements
1260 expr: ((tagVARIANT *)$c.pvData)[$i],
1261 size: $c.rgsabound[$r].cElements,
1263 base: $c.rgsabound[$r].lLbound
1269 #case 0x10 ; VT_I1 | VT_ARRAY
1272 "safearray of I1 = [",
1274 ; output the rank array
1275 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1279 ; output the data elements
1281 expr: ((signed char *)$c.pvData)[$i],
1282 size: $c.rgsabound[$r].cElements,
1284 base: $c.rgsabound[$r].lLbound
1290 #case 0x11 ; VT_UI1 | VT_ARRAY
1293 "safearray of UI1 = [",
1295 ; output the rank array
1296 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1300 ; output the data elements
1302 expr: ((unsigned char *)$c.pvData)[$i],
1303 size: $c.rgsabound[$r].cElements,
1305 base: $c.rgsabound[$r].lLbound
1311 #case 0x12 ; VT_UI2 | VT_ARRAY
1314 "safearray of UI2 = [",
1316 ; output the rank array
1317 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1321 ; output the data elements
1323 expr: ((unsigned short *)$c.pvData)[$i],
1324 size: $c.rgsabound[$r].cElements,
1326 base: $c.rgsabound[$r].lLbound
1332 #case 0x13 ; VT_UI4 | VT_ARRAY
1335 "safearray of UI4 = [",
1337 ; output the rank array
1338 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1342 ; output the data elements
1344 expr: ((unsigned int *)$c.pvData)[$i],
1345 size: $c.rgsabound[$r].cElements,
1347 base: $c.rgsabound[$r].lLbound
1353 #case 0x14 ; VT_I8 | VT_ARRAY
1356 "safearray of I8 = [",
1358 ; output the rank array
1359 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1363 ; output the data elements
1365 expr: ((signed __int64 *)$c.pvData)[$i],
1366 size: $c.rgsabound[$r].cElements,
1368 base: $c.rgsabound[$r].lLbound
1374 #case 0x15 ; VT_UI8 | VT_ARRAY
1377 "safearray of UI8 = [",
1379 ; output the rank array
1380 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1384 ; output the data elements
1386 expr: ((unsigned __int64 *)$c.pvData)[$i],
1387 size: $c.rgsabound[$r].cElements,
1389 base: $c.rgsabound[$r].lLbound
1395 #case 0x16 ; VT_INT | VT_ARRAY
1398 "safearray of INT = [",
1400 ; output the rank array
1401 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1405 ; output the data elements
1407 expr: ((int *)$c.pvData)[$i],
1408 size: $c.rgsabound[$r].cElements,
1410 base: $c.rgsabound[$r].lLbound
1416 #case 0x17 ; VT_UINT | VT_ARRAY
1419 "safearray of UINT = [",
1421 ; output the rank array
1422 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1426 ; output the data elements
1428 expr: ((unsigned *)$c.pvData)[$i],
1429 size: $c.rgsabound[$r].cElements,
1431 base: $c.rgsabound[$r].lLbound
1437 #case 0x1e ; VT_LPSTR | VT_ARRAY
1440 "safearray of LPSTR = [",
1442 ; output the rank array
1443 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1447 ; output the data elements
1449 expr: ((char **)$c.pvData)[$i],
1450 size: $c.rgsabound[$r].cElements,
1452 base: $c.rgsabound[$r].lLbound
1458 #case 0x1f ; VT_LPWSTR | VT_ARRAY
1461 "safearray of LPWSTR = [",
1463 ; output the rank array
1464 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1468 ; output the data elements
1470 expr: ((wchar_t **)$c.pvData)[$i],
1471 size: $c.rgsabound[$r].cElements,
1473 base: $c.rgsabound[$r].lLbound
1479 #case 0x40 ; VT_FILETIME | VT_ARRAY
1482 "safearray of FILETIME = [",
1484 ; output the rank array
1485 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1489 ; output the data elements
1491 expr: ((FILETIME *)$c.pvData)[$i],
1492 size: $c.rgsabound[$r].cElements,
1494 base: $c.rgsabound[$r].lLbound
1500 #case 0x47 ; VT_CLIPDATA | VT_ARRAY
1503 "safearray of CLIPDATA = [",
1505 ; output the rank array
1506 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1510 ; output the data elements
1512 expr: ((CLIPDATA *)$c.pvData)[$i],
1513 size: $c.rgsabound[$r].cElements,
1515 base: $c.rgsabound[$r].lLbound
1521 #case 0x48 ; VT_CLSID | VT_ARRAY
1524 "safearray of CLSID = [",
1526 ; output the rank array
1527 #array( expr: $c.rgsabound[$i].cElements, size: $c.cDims),
1531 ; output the data elements
1533 expr: ((CLSID *)$c.pvData)[$i],
1534 size: $c.rgsabound[$r].cElements,
1536 base: $c.rgsabound[$r].lLbound
1542 #elif ($c.fFeatures & 0x0100) ; FADF_BSTR
1544 #("safearray of BSTR = ",#array(expr: $c.rgsabound[$i].cElements, size: $c.cDims) : #("[",$e,"]"), "(", #array(expr: ((wchar_t * *)$c.pvData)[$i], size: $c.rgsabound[$r].cElements, rank: $c.cDims, base: $c.rgsabound[$r].lLbound ), ")")
1546 #elif ($c.fFeatures & 0x0200) ; FADF_UNKNOWN
1548 #("safearray of IUnknown* = ",#array(expr: $c.rgsabound[$i].cElements, size: $c.cDims) : #("[",$e,"]"), "(", #array(expr: ((IUnknown *)$c.pvData)[$i], size: $c.rgsabound[$r].cElements, rank: $c.cDims, base: $c.rgsabound[$r].lLbound ), ")")
1550 #elif ($c.fFeatures & 0x0400) ; FADF_DISPATCH
1552 #("safearray of IDispatch* = ",#array(expr: $c.rgsabound[$i].cElements, size: $c.cDims) : #("[",$e,"]"), "(", #array(expr: ((IDispatch*)$c.pvData)[$i], size: $c.rgsabound[$r].cElements, rank: $c.cDims, base: $c.rgsabound[$r].lLbound ), ")")
1554 #elif ($c.fFeatures & 0x0800) ; FADF_VARIANT
1556 #("safearray of VARIANT = ",#array(expr: $c.rgsabound[$i].cElements, size: $c.cDims) : #("[",$e,"]"), "(", #array(expr: ((tagVARIANT *)$c.pvData)[$i], size: $c.rgsabound[$r].cElements, rank: $c.cDims, base: $c.rgsabound[$r].lLbound ), ")")
1560 #( ;[actual members]: [$c,!],
1561 #if ($c.fFeatures & 0x0080) ; FADF_HAVEVARTYPE
1563 #switch( ((unsigned *)&($c))[-1] ) ; for some reason the VT field is before the SAFEARRAY struct
1564 #case 2 ; VT_I2|VT_ARRAY
1567 expr: ((signed short *)$c.pvData)[$i],
1568 size: $c.rgsabound[$r].cElements,
1570 base: $c.rgsabound[$r].lLbound
1574 #case 3 ; VT_I4|VT_ARRAY
1577 expr: ((signed int *)$c.pvData)[$i],
1578 size: $c.rgsabound[$r].cElements,
1580 base: $c.rgsabound[$r].lLbound
1584 #case 4 ; VT_R4|VT_ARRAY
1587 expr: ((float *)$c.pvData)[$i],
1588 size: $c.rgsabound[$r].cElements,
1590 base: $c.rgsabound[$r].lLbound
1594 #case 5 ; VT_R8|VT_ARRAY
1597 expr: ((double *)$c.pvData)[$i],
1598 size: $c.rgsabound[$r].cElements,
1600 base: $c.rgsabound[$r].lLbound
1604 #case 0x10 ; VT_I1|VT_ARRAY
1607 expr: ((signed char *)$c.pvData)[$i],
1608 size: $c.rgsabound[$r].cElements,
1610 base: $c.rgsabound[$r].lLbound
1614 #case 0x11 ; VT_UI1|VT_ARRAY
1617 expr: ((unsigned char *)$c.pvData)[$i],
1618 size: $c.rgsabound[$r].cElements,
1620 base: $c.rgsabound[$r].lLbound
1624 #case 0x12 ; VT_UI2|VT_ARRAY
1627 expr: ((unsigned short *)$c.pvData)[$i],
1628 size: $c.rgsabound[$r].cElements,
1630 base: $c.rgsabound[$r].lLbound
1634 #case 0x13 ; VT_UI4|VT_ARRAY
1637 expr: ((unsigned int *)$c.pvData)[$i],
1638 size: $c.rgsabound[$r].cElements,
1640 base: $c.rgsabound[$r].lLbound
1644 #case 0x14 ; VT_I8|VT_ARRAY
1647 expr: ((signed __int64 *)$c.pvData)[$i],
1648 size: $c.rgsabound[$r].cElements,
1650 base: $c.rgsabound[$r].lLbound
1653 #case 0x15 ; VT_UI8|VT_ARRAY
1656 expr: ((unsigned __int64 *)$c.pvData)[$i],
1657 size: $c.rgsabound[$r].cElements,
1659 base: $c.rgsabound[$r].lLbound
1663 #case 0x1e ; VT_LPSTR|VT_ARRAY
1666 expr: ((char * *)$c.pvData)[$i],
1667 size: $c.rgsabound[$r].cElements,
1669 base: $c.rgsabound[$r].lLbound
1673 #case 0x1f ; VT_LPWSTR|VT_ARRAY
1676 expr: ((wchar_t **)$c.pvData)[$i],
1677 size: $c.rgsabound[$r].cElements,
1679 base: $c.rgsabound[$r].lLbound
1683 #case 0xc ; VT_VARIANT|VT_ARRAY
1686 expr: ((tagVARIANT *)$c.pvData)[$i],
1687 size: $c.rgsabound[$r].cElements,
1689 base: $c.rgsabound[$r].lLbound
1694 #case 0xb ; VT_BOOL|VT_ARRAY
1697 expr: ((short *)$c.pvData)[$i],
1698 size: $c.rgsabound[$r].cElements,
1700 base: $c.rgsabound[$r].lLbound
1704 #case 0xa ; VT_ERROR|VT_ARRAY
1707 expr: ((long *)$c.pvData)[$i],
1708 size: $c.rgsabound[$r].cElements,
1710 base: $c.rgsabound[$r].lLbound
1714 #case 6 ; VT_CY|VT_ARRAY
1717 expr: ((CY *)$c.pvData)[$i],
1718 size: $c.rgsabound[$r].cElements,
1720 base: $c.rgsabound[$r].lLbound
1724 #case 7 ; VT_DATE|VT_ARRAY
1727 expr: ((DATE *)$c.pvData)[$i],
1728 size: $c.rgsabound[$r].cElements,
1730 base: $c.rgsabound[$r].lLbound
1734 #case 0x40 ; VT_FILETIME|VT_ARRAY
1737 expr: ((FILETIME *)$c.pvData)[$i],
1738 size: $c.rgsabound[$r].cElements,
1740 base: $c.rgsabound[$r].lLbound
1744 #case 0x48 ; VT_CLSID|VT_ARRAY
1747 expr: ((CLSID *)$c.pvData)[$i],
1748 size: $c.rgsabound[$r].cElements,
1750 base: $c.rgsabound[$r].lLbound
1754 #case 0x47 ; VT_CF|VT_ARRAY
1757 expr: ((CLIPDATA *)$c.pvData)[$i],
1758 size: $c.rgsabound[$r].cElements,
1760 base: $c.rgsabound[$r].lLbound
1764 #case 8 ; VT_BSTR|VT_ARRAY
1767 expr: ((wchar_t * *)$c.pvData)[$i],
1768 size: $c.rgsabound[$r].cElements,
1770 base: $c.rgsabound[$r].lLbound
1774 #case 0x16 ; VT_INT|VT_ARRAY
1777 expr: ((int *)$c.pvData)[$i],
1778 size: $c.rgsabound[$r].cElements,
1780 base: $c.rgsabound[$r].lLbound
1784 #case 0x17 ; VT_UINT|VT_ARRAY
1787 expr: ((unsigned int*)$c.pvData)[$i],
1788 size: $c.rgsabound[$r].cElements,
1790 base: $c.rgsabound[$r].lLbound
1796 #([actual members]: [$e,!])
1800 #([actual members]: [$e,!])
1803 #elif ($c.fFeatures & 0x0100) ; FADF_BSTR
1805 #array(expr: ((wchar_t * *)$c.pvData)[$i], size: $c.rgsabound[$r].cElements, rank: $c.cDims, base: $c.rgsabound[$r].lLbound )
1807 #elif ($c.fFeatures & 0x0200) ; FADF_UNKNOWN
1809 #array(expr: ((IUnknown *)$c.pvData)[$i], size: $c.rgsabound[$r].cElements, rank: $c.cDims, base: $c.rgsabound[$r].lLbound )
1811 #elif ($c.fFeatures & 0x0400) ; FADF_DISPATCH
1813 #array(expr: ((IDispatch *)$c.pvData)[$i], size: $c.rgsabound[$r].cElements, rank: $c.cDims, base: $c.rgsabound[$r].lLbound )
1815 #elif ($c.fFeatures & 0x0800) ; FADF_VARIANT
1817 #array(expr: ((tagVARIANT *)$c.pvData)[$i], size: $c.rgsabound[$r].cElements, rank: $c.cDims, base: $c.rgsabound[$r].lLbound )
1823 tagPROPVARIANT|tagVARIANT|PROPVARIANT|VARIANT{
1826 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1828 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1829 #case 0 ( #("Empty") ) ; VT_EMPTY
1830 #case 1 ( #("NULL") ) ; VT_NULL
1831 #case 2 ( #("I2 = ", $e.iVal) ) ; VT_I2
1832 #case 3 ( #("I4 = ", $e.lVal) ) ; VT_I4
1833 #case 4 ( #("R4 = ", $e.fltVal) ) ; VT_R4
1834 #case 5 ( #("R8 = ", $e.dblVal) ) ; VT_R8
1835 #case 6 ( #("CY = ", $e.cyVal) ) ; VT_CY
1836 #case 7 ( #("DATE = ", $e.date) ) ; VT_DATE
1837 #case 8 ( #("BSTR = ", $e.bstrVal) ) ; VT_BSTR
1838 #case 9 ( #("DISPATCH = ", $e.pdispVal) ) ; VT_DISPATCH
1839 #case 10 ( #("ERROR = ", $e.scode) ) ; VT_ERROR
1840 #case 0xB ( #("BOOL = ", $e.boolVal) ) ; VT_BOOL
1841 #case 0xC ( #("VARIANT ") ) ; VT_VARIANT
1842 #case 0xD ( #("UNKNOWN = ", $e.punkVal) ) ; VT_UNKNOWN
1843 #case 0xE ( #("DECIMAL = ", $e.hVal) ) ; VT_DECIMAL
1844 #case 0x10 ( #("I1 = ", $e.cVal) ) ; VT_I1
1845 #case 0x11 ( #("UI1 = ", $e.bVal) ) ; VT_UI1
1846 #case 0x12 ( #("UI2 = ", $e.uiVal) ) ; VT_UI2
1847 #case 0x13 ( #("UI4 = ", $e.ulVal) ) ; VT_UI4
1848 #case 0x14 ( #("I8 = ", $e.hVal) ) ; VT_I8
1849 #case 0x15 ( #("UI8 = ", $e.uhVal) ) ; VT_UI8
1850 #case 0x16 ( #("INT = ", $e.intVal) ) ; VT_INT
1851 #case 0x17 ( #("UINT = ", $e.uintVal) ) ; VT_UINT
1852 #case 0x18 ( #("VOID ") ) ; VT_VOID
1853 #case 0x19 ( #("HRESULT ") ) ; VT_HRESULT
1854 #case 0x1A ( #("PTR ") ) ; VT_PTR
1855 #case 0x1B ( #("SAFEARRAY ") ) ; VT_SAFEARRAY
1856 #case 0x1C ( #("CARRAY ") ) ; VT_CARRAY
1857 #case 0x1D ( #("USERDEFINED ") ) ; VT_USERDEFINED
1858 #case 0x1E ( #("LPSTR = ", $e.pszVal) ) ; VT_LPSTR
1859 #case 0x1F ( #("LPWSTR = ", $e.pwszVal) ) ; VT_LPWSTR
1860 #case 0x24 ( #("RECORD ") ) ; VT_RECORD
1861 #case 0x26 ( #("UINT_PTR ") ) ; VT_UINT_PTR
1862 #case 0x40 ( #("FILETIME = ", $e.filetime) ) ; VT_FILETIME
1863 #case 0x42 ( #("STREAM = ", $e.pStream) ) ; VT_STREAM
1864 #case 0x43 ( #("STORAGE = ", $e.pStorage) ) ; VT_STORAGE
1865 #case 0x44 ( #("STREAMED_OBJECT = ", $e.pStream) ) ; VT_STREAMED_OBJECT
1866 #case 0x45 ( #("STORED_OBJECT = ", $e.pStorage) ) ; VT_STORED_OBJECT
1867 #case 0x46 ( #("BLOB_OBJECT = ", $e.blob ) ) ; VT_BLOB_OBJECT
1868 #case 0x47 ( #("CF = ", $e.pclipdata) ) ; VT_CF
1869 #case 0x48 ( #("CLSID = ", $e.puuid) ) ; VT_CLSID
1870 #case 0x49 ( #("VERSIONED_STREAM = ", $e.pVersionedStream) ) ; VT_VERSIONED_STREAM
1872 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1874 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1875 #case 0x1002 ( #("vector of I2 = ", $e.cai) ) ; VT_I2|VT_VECTOR
1876 #case 0x1003 ( #("vector of I4 = ", $e.cal) ) ; VT_I4|VT_VECTOR
1877 #case 0x1004 ( #("vector of R4 = ", $e.caflt) ) ; VT_R4|VT_VECTOR
1878 #case 0x1005 ( #("vector of R8 = ", $e.cadbl) ) ; VT_R8|VT_VECTOR
1879 #case 0x1010 ( #("vector of I1 = ", $e.cac) ) ; VT_I1|VT_VECTOR
1880 #case 0x1011 ( #("vector of UI1 = ", $e.caub) ) ; VT_UI1|VT_VECTOR
1881 #case 0x1012 ( #("vector of UI2 = ", $e.caui) ) ; VT_UI2|VT_VECTOR
1882 #case 0x1013 ( #("vector of UI4 = ", $e.caul) ) ; VT_UI4|VT_VECTOR
1883 #case 0x1014 ( #("vector of I8 = ", $e.cah) ) ; VT_I8|VT_VECTOR
1884 #case 0x1015 ( #("vector of UI8 = ", $e.cauh) ) ; VT_UI8|VT_VECTOR
1885 #case 0x101E ( #("vector of LPSTR = ", $e.calpstr) ) ; VT_LPSTR|VT_VECTOR
1886 #case 0x101F ( #("vector of LPWSTR = ", $e.calpwstr) ) ; VT_LPWSTR|VT_VECTOR
1887 #case 0x100C ( #("vector of VARIANT ", $e.capropvar) ) ; VT_VARIANT|VT_VECTOR
1888 #case 0x100B ( #("vector of BOOL = ", $e.cabool) ) ; VT_BOOL|VT_VECTOR
1889 #case 0x100A ( #("vector of ERROR = ", $e.cascode) ) ; VT_ERROR|VT_VECTOR
1890 #case 0x1006 ( #("vector of CY = ", $e.cacy) ) ; VT_CY|VT_VECTOR
1891 #case 0x1007 ( #("vector of DATE = ", $e.cadate) ) ; VT_DATE|VT_VECTOR
1892 #case 0x1040 ( #("vector of FILETIME = ", $e.cafiletime) ) ; VT_FILETIME|VT_VECTOR
1893 #case 0x1048 ( #("vector of CLSID = ", $e.cauuid) ) ; VT_CLSID|VT_VECTOR
1894 #case 0x1047 ( #("vector of CF = ", $e.caclipdata) ) ; VT_CF|VT_VECTOR
1895 #case 0x1008 ( #("vector of BSTR = ", $e.cabstr) ) ; VT_BSTR|VT_VECTOR
1897 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1899 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1900 #case 0x4016 ( #("byref of INT = ", $e.pintVal) ) ; VT_INT|VT_BYREF
1901 #case 0x4017 ( #("byref of UINT = ", $e.puintVal) ) ; VT_UINT|VT_BYREF
1902 #case 0x4002 ( #("byref of I2 = ", $e.piVal) ) ; VT_I2|VT_BYREF
1903 #case 0x4003 ( #("byref of I4 = ", $e.plVal) ) ; VT_I4|VT_BYREF
1904 #case 0x4004 ( #("byref of R4 = ", $e.pfltVal) ) ; VT_R4|VT_BYREF
1905 #case 0x4005 ( #("byref of R8 = ", $e.pdblVal) ) ; VT_R8|VT_BYREF
1906 #case 0x4010 ( #("byref of I1 = ", $e.pcVal) ) ; VT_I1|VT_BYREF
1907 #case 0x4011 ( #("byref of UI1 = ", $e.pbVal) ) ; VT_UI1|VT_BYREF
1908 #case 0x4012 ( #("byref of UI2 = ", $e.puiVal) ) ; VT_UI2|VT_BYREF
1909 #case 0x4013 ( #("byref of UI4 = ", $e.pulVal) ) ; VT_UI4|VT_BYREF
1910 #case 0x400C ( #("byref of VARIANT ", $e.pvarVal) ) ; VT_VARIANT|VT_BYREF
1911 #case 0x400B ( #("byref of BOOL = ", $e.pboolVal) ) ; VT_BOOL|VT_BYREF
1912 #case 0x400A ( #("byref of ERROR = ", $e.pscode) ) ; VT_ERROR|VT_BYREF
1913 #case 0x4006 ( #("byref of CY = ", $e.pcyVal) ) ; VT_CY|VT_BYREF
1914 #case 0x4007 ( #("byref of DATE = ", $e.pdate) ) ; VT_DATE|VT_BYREF
1915 #case 0x4008 ( #("byref of BSTR = ", $e.pbstrVal) ) ; VT_BSTR|VT_BYREF
1916 #case 0x400E ( #("byref of DECIMAL = ", $e.pdecVal) ) ; VT_DECIMAL|VT_BYREF
1917 #case 0x400D ( #("byref of UNKNOWN = ", $e.ppunkVal) ) ; VT_UNKNOWN|VT_BYREF
1918 #case 0x4009 ( #("byref of DISPATCH = ", $e.ppdispVal) ) ; VT_DISPATCH|VT_BYREF
1919 #case 0x6000 ( #("byref of ARRAY = ", $e.pparray) ) ; VT_ARRAY|VT_BYREF
1923 #if ($e.vt & 0x2000)
1929 #("Unknown vt type = ", $e.vt)
1938 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1940 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1941 #case 0x2 ( #(I2 : $e.iVal) ) ; VT_I2
1942 #case 0x3 ( #(I4 : $e.lVal) ) ; VT_I4
1943 #case 0x4 ( #(R4 : $e.fltVal) ) ; VT_R4
1944 #case 0x5 ( #(R8 : $e.dblVal) ) ; VT_R8
1945 #case 0x6 ( #(CY : $e.cyVal) ) ; VT_CY
1946 #case 0x7 ( #(DATE : $e.date) ) ; VT_DATE
1947 #case 0x8 ( #(BSTR : $e.bstrVal) ) ; VT_BSTR
1948 #case 0x9 ( #(DISPATCH : $e.pdispVal) ) ; VT_DISPATCH
1949 #case 0xA ( #(ERROR : $e.scode) ) ; VT_ERROR
1950 #case 0xB ( #(BOOL : $e.boolVal) ) ; VT_BOOL
1951 #case 0xD ( #(UNKNOWN : $e.punkVal) ) ; VT_UNKNOWN
1952 #case 0xE ( #(DECIMAL : $e.hVal) ) ; VT_DECIMAL
1953 #case 0x10 ( #(I1 : $e.cVal) ) ; VT_I1
1954 #case 0x11 ( #(UI1 : $e.bVal) ) ; VT_UI1
1955 #case 0x12 ( #(UI2 : $e.uiVal) ) ; VT_UI2
1956 #case 0x13 ( #(UI4 : $e.ulVal) ) ; VT_UI4
1957 #case 0x14 ( #(I8 : $e.hVal) ) ; VT_I8
1958 #case 0x15 ( #(UI8 : $e.uhVal) ) ; VT_UI8
1959 #case 0x16 ( #(INT : $e.intVal) ) ; VT_INT
1960 #case 0x17 ( #(UINT : $e.uintVal) ) ; VT_UINT
1961 #case 0x1E ( #(LPSTR : $e.pszVal) ) ; VT_LPSTR
1962 #case 0x1F ( #(LPWSTR : $e.pwszVal) ) ; VT_LPWSTR
1963 #case 0x40 ( #(FILETIME : $e.filetime) ) ; VT_FILETIME
1964 #case 0x42 ( #(STREAM : $e.pStream) ) ; VT_STREAM
1965 #case 0x43 ( #(STORAGE : $e.pStorage) ) ; VT_STORAGE
1966 #case 0x44 ( #(STREAMED_OBJECT : $e.pStream) ) ; VT_STREAMED_OBJECT
1967 #case 0x45 ( #(STORED_OBJECT : $e.pStorage) ) ; VT_STORED_OBJECT
1968 #case 0x46 ( #(BLOB_OBJECT : $e.blob ) ) ; VT_BLOB_OBJECT
1969 #case 0x47 ( #(CF : $e.pclipdata) ) ; VT_CF
1970 #case 0x48 ( #(CLSID : $e.puuid) ) ; VT_CLSID
1971 #case 0x49 ( #(VERSIONED_STREAM : $e.pVersionedStream) ) ; VT_VERSIONED_STREAM
1973 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1975 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1976 #case 0x1002 ( #(vector of I2 : $e.cai) ) ; VT_I2|VT_VECTOR
1977 #case 0x1003 ( #(vector of I4 : $e.cal) ) ; VT_I4|VT_VECTOR
1978 #case 0x1004 ( #(vector of R4 : $e.caflt) ) ; VT_R4|VT_VECTOR
1979 #case 0x1005 ( #(vector of R8 : $e.cadbl) ) ; VT_R8|VT_VECTOR
1980 #case 0x1010 ( #(vector of I1 : $e.cac) ) ; VT_I1|VT_VECTOR
1981 #case 0x1011 ( #(vector of UI1 : $e.caub) ) ; VT_UI1|VT_VECTOR
1982 #case 0x1012 ( #(vector of UI2 : $e.caui) ) ; VT_UI2|VT_VECTOR
1983 #case 0x1013 ( #(vector of UI4 : $e.caul) ) ; VT_UI4|VT_VECTOR
1984 #case 0x1014 ( #(vector of I8 : $e.cah) ) ; VT_I8|VT_VECTOR
1985 #case 0x1015 ( #(vector of UI8 : $e.cauh) ) ; VT_UI8|VT_VECTOR
1986 #case 0x101E ( #(vector of LPSTR : $e.calpstr) ) ; VT_LPSTR|VT_VECTOR
1987 #case 0x101F ( #(vector of LPWSTR : $e.calpwstr) ) ; VT_LPWSTR|VT_VECTOR
1988 #case 0x100C ( #(vector of VARIANT : $e.capropvar) ) ; VT_VARIANT|VT_VECTOR
1989 #case 0x100B ( #(vector of BOOL : $e.cabool) ) ; VT_BOOL|VT_VECTOR
1990 #case 0x100A ( #(vector of ERROR : $e.cascode) ) ; VT_ERROR|VT_VECTOR
1991 #case 0x1006 ( #(vector of CY : $e.cacy) ) ; VT_CY|VT_VECTOR
1992 #case 0x1007 ( #(vector of DATE : $e.cadate) ) ; VT_DATE|VT_VECTOR
1993 #case 0x1040 ( #(vector of FILETIME : $e.cafiletime) ) ; VT_FILETIME|VT_VECTOR
1994 #case 0x1048 ( #(vector of CLSID : $e.cauuid) ) ; VT_CLSID|VT_VECTOR
1995 #case 0x1047 ( #(vector of CF : $e.caclipdata) ) ; VT_CF|VT_VECTOR
1996 #case 0x1008 ( #(vector of BSTR : $e.cabstr) ) ; VT_BSTR|VT_VECTOR
1998 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2000 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2001 #case 0x4016 ( #(byref of INT : $e.pintVal) ) ; VT_INT|VT_BYREF
2002 #case 0x4017 ( #(byref of UINT : $e.puintVal) ) ; VT_UINT|VT_BYREF
2003 #case 0x4002 ( #(byref of I2 : $e.piVal) ) ; VT_I2|VT_BYREF
2004 #case 0x4003 ( #(byref of I4 : $e.plVal) ) ; VT_I4|VT_BYREF
2005 #case 0x4004 ( #(byref of R4 : $e.pfltVal) ) ; VT_R4|VT_BYREF
2006 #case 0x4005 ( #(byref of R8 : $e.pdblVal) ) ; VT_R8|VT_BYREF
2007 #case 0x4010 ( #(byref of I1 : $e.pcVal) ) ; VT_I1|VT_BYREF
2008 #case 0x4011 ( #(byref of UI1 : $e.pbVal) ) ; VT_UI1|VT_BYREF
2009 #case 0x4012 ( #(byref of UI2 : $e.puiVal) ) ; VT_UI2|VT_BYREF
2010 #case 0x4013 ( #(byref of UI4 : $e.pulVal) ) ; VT_UI4|VT_BYREF
2011 #case 0x400C ( #(byref of VARIANT : $e.pvarVal) ) ; VT_VARIANT|VT_BYREF
2012 #case 0x400B ( #(byref of BOOL : $e.pboolVal) ) ; VT_BOOL|VT_BYREF
2013 #case 0x400A ( #(byref of ERROR : $e.pscode) ) ; VT_ERROR|VT_BYREF
2014 #case 0x4006 ( #(byref of CY : $e.pcyVal) ) ; VT_CY|VT_BYREF
2015 #case 0x4007 ( #(byref of DATE : $e.pdate) ) ; VT_DATE|VT_BYREF
2016 #case 0x4008 ( #(byref of BSTR : $e.pbstrVal) ) ; VT_BSTR|VT_BYREF
2017 #case 0x400E ( #(byref of DECIMAL : $e.pdecVal) ) ; VT_DECIMAL|VT_BYREF
2018 #case 0x400D ( #(byref of UNKNOWN : $e.ppunkVal) ) ; VT_UNKNOWN|VT_BYREF
2019 #case 0x4009 ( #(byref of DISPATCH : $e.ppdispVal) ) ; VT_DISPATCH|VT_BYREF
2020 #case 0x6000 ( #(byref of ARRAY : $e.pparray) ) ; VT_ARRAY|VT_BYREF
2022 ; the following are either empty or invalid vt values for a variant
2023 ; #case 0 ( #(Empty :) ) ; VT_EMPTY
2024 ; #case 0x1 ( #(NULL :) ) ; VT_NULL
2025 ; #case 0xC ( #(VARIANT :) ) ; VT_VARIANT
2026 ; #case 0x18 ( #(VOID :) ) ; VT_VOID
2027 ; #case 0x19 ( #(HRESULT :) ) ; VT_HRESULT
2028 ; #case 0x1A ( #(PTR :) ) ; VT_PTR
2029 ; #case 0x1B ( #(SAFEARRAY :) ) ; VT_SAFEARRAY
2030 ; #case 0x1C ( #(CARRAY :) ) ; VT_CARRAY
2031 ; #case 0x1D ( #(USERDEFINED :) ) ; VT_USERDEFINED
2032 ; #case 0x24 ( #(RECORD :) ) ; VT_RECORD
2033 ; #case 0x26 ( #(UINT_PTR :) ) ; VT_UINT_PTR
2037 #if ($e.vt & 0x2000 )
2039 #(safearray: $e.parray)
2044 [raw members]: [$e,!] ; unformatted data members
2051 [raw members]: [$e,!] ; unformatted data members
2057 ; This section lets you define your own errors for the HRESULT display.
2058 ; You need to list the error code in unsigned decimal, followed by the message.
2059 ; Changes will take effect the next time you redisplay the variable.
2061 ;1234=my custom error code