search for: isscccccccc

Displaying 2 results from an estimated 2 matches for "isscccccccc".

2008 Jun 04
2
Win32-ole start
...E automation server specified in the constructor. attr_reader :server # The host the OLE automation object was created on. attr_reader :host # Did I declare these properly? # http://tinyurl.com/3z8z4h IID_IUnknown = [0,0,0,192,0,0,0,0,0,0,70].pack(''ISSCCCCCCCC'') IID_IDispatch = [132096,0,0,192,0,0,0,0,0,0,70].pack(''ISSCCCCCCCC'') IID_IEnumVARIANT = [132100,0,0,192,0,0,0,0,0,0,70].pack(''ISSCCCCCCCC'') def initialize(server, host = Socket.gethostname) @server = server @host...
2008 Jun 10
7
Unraveling a FAR*
...gID(pBuf, &clsid); ... hr = GetActiveObject(&clsid, 0, &pUnknown); ... hr = pUnknown->lpVtbl->QueryInterface( pUnknown, &IID_IDispatch, (void **)&pDispatch ); Using win32-api, that would be something like: IID_IUnknown = [0,0,0,192,0,0,0,0,0,0,70].pack(''ISSCCCCCCCC'') clsid = 0.chr * 16 unknown = 0.chr * IID_IUnknown.size hr = CLSIDFromProgID(multi_to_wide(server), clsid) ... GetActiveObject(clsid, nil, unknown) ... ??? And here is where I''m stuck. How do I unravel a pointer to a struct and then call a function on it? What is the equival...