Отладка приложений



              

Требования к TraceSrv - часть 4


[ propput,

id ( 6 ) ,

helpstring ( "property ShowPID" ) ]

 HRESULT ShowPID ( [ in ] VARIANTJ30OL newVal ) ;

 [ propget,

 id ( 7 ) ,

helpstring ( "property AddCRLF" ) ]

HRESULT AddCRLF ( [ out, retval ] VARIANT_BOOL *pVal ) ;

 [ propput, 

id ( 7 ) ,

helpstring ( "property AddCRLF" ) ]

 HRESULT AddCRLF ( [ in ] VARIANT_BOOL newVal ) ;

 } ;

 [

uuid ( 4D42AOOO-7774-11D3-9F57-OOC04FA34F2C ) ,

 version ( 1.0 ) ,

helpstring ( "TraceSrv 1.0 Type Library" ) ]

library TRACESRVLib 

{

importlib ( "stdole32.tlb" ) ;

 importlib ( "stdole2.tlb" ) ; 

[

uuid ( 4D42AOOE-7774-11D3-9F57-OOC04FA34F2C ) ,

 helpstring ( "_ITraceEvents Interface" ) 

]

dispinterface _ITraceEvents 

{

properties: methods: 

[ id ( 1 ) ,

helpstring ( "method TraceEvent" ) ] HRESULT TraceEvent ( BSTR bstrText ) ; 

[ id ( 2 ) ,

helpstring ( "method ChangeShowTimeStamps" ) ]

 HRESULT ChangeShowTimeStamps ( VARIANT_BOOL bNewVal ) ;

 [ id ( 3 ) ,

helpstring ( "method ChangeShowTraceAsODS" ) ]

 HRESULT ChangeShowTraceAsODS ( VARIANT_BOOL bNewVal ) ;

 [ id ( 4 ) ,

helpstring ( "method ChangeShowItemNumber" ) ] 

HRESULT ChangeShowItemNumber ( VARIANT_BOOL bNewVal ) ; 

[ id ( 5 ) ,

helpstring ( "method ChangeShowPID" ) ] 

HRESULT ChangeShowPID ( VARIANT_BOOL bNewVal ) ; 

 [ id ( 6 ) ,

helpstring ( "method ChangeAddCRLF" ) }

HRESULT ChangeAddCRLF ( VARIANT__BOOL bNewVal ) ;

 } ; 

[

uuid ( 4D42AOOD-7774-11D3-9F57-OOC04FA34F2C ) , 

helpstring ( "Trace Class" ) 

]

coclass Trace 

{

[ default ] interface ITrace ;

[ default, source ] dispinterface _ITraceEvents ; 

} ; 

} ;

Для того чтобы написать программу просмотра операторов трассировки, нужно просто обрабатывать события интерфейса iTraceEvents.


Содержание  Назад  Вперед