Ignore:
Timestamp:
Feb 15, 2002, 4:07:41 PM (24 years ago)
Author:
sandervl
Message:

Wine 20020215 resync + added extended logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/oleaut32/oleaut.c

    r6944 r7916  
    2121#include "wine/obj_oleaut.h"
    2222#include "wine/obj_olefont.h"
     23
     24#include "tmarshal.h"
     25
    2326#include "debugtools.h"
    2427
     
    4043
    4144        StringFromGUID2(rcid,guidbuf,39);
    42 #ifdef __WIN32OS2__
    43         dprintf(("RegisterActiveObject %x %ls (%x) %x %x", punk, guidbuf, rcid, dwFlags, pdwRegister));
    44 #endif
    4545        ret = CreateItemMoniker(pdelimiter,guidbuf,&moniker);
    4646        if (FAILED(ret))
     
    6565        HRESULT                 ret;
    6666
    67 #ifdef __WIN32OS2__
    68         dprintf(("RevokeActiveObject %x %x", xregister, reserved));
    69 #endif
    70 
    7167        ret = GetRunningObjectTable(0,&runobtable);
    7268        if (FAILED(ret)) return ret;
     
    8884
    8985        StringFromGUID2(rcid,guidbuf,39);
    90 #ifdef __WIN32OS2__
    91         dprintf(("GetActiveObject %ls (%x) %x %x", guidbuf, rcid, preserved, ppunk));
    92 #endif
    9386        ret = CreateItemMoniker(pdelimiter,guidbuf,&moniker);
    9487        if (FAILED(ret))
     
    10598}
    10699
     100
    107101/***********************************************************************
    108102 *           OaBuildVersion           [OLEAUT32.170]
     
    111105 * OLE 2.1  NT                          1993-95 10     3023
    112106 * OLE 2.1                                      10     3027
     107 * Win32s 1.1e                                  20     4049
    113108 * OLE 2.20 W95/NT                      1993-96 20     4112
    114109 * OLE 2.20 W95/NT                      1993-96 20     4118
     
    117112 * OLE 2.40 NT??                        1993-98 40     4267
    118113 * OLE 2.40 W98 SE orig. file           1993-98 40     4275
     114 * OLE 2.40 W2K orig. file              1993-XX 40     4514
     115 *
     116 * I just decided to use version 2.20 for Win3.1, 2.30 for Win95 & NT 3.51,
     117 * and 2.40 for all newer OSs. The build number is maximum, i.e. 0xffff.
    119118 */
    120119UINT WINAPI OaBuildVersion()
    121120{
    122 #ifdef __WIN32OS2__
    123     dprintf(("OaBuildVersion %x", GetVersion() & 0x8000ffff));
    124 #else
    125     FIXME("Please report to a.mohr@mailto.de if you get version error messages !\n");
    126 #endif
    127121    switch(GetVersion() & 0x8000ffff)  /* mask off build number */
    128122    {
    129123    case 0x80000a03:  /* WIN31 */
    130                 return MAKELONG(4049, 20); /* from Win32s 1.1e */
    131     case 0x80000004:  /* WIN95 */
    132                 return MAKELONG(4265, 30);
     124                return MAKELONG(0xffff, 20);
     125    case 0x00003303:  /* NT351 */
     126                return MAKELONG(0xffff, 30);
     127    case 0x80000004:  /* WIN95; I'd like to use the "standard" w95 minor
     128                         version here (30), but as we still use w95
     129                         as default winver (which is good IMHO), I better
     130                         play safe and use the latest value for w95 for now.
     131                         Change this as soon as default winver gets changed
     132                         to something more recent */
    133133    case 0x80000a04:  /* WIN98 */
    134                 return MAKELONG(4275, 40); /* value of W98 SE; orig. W98 AFAIK has 4265, 30 just as W95 */
    135     case 0x00003303:  /* NT351 */
    136                 return MAKELONG(4265, 30); /* value borrowed from Win95 */
    137134    case 0x00000004:  /* NT40 */
    138 #ifdef __WIN32OS2__
    139                 return 0x2810b5; //returned by NT4, SP6
    140 #else
    141                 return MAKELONG(4122, 20); /* ouch ! Quite old, I guess */
    142 #endif
     135    case 0x00000005:  /* W2K */
     136                return MAKELONG(0xffff, 40);
    143137    default:
    144138                ERR("Version value not known yet. Please investigate it !\n");
     
    148142
    149143/***********************************************************************
    150  *              DllRegisterServer
     144 *              DllRegisterServer (OLEAUT32.320)
    151145 */
    152146HRESULT WINAPI OLEAUT32_DllRegisterServer() {
     
    156150
    157151/***********************************************************************
    158  *              DllUnregisterServer
     152 *              DllUnregisterServer (OLEAUT32.321)
    159153 */
    160154HRESULT WINAPI OLEAUT32_DllUnregisterServer() {
     
    162156    return S_OK;
    163157}
    164 
    165158
    166159extern void _get_STDFONT_CF(LPVOID);
     
    179172        }
    180173    }
     174    if (IsEqualGUID(rclsid,&CLSID_PSOAInterface)) {
     175        if (S_OK==TypeLibFac_DllGetClassObject(rclsid,iid,ppv))
     176            return S_OK;
     177        /*FALLTHROUGH*/
     178    }
    181179    FIXME("\n\tCLSID:\t%s,\n\tIID:\t%s\n",debugstr_guid(rclsid),debugstr_guid(iid));
    182180    return CLASS_E_CLASSNOTAVAILABLE;
Note: See TracChangeset for help on using the changeset viewer.