Posts Tagged ‘COM’

Once upon a time Windows SDK (or it was Visual Studio) had a tool named IROTVIEW which enumerated Running Object Table (ROT). Running Object Table Viewer IROTVIEW displays information about ActiveX and OLE objects currently existing in memory. People ask “Where is IROTVIEW?” and there is no answer. The API is really simple, but if [...]

DirectShow Spy: ROT fix and evrprop.dll

Posted: 4th January 2013 by Roman in ATL, Utilities
Tags: , ,

A small issue appears to be affecting DirectShow applications with DirectShow Spy installed. As underlying COM base is non-standard, the spy implements a few hacks to run smoothly and to keep reference counting correct in particular. Under certain conditions, DirectShow-enabled ActiveX control hosted by Internet Explorer seems to be unable to put its graph onto [...]

Because DirectShow Spy is often a troubleshooting tool, one of its use scenarios is its being a drop-in module to quickly install on a system of interest in order to connect to graphs for troubleshooting purposes, such as to check topology and media types. Its installation requires COM registration, and over time it changed gradually [...]

Reading HRESULT codes

Posted: 18th August 2012 by Roman in ATL, Source, Utilities
Tags: , , , , ,

Although HRESULT codes are so common and structure is simple and well known, and even Visual Studio helps decoding the values nowadays, looking up for code takes some effort: hexadecimal value, searching through SDK headers or online, overlapped regions of codes in FACILITY_ITF etc. MSDN describes the codes in the following sections: Structure of COM [...]

Suppose you have an automation object that needs to implement a callback into caller Visual Basic environment, which can be Scripting Host, Visual Basic for Applications, ASP etc. With all the late binding in VB scripting and so much different C++ code – how to put everything together? There are great choices, let us have [...]

Here go the updates on the COM library which offers easy to use COM interface to send emails, including over secure TLS and SSL channels: x64 build Attachments property to enable attchments to the message being sent ContentType property to enable text/html bodies subject non-English characters are correctly UTF-8 encoded empty To, CC, BCC fields [...]

Utility Clearance: Simple SMTP Email Sender

Posted: 29th January 2012 by Roman in Utilities
Tags: , , , , , , ,

The library implements SMTP client and exposes a simple COM interface to send emails. The interface is simple and straightforward, and the emails can be send from various environments, including such as JavaScript code. The class supports SSL/TLS security and is GMail compliant. A JScript code snippet below provides a sample use case: message = [...]