Changeset 7916 for trunk/src/oleaut32/oleaut.c
- Timestamp:
- Feb 15, 2002, 4:07:41 PM (24 years ago)
- File:
-
- 1 edited
-
trunk/src/oleaut32/oleaut.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/oleaut32/oleaut.c
r6944 r7916 21 21 #include "wine/obj_oleaut.h" 22 22 #include "wine/obj_olefont.h" 23 24 #include "tmarshal.h" 25 23 26 #include "debugtools.h" 24 27 … … 40 43 41 44 StringFromGUID2(rcid,guidbuf,39); 42 #ifdef __WIN32OS2__43 dprintf(("RegisterActiveObject %x %ls (%x) %x %x", punk, guidbuf, rcid, dwFlags, pdwRegister));44 #endif45 45 ret = CreateItemMoniker(pdelimiter,guidbuf,&moniker); 46 46 if (FAILED(ret)) … … 65 65 HRESULT ret; 66 66 67 #ifdef __WIN32OS2__68 dprintf(("RevokeActiveObject %x %x", xregister, reserved));69 #endif70 71 67 ret = GetRunningObjectTable(0,&runobtable); 72 68 if (FAILED(ret)) return ret; … … 88 84 89 85 StringFromGUID2(rcid,guidbuf,39); 90 #ifdef __WIN32OS2__91 dprintf(("GetActiveObject %ls (%x) %x %x", guidbuf, rcid, preserved, ppunk));92 #endif93 86 ret = CreateItemMoniker(pdelimiter,guidbuf,&moniker); 94 87 if (FAILED(ret)) … … 105 98 } 106 99 100 107 101 /*********************************************************************** 108 102 * OaBuildVersion [OLEAUT32.170] … … 111 105 * OLE 2.1 NT 1993-95 10 3023 112 106 * OLE 2.1 10 3027 107 * Win32s 1.1e 20 4049 113 108 * OLE 2.20 W95/NT 1993-96 20 4112 114 109 * OLE 2.20 W95/NT 1993-96 20 4118 … … 117 112 * OLE 2.40 NT?? 1993-98 40 4267 118 113 * 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. 119 118 */ 120 119 UINT WINAPI OaBuildVersion() 121 120 { 122 #ifdef __WIN32OS2__123 dprintf(("OaBuildVersion %x", GetVersion() & 0x8000ffff));124 #else125 FIXME("Please report to a.mohr@mailto.de if you get version error messages !\n");126 #endif127 121 switch(GetVersion() & 0x8000ffff) /* mask off build number */ 128 122 { 129 123 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 */ 133 133 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 */137 134 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); 143 137 default: 144 138 ERR("Version value not known yet. Please investigate it !\n"); … … 148 142 149 143 /*********************************************************************** 150 * DllRegisterServer 144 * DllRegisterServer (OLEAUT32.320) 151 145 */ 152 146 HRESULT WINAPI OLEAUT32_DllRegisterServer() { … … 156 150 157 151 /*********************************************************************** 158 * DllUnregisterServer 152 * DllUnregisterServer (OLEAUT32.321) 159 153 */ 160 154 HRESULT WINAPI OLEAUT32_DllUnregisterServer() { … … 162 156 return S_OK; 163 157 } 164 165 158 166 159 extern void _get_STDFONT_CF(LPVOID); … … 179 172 } 180 173 } 174 if (IsEqualGUID(rclsid,&CLSID_PSOAInterface)) { 175 if (S_OK==TypeLibFac_DllGetClassObject(rclsid,iid,ppv)) 176 return S_OK; 177 /*FALLTHROUGH*/ 178 } 181 179 FIXME("\n\tCLSID:\t%s,\n\tIID:\t%s\n",debugstr_guid(rclsid),debugstr_guid(iid)); 182 180 return CLASS_E_CLASSNOTAVAILABLE;
Note:
See TracChangeset
for help on using the changeset viewer.
