Dawid Ireno Software Architect
Temat: HeavenTools PE Explorer
Programem można np. przeczytać sygnatury metod typów zadeklarowanych w bibliotekach niezarządzanych *.dll.Należy otworzyć bibliotekę programem, przejść do zakładki "Resource Viewer/Editor", rozwinąć węzeł TYPELIB/1 i mamy pełny listing:)
Poniżej przykład listingu metod biblioteki "pdfout.dll" od VeryPDF.com, w wersji 2.1.0.1.
==============================================================
//pdfout 1.0 Type Library
//Version: 1.0
PDFOUTLib;
GUID = {623A534C-F932-4D04-9A29-CD5E207372B8};
//PdfCreator Class
CoClass PdfCreator;
GUID = {5F59C72A-7922-4231-ABEF-8F22246F65B2};
//IPdfCreator Interface
Dispatch IPdfCreator;
GUID = {79D60915-E988-453C-A760-364DE6FB1AFE};
function QueryInterface(riid: ^GUID; out ppvObj: ^^VOID); stdcall;
function AddRef: UI4; stdcall;
function Release: UI4; stdcall;
function GetTypeInfoCount(out pctinfo: ^UINT); stdcall;
function GetTypeInfo(itinfo: UINT; lcid: UI4; out pptinfo: ^^VOID); stdcall;
function GetIDsOfNames(riid: ^GUID; rgszNames: ^^I1; cNames: UINT; lcid: UI4; out rgdispid: ^I4); stdcall;
function Invoke(dispidMember: I4; riid: ^GUID; lcid: UI4; wFlags: UI2; pdispparams: ^DISPPARAMS; out pvarResult: ^Variant; out pexcepinfo: ^EXCEPINFO; out puArgErr: ^UINT); stdcall;
//property headersFooters
property-get headersFooters: BSTR; stdcall;
//property headersFooters
property-put headersFooters(: BSTR); stdcall;
//property html2PDF
property-get html2PDF: BSTR; stdcall;
//property html2PDF
property-put html2PDF(: BSTR); stdcall;
//property subject
property-get subject: BSTR; stdcall;
//property subject
property-put subject(: BSTR); stdcall;
//property body
property-get body: BSTR; stdcall;
//property body
property-put body(: BSTR); stdcall;
//method ViewPDF
function ViewPDF; stdcall;
//method SendEmail
function SendEmail; stdcall;
//property printerStatus
property-get printerStatus: BSTR; stdcall;
//property printerStatus
property-put printerStatus(: BSTR); stdcall;
//property htmlHeaders
property-get htmlHeaders: BSTR; stdcall;
//property htmlHeaders
property-put htmlHeaders(: BSTR); stdcall;
//property htmlFooters
property-get htmlFooters: BSTR; stdcall;
//property htmlFooters
property-put htmlFooters(: BSTR); stdcall;
//property fileName
property-get fileName: BSTR; stdcall;
//property fileName
property-put fileName(: BSTR); stdcall;
//property showStatusBar
property-get showStatusBar: BSTR; stdcall;
//property showStatusBar
property-put showStatusBar(: BSTR); stdcall;
//property getVersion
property-get getVersion: BSTR; stdcall;
//property getVersion
property-put getVersion(: BSTR); stdcall;
//property htmlBuffer
property-get htmlBuffer: BSTR; stdcall;
//property htmlBuffer
property-put htmlBuffer(: BSTR); stdcall;
//method Word2PDF
function Word2PDF(out m_pDocFile: BSTR; out m_pPDFFile: BSTR); stdcall;
//method CreatePDF
function CreatePDF; stdcall;
//property StillRunning
property-get StillRunning: I4; stdcall;
//property pageWidth
property-get pageWidth: R4; stdcall;
//property pageWidth
property-put pageWidth(: R4); stdcall;
//property pageHeight
property-get pageHeight: R4; stdcall;
//property pageHeight
property-put pageHeight(: R4); stdcall;
//property paperType
property-get paperType: I4; stdcall;
//property paperType
property-put paperType(: I4); stdcall;
//property margin_left
property-put margin_left(: R4); stdcall;
//property margin_top
property-put margin_top(: R4); stdcall;
//property margin_right
property-put margin_right(: R4); stdcall;
//property margin_bottom
property-put margin_bottom(: R4); stdcall;
//property timeout
property-get timeout: I4; stdcall;
//property timeout
property-put timeout(: I4); stdcall;
//method SetPageHeaderRect
function SetPageHeaderRect(out left: R4; out top: R4; out right: R4; out bottom: R4); stdcall;
//method SetPageFooterRect
function SetPageFooterRect(out left: R4; out top: R4; out right: R4; out bottom: R4); stdcall;
//method SetTextWatermark
function SetTextWatermark(out m_bIsHeader: I4; out pstrWatermark: BSTR; out pstrFontname: BSTR; out m_lFontsize: I4; out m_lFontcolor: I4; out m_lPosX: I4; out m_lPosY: I4; out ptrWebURL: BSTR); stdcall;
//method SetImageWatermark
function SetImageWatermark(out m_bIsHeader: I4; out pstrImgName: BSTR; out m_lPosX: I4; out m_lPosY: I4; out pstrWebURL: BSTR); stdcall;
//method Doc2PDFViaSocket
function Doc2PDFViaSocket; stdcall;
//method Doc2PDFViaFile
function Doc2PDFViaFile(out szQueueFilename: BSTR; out m_nTimeOut: I4); stdcall;
//property postData
property-put postData(: BSTR); stdcall;
//property postData
property-get postData: BSTR; stdcall;
//method GetIntValueByKey
function GetIntValueByKey(out szKey: BSTR; out pVal: ^I4); stdcall;
//method GetStrValueByKey
function GetStrValueByKey(out szKey: BSTR; out pVal: ^BSTR); stdcall;
//method SetIntValueByKey
function SetIntValueByKey(out szKey: BSTR; out newVal: I4); stdcall;
//method SetStrValueByKey
function SetStrValueByKey(out szKey: BSTR; out newVal: BSTR); stdcall;
//method Doc2PDFCommandLine
function Doc2PDFCommandLine(out strCommandLine: BSTR); stdcall;
//property EnableSupportApplet
property-get EnableSupportApplet: I4; stdcall;
//property EnableSupportApplet
property-put EnableSupportApplet(: I4); stdcall;
//property DelayTimeForPrintApplet
property-get DelayTimeForPrintApplet: I4; stdcall;
//property DelayTimeForPrintApplet
property-put DelayTimeForPrintApplet(: I4); stdcall;
//property PrintHTMLBackground
property-put PrintHTMLBackground(: I4); stdcall;
//method HTML2IMG_ConvertHTMLToImage
function HTML2IMG_ConvertHTMLToImage(out strURL: BSTR; out strPicFile: BSTR; out strParameters: BSTR); stdcall;
//method HTML2IMG_GetThumbnailImage
function HTML2IMG_GetThumbnailImage(out strInputFile: BSTR; out strOutputFile: BSTR; out cx: I4; out cy: I4; out bRemainRatio: I4; out strParameters: BSTR); stdcall;
//method SetCode
function SetCode(out pCode: BSTR); stdcall;
//property ActivePrinter
property-get ActivePrinter: BSTR; stdcall;
//property ActivePrinter
property-put ActivePrinter(: BSTR); stdcall;
//method Doc2PDFCommandLineEx
function Doc2PDFCommandLineEx(out strCommandLine: BSTR; out bWait: I4); stdcall;Dawid Ireno edytował(a) ten post dnia 03.02.08 o godzinie 14:03