Ignore:
Timestamp:
Sep 15, 2001, 11:32:00 AM (24 years ago)
Author:
sandervl
Message:

restored old version + wine update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ole32/moniker.c

    r6648 r6711  
    1 /* $Id: moniker.c,v 1.3 2001-09-05 13:17:10 bird Exp $ */
    21/*
    3  *  Monikers
     2 *      Monikers
    43 *
    5  *  Copyright 1998  Marcus Meissner
     4 *      Copyright 1998  Marcus Meissner
    65 *      Copyright 1999  Noomen Hamza
    76 */
     
    2322#include "compobj_private.h"
    2423
     24#ifdef __WIN32OS2__
     25#undef FIXME
     26#undef TRACE
     27#ifdef DEBUG
     28#define TRACE WriteLog("OLE32: %s", __FUNCTION__); WriteLog
     29#define FIXME WriteLog("FIXME OLE32: %s", __FUNCTION__); WriteLog
     30#else
     31#define TRACE 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
     32#define FIXME 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
     33#endif
     34#endif
     35
    2536DEFAULT_DEBUG_CHANNEL(ole);
    2637
     
    4758    DWORD      runObjTabLastIndx;  /* first free index element in the table.        */
    4859    DWORD      runObjTabRegister; /* registration key of the next registered object */
    49 
     60   
    5061} RunningObjectTableImpl;
    5162
     
    137148{
    138149    TRACE("()\n");
    139 
     150   
    140151    if (runningObjectTableInstance==NULL)
    141152        return E_INVALIDARG;
     
    170181            if (( This->runObjTab[i].regTypeObj &  ROTFLAGS_REGISTRATIONKEEPSALIVE) != 0)
    171182                IUnknown_Release(This->runObjTab[i].pObj);
    172 
     183 
    173184            IMoniker_Release(This->runObjTab[i].pmkObj);
    174185        }
     
    230241    if (runningObjectTableInstance==NULL)
    231242        return E_POINTER;
    232 
     243   
    233244    RunningObjectTableImpl_Release((IRunningObjectTable*)runningObjectTableInstance);
    234245
     
    271282    This->runObjTab[This->runObjTabLastIndx].identRegObj = This->runObjTabRegister;
    272283    CoFileTimeNow(&(This->runObjTab[This->runObjTabLastIndx].lastModifObj));
    273 
     284   
    274285    /* gives a registration identifier to the registered object*/
    275286    (*pdwRegister)= This->runObjTabRegister;
     
    278289
    279290        FIXME("runObjTabRegister: %ld is out of data limite \n",This->runObjTabRegister);
    280     return E_FAIL;
     291        return E_FAIL;
    281292}
    282293    This->runObjTabRegister++;
    283294    This->runObjTabLastIndx++;
    284 
     295   
    285296    if (This->runObjTabLastIndx == This->runObjTabSize){ /* table is full ! so it must be resized */
    286297
     
    296307
    297308    IMoniker_AddRef(pmkObjectName);
    298 
     309   
    299310    return res;
    300311}
     
    322333
    323334    IMoniker_Release(This->runObjTab[index].pmkObj);
    324 
     335   
    325336    /* remove the object from the table */
    326337    for(j=index; j<This->runObjTabLastIndx-1; j++)
    327338        This->runObjTab[j]= This->runObjTab[j+1];
    328 
     339   
    329340    This->runObjTabLastIndx--;
    330341
     
    337348HRESULT WINAPI RunningObjectTableImpl_IsRunning(  IRunningObjectTable* iface,
    338349                                                  IMoniker *pmkObjectName)  /* Pointer to the moniker of the object whose status is desired */
    339 {
     350{   
    340351    ICOM_THIS(RunningObjectTableImpl,iface);
    341352
     
    359370    if (ppunkObject==NULL)
    360371        return E_POINTER;
    361 
     372   
    362373    *ppunkObject=0;
    363374
     
    394405    return S_OK;
    395406}
    396 
     407   
    397408/***********************************************************************
    398409 *        RunningObjectTable_GetTimeOfLastChange
     
    448459        /* search object identified by a register identifier */
    449460        for(i=0;((i<This->runObjTabLastIndx)&&(This->runObjTab[i].identRegObj!=identReg));i++);
    450 
     461   
    451462    if (i==This->runObjTabLastIndx)  return S_FALSE;
    452463
     
    457468
    458469/******************************************************************************
    459  *      GetRunningObjectTable16 [OLE2.30]
     470 *              GetRunningObjectTable16 [OLE2.30]
    460471 */
    461472HRESULT WINAPI GetRunningObjectTable16(DWORD reserved, LPRUNNINGOBJECTTABLE *pprot)
    462473{
    463     FIXME("(%ld,%p),stub!\n",reserved,pprot);
     474        FIXME("(%ld,%p),stub!\n",reserved,pprot);
    464475    return E_NOTIMPL;
    465476}
     
    491502HRESULT WINAPI OleRun(LPUNKNOWN pUnknown)
    492503{
    493   IRunnableObject   *runable;
     504  IRunnableObject       *runable;
    494505  ICOM_THIS(IRunnableObject,pUnknown);
    495   LRESULT       ret;
     506  LRESULT               ret;
    496507
    497508#ifdef __WIN32OS2__
     
    502513
    503514  ret = IRunnableObject_QueryInterface(This,&IID_IRunnableObject,(LPVOID*)&runable);
    504   if (ret)
    505     return 0; /* Appears to return no error. */
     515  if (ret) 
     516        return 0; /* Appears to return no error. */
    506517  ret  = IRunnableObject_Run(runable,NULL);
    507518  IRunnableObject_Release(runable);
     
    513524 */
    514525HRESULT WINAPI MkParseDisplayName(LPBC pbc, LPCOLESTR szUserName,
    515                 LPDWORD pchEaten, LPMONIKER *ppmk)
     526                                LPDWORD pchEaten, LPMONIKER *ppmk)
    516527{
    517528    FIXME("(%p, %s, %p, %p): stub.\n", pbc, debugstr_w(szUserName), pchEaten, *ppmk);
    518529    if (!(IsValidInterface((LPUNKNOWN) pbc)))
    519     return E_INVALIDARG;
     530        return E_INVALIDARG;
    520531
    521532    return MK_E_SYNTAX;
Note: See TracChangeset for help on using the changeset viewer.