1 | /*
|
---|
2 | *
|
---|
3 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
4 | *
|
---|
5 | */
|
---|
6 | /*
|
---|
7 | * Win32 Version resource APIs for OS/2
|
---|
8 | *
|
---|
9 | * 18-07-1998 SvL: Initial version
|
---|
10 | *
|
---|
11 | * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl)
|
---|
12 | *
|
---|
13 | */
|
---|
14 | #include <os2win.h>
|
---|
15 | #include <stdio.h>
|
---|
16 | #include <stdlib.h>
|
---|
17 | #include <string.h>
|
---|
18 | #include "misc.h"
|
---|
19 | #include "unicode.h"
|
---|
20 |
|
---|
21 | /******************************************************************************/
|
---|
22 | /******************************************************************************/
|
---|
23 | BOOL WIN32API GetFileVersionInfoA(LPTSTR lpszFile, DWORD dwHandle, DWORD cbBuf, LPVOID lpvData)
|
---|
24 | {
|
---|
25 | dprintf(("GetFileVersionInfoA %s\n", lpszFile));
|
---|
26 | return GetVersionStruct(lpszFile, (char *)lpvData, cbBuf);
|
---|
27 | }
|
---|
28 | /******************************************************************************/
|
---|
29 | /******************************************************************************/
|
---|
30 | BOOL WIN32API GetFileVersionInfoW(LPWSTR lpszFile, DWORD dwHandle, DWORD cbBuf, LPVOID lpvData)
|
---|
31 | {
|
---|
32 | BOOL rc;
|
---|
33 | char *astring = UnicodeToAsciiString(lpszFile);
|
---|
34 |
|
---|
35 | dprintf(("GetFileVersionInfoW\n"));
|
---|
36 | rc = GetVersionStruct(astring, (char *)lpvData, cbBuf);
|
---|
37 | FreeAsciiString(astring);
|
---|
38 | return(rc);
|
---|
39 | }
|
---|
40 | /******************************************************************************/
|
---|
41 | /******************************************************************************/
|
---|
42 | DWORD WIN32API GetFileVersionInfoSizeA(LPTSTR lpszFile, LPDWORD lpdwHandle)
|
---|
43 | {
|
---|
44 | dprintf(("GetFileVersionInfoSizeA %s\n", lpszFile));
|
---|
45 |
|
---|
46 | if(lpdwHandle) {
|
---|
47 | lpdwHandle = 0;
|
---|
48 | }
|
---|
49 | return GetVersionSize(lpszFile);
|
---|
50 | }
|
---|
51 | /******************************************************************************/
|
---|
52 | /******************************************************************************/
|
---|
53 | DWORD WIN32API GetFileVersionInfoSizeW(LPWSTR lpszFile, LPDWORD lpdwHandle)
|
---|
54 | {
|
---|
55 | char *astring = UnicodeToAsciiString(lpszFile);
|
---|
56 | DWORD rc;
|
---|
57 |
|
---|
58 | dprintf(("GetFileVersionInfoSizeW\n"));
|
---|
59 | if(lpdwHandle) {
|
---|
60 | lpdwHandle = 0;
|
---|
61 | }
|
---|
62 | rc = GetVersionSize(astring);
|
---|
63 | FreeAsciiString(astring);
|
---|
64 | return(rc);
|
---|
65 | }
|
---|
66 | /******************************************************************************/
|
---|
67 | /******************************************************************************/
|
---|
68 | BOOL WIN32API VerQueryValueA(const LPVOID pBlock, LPTSTR lpSubBlock,
|
---|
69 | LPVOID lplpBuffer, PUINT puLen)
|
---|
70 | {
|
---|
71 | dprintf(("VerQueryValueA Not implemented\n"));
|
---|
72 | return TRUE;
|
---|
73 | }
|
---|
74 | /******************************************************************************/
|
---|
75 | /******************************************************************************/
|
---|
76 | /*KSO Sun 24.05.1998*/
|
---|
77 | BOOL WIN32API VerQueryValueW(const LPVOID pBlock, LPWSTR lpSubBlock,
|
---|
78 | LPVOID lplpBuffer, PUINT puLen)
|
---|
79 | {
|
---|
80 | dprintf(("VerQueryValueW Not implemented\n"));
|
---|
81 | return TRUE;
|
---|
82 | }
|
---|
83 | /******************************************************************************/
|
---|
84 | /******************************************************************************/
|
---|
85 |
|
---|
86 |
|
---|
87 |
|
---|