| 1 | /* $Id: oleaut32.cpp,v 1.7 2001-05-03 18:18:53 sandervl Exp $ */ | 
|---|
| 2 | /* | 
|---|
| 3 | * OLEAUT32 | 
|---|
| 4 | * | 
|---|
| 5 | * Copyright 1999 Sander van Leeuwen (OS/2 Port 990815) | 
|---|
| 6 | * | 
|---|
| 7 | * Based on Wine code: (ole\compobj.c) | 
|---|
| 8 | * | 
|---|
| 9 | *      Copyright 1995  Martin von Loewis | 
|---|
| 10 | *      Copyright 1998  Justin Bradford | 
|---|
| 11 | *      Copyright 1999  Francis Beaudet | 
|---|
| 12 | *      Copyright 1999  Sylvain St-Germain | 
|---|
| 13 | * | 
|---|
| 14 | * Project Odin Software License can be found in LICENSE.TXT | 
|---|
| 15 | * | 
|---|
| 16 | * TODO: OaBuildVersion has to be changed (as well as GetVersion in kernel32) | 
|---|
| 17 | */ | 
|---|
| 18 |  | 
|---|
| 19 | #include "oleaut32.h" | 
|---|
| 20 | #ifdef DEBUG | 
|---|
| 21 | #define DEBUG_RUNTIME | 
|---|
| 22 | #endif | 
|---|
| 23 |  | 
|---|
| 24 | #include <debugdefs.h> | 
|---|
| 25 |  | 
|---|
| 26 | //****************************************************************************** | 
|---|
| 27 | //Used to open any private logfiles used in oleaut32 | 
|---|
| 28 | //****************************************************************************** | 
|---|
| 29 | void OpenPrivateLogFiles() | 
|---|
| 30 | { | 
|---|
| 31 | #ifdef DEBUG | 
|---|
| 32 | OpenPrivateLogFileTypelib(); | 
|---|
| 33 | #endif | 
|---|
| 34 | } | 
|---|
| 35 | //****************************************************************************** | 
|---|
| 36 | //Used to close all private logfiles used in oleaut32 | 
|---|
| 37 | //****************************************************************************** | 
|---|
| 38 | void ClosePrivateLogFiles() | 
|---|
| 39 | { | 
|---|
| 40 | #ifdef DEBUG | 
|---|
| 41 | ClosePrivateLogFileTypelib(); | 
|---|
| 42 | #endif | 
|---|
| 43 | } | 
|---|
| 44 |  | 
|---|
| 45 |  | 
|---|
| 46 | /*********************************************************************** | 
|---|
| 47 | *           OaBuildVersion           [OLEAUT32.170] | 
|---|
| 48 | */ | 
|---|
| 49 | UINT WINAPI OaBuildVersion() | 
|---|
| 50 | { | 
|---|
| 51 | #if 1 | 
|---|
| 52 | dprintf(("OLEAUT32: OaBuildVersion")); | 
|---|
| 53 | // Patched DJR 22/9/99 for VB6 runtime. | 
|---|
| 54 | return 0x1E0101; | 
|---|
| 55 | #else | 
|---|
| 56 | WINDOWS_VERSION ver = VERSION_GetVersion(); | 
|---|
| 57 |  | 
|---|
| 58 | FIXME("Please report to a.mohr@mailto.de if you get version error messages !\n"); | 
|---|
| 59 | switch(VersionData[ver].getVersion32) | 
|---|
| 60 | { | 
|---|
| 61 | case 0x80000a03: /* Win 3.1 */ | 
|---|
| 62 | return 0x140fd1; /* from Win32s 1.1e */ | 
|---|
| 63 | case 0xc0000004: /* Win 95 */ | 
|---|
| 64 | case 0xc0000a04: /* Win 98: verified same as Win95 */ | 
|---|
| 65 | return 0x1e10a9; /* some older version: 0x0a0bd3 */ | 
|---|
| 66 | case 0x04213303: /* NT 3.51 */ | 
|---|
| 67 | FIXME("NT 3.51 version value unknown !\n"); | 
|---|
| 68 | return 0x1e10a9; /* value borrowed from Win95 */ | 
|---|
| 69 | case 0x05650004: /* NT 4.0 */ | 
|---|
| 70 | return 0x141016; | 
|---|
| 71 | default: | 
|---|
| 72 | return 0x0; | 
|---|
| 73 | } | 
|---|
| 74 | #endif | 
|---|
| 75 | } | 
|---|