Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
#ifndef __WINE_OLEAUTO_H
|
|
|
|
#define __WINE_OLEAUTO_H
|
|
|
|
|
1999-08-18 20:35:57 +02:00
|
|
|
#include "wtypes.h"
|
2000-09-26 02:00:55 +02:00
|
|
|
#include "wine/obj_base.h"
|
1999-08-18 20:35:57 +02:00
|
|
|
#include "wine/obj_oleaut.h"
|
2000-08-03 06:34:59 +02:00
|
|
|
#include "wine/obj_errorinfo.h"
|
|
|
|
|
1999-08-18 20:35:57 +02:00
|
|
|
#ifndef __WINE__
|
|
|
|
#include "oaidl.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct tagSAFEARRAY;
|
|
|
|
struct tagSAFEARRAYBOUND;
|
|
|
|
struct tagVARIANT;
|
|
|
|
|
1999-02-25 17:32:10 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2000-10-03 06:09:32 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* BSTR API
|
|
|
|
*/
|
|
|
|
|
1999-03-13 19:13:10 +01:00
|
|
|
BSTR WINAPI SysAllocString(const OLECHAR*);
|
2000-10-13 19:08:12 +02:00
|
|
|
BSTR WINAPI SysAllocStringByteLen(LPCSTR,UINT);
|
2000-10-03 06:09:32 +02:00
|
|
|
BSTR WINAPI SysAllocStringLen(const OLECHAR*,UINT);
|
|
|
|
void WINAPI SysFreeString(BSTR);
|
|
|
|
INT WINAPI SysReAllocString(LPBSTR,const OLECHAR*);
|
|
|
|
int WINAPI SysReAllocStringLen(BSTR*,const OLECHAR*,UINT);
|
|
|
|
int WINAPI SysStringByteLen(BSTR);
|
|
|
|
int WINAPI SysStringLen(BSTR);
|
|
|
|
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
|
2000-02-26 19:33:21 +01:00
|
|
|
/*****************************************************************
|
|
|
|
* ErrorInfo API
|
|
|
|
*/
|
|
|
|
|
|
|
|
HRESULT WINAPI SetErrorInfo(ULONG dwReserved, IErrorInfo *perrinfo);
|
|
|
|
HRESULT WINAPI GetErrorInfo(ULONG dwReserved, IErrorInfo **pperrinfo);
|
|
|
|
HRESULT WINAPI CreateErrorInfo(ICreateErrorInfo **pperrinfo);
|
|
|
|
|
1999-01-24 19:52:55 +01:00
|
|
|
/*****************************************************************
|
|
|
|
* SafeArray API
|
|
|
|
*/
|
|
|
|
|
|
|
|
HRESULT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayAllocDescriptor(UINT cDims, struct tagSAFEARRAY **ppsaOut);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
|
|
|
HRESULT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayAllocData(struct tagSAFEARRAY *psa);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
2000-06-11 22:07:58 +02:00
|
|
|
struct tagSAFEARRAY WINAPI
|
|
|
|
*SafeArrayCreate(VARTYPE vt, UINT cDims, struct tagSAFEARRAYBOUND *rgsabound);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
|
|
|
HRESULT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayDestroyDescriptor(struct tagSAFEARRAY *psa);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
|
|
|
HRESULT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayPutElement(struct tagSAFEARRAY *psa, LONG *rgIndices, void *pv);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
|
|
|
HRESULT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayGetElement(struct tagSAFEARRAY *psa, LONG *rgIndices, void *pv);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
|
|
|
HRESULT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayLock(struct tagSAFEARRAY *psa);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
|
|
|
HRESULT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayUnlock(struct tagSAFEARRAY *psa);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
|
|
|
HRESULT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayGetUBound(struct tagSAFEARRAY *psa, UINT nDim, LONG *plUbound);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
|
|
|
HRESULT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayGetLBound(struct tagSAFEARRAY *psa, UINT nDim, LONG *plLbound);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
UINT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayGetDim(struct tagSAFEARRAY *psa);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
UINT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayGetElemsize(struct tagSAFEARRAY *psa);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
|
|
|
HRESULT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayAccessData(struct tagSAFEARRAY *psa, void **ppvData);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
|
|
|
HRESULT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayUnaccessData(struct tagSAFEARRAY *psa);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
|
|
|
HRESULT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayPtrOfIndex(struct tagSAFEARRAY *psa, LONG *rgIndices, void **ppvData);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
|
|
|
HRESULT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayCopyData(struct tagSAFEARRAY *psaSource, struct tagSAFEARRAY **psaTarget);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
|
|
|
HRESULT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayDestroyData(struct tagSAFEARRAY *psa);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
|
|
|
HRESULT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayDestroy(struct tagSAFEARRAY *psa);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
|
|
|
HRESULT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayCopy(struct tagSAFEARRAY *psa, struct tagSAFEARRAY **ppsaOut);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
2000-06-11 22:07:58 +02:00
|
|
|
struct tagSAFEARRAY WINAPI
|
|
|
|
*SafeArrayCreateVector(VARTYPE vt, LONG lLbound, ULONG cElements);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
|
|
|
HRESULT WINAPI
|
1999-08-18 20:35:57 +02:00
|
|
|
SafeArrayRedim(struct tagSAFEARRAY *psa, struct tagSAFEARRAYBOUND *psaboundNew);
|
1999-01-24 19:52:55 +01:00
|
|
|
|
1998-12-10 11:00:38 +01:00
|
|
|
|
|
|
|
/* These are macros that help accessing the VARIANT date type.
|
|
|
|
*/
|
1999-03-14 14:47:00 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
#define V_UNION(A, B) ((A)->B)
|
|
|
|
#define V_VT(A) ((A)->vt)
|
|
|
|
#else
|
1998-12-10 11:00:38 +01:00
|
|
|
#define V_UNION(A, B) ((A)->u.B)
|
|
|
|
#define V_VT(A) ((A)->vt)
|
1999-03-14 14:47:00 +01:00
|
|
|
#endif /* cplusplus */
|
1998-12-10 11:00:38 +01:00
|
|
|
|
|
|
|
#define V_ISBYREF(A) (V_VT(A)&VT_BYREF)
|
|
|
|
#define V_ISARRAY(A) (V_VT(A)&VT_ARRAY)
|
|
|
|
#define V_ISVECTOR(A) (V_VT(A)&VT_VECTOR)
|
|
|
|
#define V_NONE(A) V_I2(A)
|
|
|
|
|
|
|
|
#define V_UI1(A) V_UNION(A, bVal)
|
|
|
|
#define V_UI1REF(A) V_UNION(A, pbVal)
|
|
|
|
#define V_I2(A) V_UNION(A, iVal)
|
|
|
|
#define V_I2REF(A) V_UNION(A, piVal)
|
|
|
|
#define V_I4(A) V_UNION(A, lVal)
|
|
|
|
#define V_I4REF(A) V_UNION(A, plVal)
|
|
|
|
#define V_R4(A) V_UNION(A, fltVal)
|
|
|
|
#define V_R4REF(A) V_UNION(A, pfltVal)
|
|
|
|
#define V_R8(A) V_UNION(A, dblVal)
|
|
|
|
#define V_R8REF(A) V_UNION(A, pdblVal)
|
|
|
|
#define V_I1(A) V_UNION(A, cVal)
|
|
|
|
#define V_I1REF(A) V_UNION(A, pcVal)
|
|
|
|
#define V_UI2(A) V_UNION(A, uiVal)
|
|
|
|
#define V_UI2REF(A) V_UNION(A, puiVal)
|
|
|
|
#define V_UI4(A) V_UNION(A, ulVal)
|
|
|
|
#define V_UI4REF(A) V_UNION(A, pulVal)
|
|
|
|
#define V_INT(A) V_UNION(A, intVal)
|
|
|
|
#define V_INTREF(A) V_UNION(A, pintVal)
|
|
|
|
#define V_UINT(A) V_UNION(A, uintVal)
|
|
|
|
#define V_UINTREF(A) V_UNION(A, puintVal)
|
|
|
|
#define V_CY(A) V_UNION(A, cyVal)
|
|
|
|
#define V_CYREF(A) V_UNION(A, pcyVal)
|
|
|
|
#define V_DATE(A) V_UNION(A, date)
|
|
|
|
#define V_DATEREF(A) V_UNION(A, pdate)
|
|
|
|
#define V_BSTR(A) V_UNION(A, bstrVal)
|
|
|
|
#define V_BSTRREF(A) V_UNION(A, pbstrVal)
|
|
|
|
#define V_DISPATCH(A) V_UNION(A, pdispVal)
|
|
|
|
#define V_DISPATCHREF(A) V_UNION(A, ppdispVal)
|
|
|
|
#define V_ERROR(A) V_UNION(A, scode)
|
|
|
|
#define V_ERRORREF(A) V_UNION(A, pscode)
|
|
|
|
#define V_BOOL(A) V_UNION(A, boolVal)
|
|
|
|
#define V_BOOLREF(A) V_UNION(A, pboolVal)
|
|
|
|
#define V_UNKNOWN(A) V_UNION(A, punkVal)
|
|
|
|
#define V_UNKNOWNREF(A) V_UNION(A, ppunkVal)
|
|
|
|
#define V_VARIANTREF(A) V_UNION(A, pvarVal)
|
|
|
|
#define V_ARRAY(A) V_UNION(A, parray)
|
|
|
|
#define V_ARRAYREF(A) V_UNION(A, pparray)
|
|
|
|
#define V_BYREF(A) V_UNION(A, byref)
|
|
|
|
#define V_DECIMAL(A) V_UNION(A, decVal)
|
|
|
|
#define V_DECIMALREF(A) V_UNION(A, pdecVal)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* VARIANT API
|
|
|
|
*/
|
|
|
|
|
1999-08-18 20:35:57 +02:00
|
|
|
void WINAPI VariantInit(struct tagVARIANT* pvarg);
|
|
|
|
HRESULT WINAPI VariantClear(struct tagVARIANT* pvarg);
|
|
|
|
HRESULT WINAPI VariantCopy(struct tagVARIANT* pvargDest, struct tagVARIANT* pvargSrc);
|
|
|
|
HRESULT WINAPI VariantCopyInd(struct tagVARIANT* pvargDest, struct tagVARIANT* pvargSrc);
|
|
|
|
HRESULT WINAPI VariantChangeType(struct tagVARIANT* pvargDest, struct tagVARIANT* pvargSrc,
|
1998-12-10 11:00:38 +01:00
|
|
|
USHORT wFlags, VARTYPE vt);
|
1999-08-18 20:35:57 +02:00
|
|
|
HRESULT WINAPI VariantChangeTypeEx(struct tagVARIANT* pvargDest, struct tagVARIANT* pvargSrc,
|
1998-12-10 11:00:38 +01:00
|
|
|
LCID lcid, USHORT wFlags, VARTYPE vt);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* These flags are used for the VariantChangeType and VariantChangeTypeEx APIs.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This one is of general use.
|
|
|
|
*/
|
|
|
|
#define VARIANT_NOVALUEPROP 0x1
|
|
|
|
/*
|
|
|
|
* This one is used for conversions of VT_BOOL to VT_BSTR,
|
|
|
|
* the API will convert to "True"|"False" instead of "-1"|"0".
|
|
|
|
*/
|
|
|
|
#define VARIANT_ALPHABOOL 0x2
|
|
|
|
/*
|
|
|
|
* This one is used for conversions to or from a VT_BSTR string,
|
|
|
|
* it passes LOCALE_NOUSEROVERRIDE to the core (low-level) coercion routines.
|
|
|
|
* This means it will use the system default locale settings instead of custom
|
|
|
|
* local settings.
|
|
|
|
*/
|
|
|
|
#define VARIANT_NOUSEROVERRIDE 0x4
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* VARTYPE Coercion API
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Omits the date portion and return only the time value.
|
|
|
|
*/
|
|
|
|
#define VAR_TIMEVALUEONLY ((DWORD)0x00000001)
|
|
|
|
/* Omits the time portion and return only the date value.
|
|
|
|
*/
|
|
|
|
#define VAR_DATEVALUEONLY ((DWORD)0x00000002)
|
|
|
|
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI VarUI1FromI2(short sIn, BYTE* pbOut);
|
|
|
|
HRESULT WINAPI VarUI1FromI4(LONG lIn, BYTE* pbOut);
|
|
|
|
HRESULT WINAPI VarUI1FromR4(FLOAT fltIn, BYTE* pbOut);
|
|
|
|
HRESULT WINAPI VarUI1FromR8(double dblIn, BYTE* pbOut);
|
|
|
|
HRESULT WINAPI VarUI1FromDate(DATE dateIn, BYTE* pbOut);
|
|
|
|
HRESULT WINAPI VarUI1FromBool(VARIANT_BOOL boolIn, BYTE* pbOut);
|
|
|
|
HRESULT WINAPI VarUI1FromI1(CHAR cIn, BYTE*pbOut);
|
|
|
|
HRESULT WINAPI VarUI1FromUI2(USHORT uiIn, BYTE*pbOut);
|
|
|
|
HRESULT WINAPI VarUI1FromUI4(ULONG ulIn, BYTE*pbOut);
|
|
|
|
HRESULT WINAPI VarUI1FromStr(OLECHAR* strIn, LCID lcid, ULONG dwFlags, BYTE* pbOut);
|
|
|
|
HRESULT WINAPI VarUI1FromCy(CY cyIn, BYTE* pbOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
|
|
|
|
/*
|
1998-12-11 11:40:43 +01:00
|
|
|
HRESULT WINAPI VarUI1FromDec32(DECIMAL*pdecIn, BYTE*pbOut);
|
|
|
|
HRESULT WINAPI VarUI1FromDisp32(IDispatch* pdispIn, LCID lcid, BYTE* pbOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
*/
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI VarI2FromUI1(BYTE bIn, short* psOut);
|
|
|
|
HRESULT WINAPI VarI2FromI4(LONG lIn, short* psOut);
|
|
|
|
HRESULT WINAPI VarI2FromR4(FLOAT fltIn, short* psOut);
|
|
|
|
HRESULT WINAPI VarI2FromR8(double dblIn, short* psOut);
|
|
|
|
HRESULT WINAPI VarI2FromDate(DATE dateIn, short* psOut);
|
|
|
|
HRESULT WINAPI VarI2FromBool(VARIANT_BOOL boolIn, short* psOut);
|
|
|
|
HRESULT WINAPI VarI2FromI1(CHAR cIn, short*psOut);
|
|
|
|
HRESULT WINAPI VarI2FromUI2(USHORT uiIn, short*psOut);
|
|
|
|
HRESULT WINAPI VarI2FromUI4(ULONG ulIn, short*psOut);
|
|
|
|
HRESULT WINAPI VarI2FromStr(OLECHAR* strIn, LCID lcid, ULONG dwFlags, short* psOut);
|
|
|
|
HRESULT WINAPI VarI2FromCy(CY cyIn, short* psOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
/*
|
1998-12-11 11:40:43 +01:00
|
|
|
HRESULT WINAPI VarI2FromDec32(DECIMAL*pdecIn, short*psOut);
|
|
|
|
HRESULT WINAPI VarI2FromDisp32(IDispatch* pdispIn, LCID lcid, short* psOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
*/
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI VarI4FromUI1(BYTE bIn, LONG* plOut);
|
|
|
|
HRESULT WINAPI VarI4FromI2(short sIn, LONG* plOut);
|
|
|
|
HRESULT WINAPI VarI4FromR4(FLOAT fltIn, LONG* plOut);
|
|
|
|
HRESULT WINAPI VarI4FromR8(double dblIn, LONG* plOut);
|
|
|
|
HRESULT WINAPI VarI4FromDate(DATE dateIn, LONG* plOut);
|
|
|
|
HRESULT WINAPI VarI4FromBool(VARIANT_BOOL boolIn, LONG* plOut);
|
|
|
|
HRESULT WINAPI VarI4FromI1(CHAR cIn, LONG* plOut);
|
|
|
|
HRESULT WINAPI VarI4FromUI2(USHORT uiIn, LONG*plOut);
|
|
|
|
HRESULT WINAPI VarI4FromUI4(ULONG ulIn, LONG*plOut);
|
|
|
|
HRESULT WINAPI VarI4FromStr(OLECHAR* strIn, LCID lcid, ULONG dwFlags, LONG* plOut);
|
|
|
|
HRESULT WINAPI VarI4FromCy(CY cyIn, LONG* plOut);
|
1998-12-11 15:02:16 +01:00
|
|
|
/*
|
1998-12-11 11:40:43 +01:00
|
|
|
HRESULT WINAPI VarI4FromDec32(DECIMAL*pdecIn, LONG*plOut);
|
|
|
|
HRESULT WINAPI VarI4FromDisp32(IDispatch* pdispIn, LCID lcid, LONG* plOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
*/
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI VarR4FromUI1(BYTE bIn, FLOAT* pfltOut);
|
|
|
|
HRESULT WINAPI VarR4FromI2(short sIn, FLOAT* pfltOut);
|
|
|
|
HRESULT WINAPI VarR4FromI4(LONG lIn, FLOAT* pfltOut);
|
|
|
|
HRESULT WINAPI VarR4FromR8(double dblIn, FLOAT* pfltOut);
|
|
|
|
HRESULT WINAPI VarR4FromDate(DATE dateIn, FLOAT* pfltOut);
|
|
|
|
HRESULT WINAPI VarR4FromBool(VARIANT_BOOL boolIn, FLOAT* pfltOut);
|
|
|
|
HRESULT WINAPI VarR4FromI1(CHAR cIn, FLOAT*pfltOut);
|
|
|
|
HRESULT WINAPI VarR4FromUI2(USHORT uiIn, FLOAT*pfltOut);
|
|
|
|
HRESULT WINAPI VarR4FromUI4(ULONG ulIn, FLOAT*pfltOut);
|
|
|
|
HRESULT WINAPI VarR4FromStr(OLECHAR* strIn, LCID lcid, ULONG dwFlags, FLOAT*pfltOut);
|
|
|
|
HRESULT WINAPI VarR4FromCy(CY cyIn, FLOAT* pfltOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
/*
|
1998-12-11 11:40:43 +01:00
|
|
|
HRESULT WINAPI VarR4FromDec32(DECIMAL*pdecIn, FLOAT*pfltOut);
|
|
|
|
HRESULT WINAPI VarR4FromDisp32(IDispatch* pdispIn, LCID lcid, FLOAT* pfltOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
*/
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI VarR8FromUI1(BYTE bIn, double* pdblOut);
|
|
|
|
HRESULT WINAPI VarR8FromI2(short sIn, double* pdblOut);
|
|
|
|
HRESULT WINAPI VarR8FromI4(LONG lIn, double* pdblOut);
|
|
|
|
HRESULT WINAPI VarR8FromR4(FLOAT fltIn, double* pdblOut);
|
|
|
|
HRESULT WINAPI VarR8FromDate(DATE dateIn, double* pdblOut);
|
|
|
|
HRESULT WINAPI VarR8FromBool(VARIANT_BOOL boolIn, double* pdblOut);
|
|
|
|
HRESULT WINAPI VarR8FromI1(CHAR cIn, double*pdblOut);
|
|
|
|
HRESULT WINAPI VarR8FromUI2(USHORT uiIn, double*pdblOut);
|
|
|
|
HRESULT WINAPI VarR8FromUI4(ULONG ulIn, double*pdblOut);
|
|
|
|
HRESULT WINAPI VarR8FromStr(OLECHAR*strIn, LCID lcid, ULONG dwFlags, double*pdblOut);
|
|
|
|
HRESULT WINAPI VarR8FromCy(CY cyIn, double* pdblOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
/*
|
1998-12-11 11:40:43 +01:00
|
|
|
HRESULT WINAPI VarR8FromDec32(DECIMAL*pdecIn, double*pdblOut);
|
|
|
|
HRESULT WINAPI VarR8FromDisp32(IDispatch* pdispIn, LCID lcid, double* pdblOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
*/
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI VarDateFromUI1(BYTE bIn, DATE* pdateOut);
|
|
|
|
HRESULT WINAPI VarDateFromI2(short sIn, DATE* pdateOut);
|
|
|
|
HRESULT WINAPI VarDateFromI4(LONG lIn, DATE* pdateOut);
|
|
|
|
HRESULT WINAPI VarDateFromR4(FLOAT fltIn, DATE* pdateOut);
|
|
|
|
HRESULT WINAPI VarDateFromR8(double dblIn, DATE* pdateOut);
|
|
|
|
HRESULT WINAPI VarDateFromStr(OLECHAR*strIn, LCID lcid, ULONG dwFlags, DATE*pdateOut);
|
|
|
|
HRESULT WINAPI VarDateFromI1(CHAR cIn, DATE*pdateOut);
|
|
|
|
HRESULT WINAPI VarDateFromUI2(USHORT uiIn, DATE*pdateOut);
|
|
|
|
HRESULT WINAPI VarDateFromUI4(ULONG ulIn, DATE*pdateOut);
|
|
|
|
HRESULT WINAPI VarDateFromBool(VARIANT_BOOL boolIn, DATE* pdateOut);
|
|
|
|
HRESULT WINAPI VarDateFromCy(CY cyIn, DATE* pdateOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
/*
|
1998-12-11 11:40:43 +01:00
|
|
|
HRESULT WINAPI VarDateFromDec32(DECIMAL*pdecIn, DATE*pdateOut);
|
|
|
|
HRESULT WINAPI VarDateFromDisp32(IDispatch* pdispIn, LCID lcid, DATE* pdateOut);
|
1998-12-11 15:02:16 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI VarCyFromUI1(BYTE bIn, CY* pcyOut);
|
|
|
|
HRESULT WINAPI VarCyFromI2(short sIn, CY* pcyOut);
|
|
|
|
HRESULT WINAPI VarCyFromI4(LONG lIn, CY* pcyOut);
|
|
|
|
HRESULT WINAPI VarCyFromR4(FLOAT fltIn, CY* pcyOut);
|
|
|
|
HRESULT WINAPI VarCyFromR8(double dblIn, CY* pcyOut);
|
|
|
|
HRESULT WINAPI VarCyFromDate(DATE dateIn, CY* pcyOut);
|
1999-03-28 15:15:40 +02:00
|
|
|
HRESULT WINAPI VarCyFromStr(OLECHAR *strIn, LCID lcid, ULONG dwFlags, CY *pcyOut);
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI VarCyFromBool(VARIANT_BOOL boolIn, CY* pcyOut);
|
|
|
|
HRESULT WINAPI VarCyFromI1(CHAR cIn, CY*pcyOut);
|
|
|
|
HRESULT WINAPI VarCyFromUI2(USHORT uiIn, CY*pcyOut);
|
|
|
|
HRESULT WINAPI VarCyFromUI4(ULONG ulIn, CY*pcyOut);
|
1998-12-11 15:02:16 +01:00
|
|
|
/*
|
1998-12-11 11:40:43 +01:00
|
|
|
HRESULT WINAPI VarCyFromDec32(DECIMAL*pdecIn, CY*pcyOut);
|
1998-12-11 15:02:16 +01:00
|
|
|
HRESULT WINAPI VarCyFromStr32(OLECHAR32* strIn, LCID lcid, ULONG dwFlags, CY* pcyOut);
|
|
|
|
HRESULT WINAPI VarCyFromDisp32(IDispatch* pdispIn, LCID lcid, CY* pcyOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
*/
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI VarBstrFromUI1(BYTE bVal, LCID lcid, ULONG dwFlags, BSTR* pbstrOut);
|
|
|
|
HRESULT WINAPI VarBstrFromI2(short iVal, LCID lcid, ULONG dwFlags, BSTR* pbstrOut);
|
|
|
|
HRESULT WINAPI VarBstrFromI4(LONG lIn, LCID lcid, ULONG dwFlags, BSTR* pbstrOut);
|
|
|
|
HRESULT WINAPI VarBstrFromR4(FLOAT fltIn, LCID lcid, ULONG dwFlags, BSTR* pbstrOut);
|
|
|
|
HRESULT WINAPI VarBstrFromR8(double dblIn, LCID lcid, ULONG dwFlags, BSTR* pbstrOut);
|
1999-03-28 15:15:40 +02:00
|
|
|
HRESULT WINAPI VarBstrFromCy(CY cyIn, LCID lcid, ULONG dwFlags, BSTR *pbstrOut);
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI VarBstrFromDate(DATE dateIn, LCID lcid, ULONG dwFlags, BSTR* pbstrOut);
|
|
|
|
HRESULT WINAPI VarBstrFromBool(VARIANT_BOOL boolIn, LCID lcid, ULONG dwFlags, BSTR* pbstrOut);
|
|
|
|
HRESULT WINAPI VarBstrFromI1(CHAR cIn, LCID lcid, ULONG dwFlags, BSTR*pbstrOut);
|
|
|
|
HRESULT WINAPI VarBstrFromUI2(USHORT uiIn, LCID lcid, ULONG dwFlags, BSTR*pbstrOut);
|
|
|
|
HRESULT WINAPI VarBstrFromUI4(ULONG ulIn, LCID lcid, ULONG dwFlags, BSTR*pbstrOut);
|
|
|
|
HRESULT WINAPI VarBstrFromCy(CY cyIn, LCID lcid, ULONG dwFlags, BSTR* pbstrOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
/*
|
1998-12-11 11:40:43 +01:00
|
|
|
HRESULT WINAPI VarBstrFromDec32(DECIMAL*pdecIn, LCID lcid, ULONG dwFlags, BSTR32*pbstrOut);
|
|
|
|
HRESULT WINAPI VarBstrFromDisp32(IDispatch* pdispIn, LCID lcid, ULONG dwFlags, BSTR32* pbstrOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
*/
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI VarBoolFromUI1(BYTE bIn, VARIANT_BOOL* pboolOut);
|
|
|
|
HRESULT WINAPI VarBoolFromI2(short sIn, VARIANT_BOOL* pboolOut);
|
|
|
|
HRESULT WINAPI VarBoolFromI4(LONG lIn, VARIANT_BOOL* pboolOut);
|
|
|
|
HRESULT WINAPI VarBoolFromR4(FLOAT fltIn, VARIANT_BOOL* pboolOut);
|
|
|
|
HRESULT WINAPI VarBoolFromR8(double dblIn, VARIANT_BOOL* pboolOut);
|
|
|
|
HRESULT WINAPI VarBoolFromDate(DATE dateIn, VARIANT_BOOL* pboolOut);
|
|
|
|
HRESULT WINAPI VarBoolFromStr(OLECHAR* strIn, LCID lcid, ULONG dwFlags, VARIANT_BOOL* pboolOut);
|
|
|
|
HRESULT WINAPI VarBoolFromI1(CHAR cIn, VARIANT_BOOL*pboolOut);
|
|
|
|
HRESULT WINAPI VarBoolFromUI2(USHORT uiIn, VARIANT_BOOL*pboolOut);
|
|
|
|
HRESULT WINAPI VarBoolFromUI4(ULONG ulIn, VARIANT_BOOL*pboolOut);
|
|
|
|
HRESULT WINAPI VarBoolFromCy(CY cyIn, VARIANT_BOOL* pboolOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
/*
|
1998-12-11 11:40:43 +01:00
|
|
|
HRESULT WINAPI VarBoolFromDec32(DECIMAL*pdecIn, VARIANT_BOOL*pboolOut);
|
|
|
|
HRESULT WINAPI VarBoolFromDisp32(IDispatch* pdispIn, LCID lcid, VARIANT_BOOL* pboolOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
*/
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI VarI1FromUI1(BYTE bIn, CHAR*pcOut);
|
|
|
|
HRESULT WINAPI VarI1FromI2(short uiIn, CHAR*pcOut);
|
|
|
|
HRESULT WINAPI VarI1FromI4(LONG lIn, CHAR*pcOut);
|
|
|
|
HRESULT WINAPI VarI1FromR4(FLOAT fltIn, CHAR*pcOut);
|
|
|
|
HRESULT WINAPI VarI1FromR8(double dblIn, CHAR*pcOut);
|
|
|
|
HRESULT WINAPI VarI1FromDate(DATE dateIn, CHAR*pcOut);
|
|
|
|
HRESULT WINAPI VarI1FromStr(OLECHAR*strIn, LCID lcid, ULONG dwFlags, CHAR*pcOut);
|
|
|
|
HRESULT WINAPI VarI1FromBool(VARIANT_BOOL boolIn, CHAR*pcOut);
|
|
|
|
HRESULT WINAPI VarI1FromUI2(USHORT uiIn, CHAR*pcOut);
|
|
|
|
HRESULT WINAPI VarI1FromUI4(ULONG ulIn, CHAR*pcOut);
|
|
|
|
HRESULT WINAPI VarI1FromCy(CY cyIn, CHAR*pcOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
/*
|
1998-12-11 11:40:43 +01:00
|
|
|
HRESULT WINAPI VarI1FromDec32(DECIMAL*pdecIn, CHAR*pcOut);
|
|
|
|
HRESULT WINAPI VarI1FromDisp32(IDispatch*pdispIn, LCID lcid, CHAR*pcOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
*/
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI VarUI2FromUI1(BYTE bIn, USHORT*puiOut);
|
|
|
|
HRESULT WINAPI VarUI2FromI2(short uiIn, USHORT*puiOut);
|
|
|
|
HRESULT WINAPI VarUI2FromI4(LONG lIn, USHORT*puiOut);
|
|
|
|
HRESULT WINAPI VarUI2FromR4(FLOAT fltIn, USHORT*puiOut);
|
|
|
|
HRESULT WINAPI VarUI2FromR8(double dblIn, USHORT*puiOut);
|
|
|
|
HRESULT WINAPI VarUI2FromDate(DATE dateIn, USHORT*puiOut);
|
|
|
|
HRESULT WINAPI VarUI2FromStr(OLECHAR*strIn, LCID lcid, ULONG dwFlags, USHORT*puiOut);
|
|
|
|
HRESULT WINAPI VarUI2FromBool(VARIANT_BOOL boolIn, USHORT*puiOut);
|
|
|
|
HRESULT WINAPI VarUI2FromI1(CHAR cIn, USHORT*puiOut);
|
|
|
|
HRESULT WINAPI VarUI2FromUI4(ULONG ulIn, USHORT*puiOut);
|
|
|
|
HRESULT WINAPI VarUI2FromCy(CY cyIn, USHORT*puiOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
/*
|
1998-12-11 11:40:43 +01:00
|
|
|
HRESULT WINAPI VarUI2FromDec32(DECIMAL*pdecIn, USHORT*puiOut);
|
|
|
|
HRESULT WINAPI VarUI2FromDisp32(IDispatch*pdispIn, LCID lcid, USHORT*puiOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
*/
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI VarUI4FromStr(OLECHAR*strIn, LCID lcid, ULONG dwFlags, ULONG*pulOut);
|
|
|
|
HRESULT WINAPI VarUI4FromUI1(BYTE bIn, ULONG*pulOut);
|
|
|
|
HRESULT WINAPI VarUI4FromI2(short uiIn, ULONG*pulOut);
|
|
|
|
HRESULT WINAPI VarUI4FromI4(LONG lIn, ULONG*pulOut);
|
|
|
|
HRESULT WINAPI VarUI4FromR4(FLOAT fltIn, ULONG*pulOut);
|
|
|
|
HRESULT WINAPI VarUI4FromR8(double dblIn, ULONG*pulOut);
|
|
|
|
HRESULT WINAPI VarUI4FromDate(DATE dateIn, ULONG*pulOut);
|
|
|
|
HRESULT WINAPI VarUI4FromBool(VARIANT_BOOL boolIn, ULONG*pulOut);
|
|
|
|
HRESULT WINAPI VarUI4FromI1(CHAR cIn, ULONG*pulOut);
|
|
|
|
HRESULT WINAPI VarUI4FromUI2(USHORT uiIn, ULONG*pulOut);
|
|
|
|
HRESULT WINAPI VarUI4FromCy(CY cyIn, ULONG*pulOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
/*
|
1998-12-11 11:40:43 +01:00
|
|
|
HRESULT WINAPI VarUI4FromDec32(DECIMAL*pdecIn, ULONG*pulOut);
|
|
|
|
HRESULT WINAPI VarUI4FromDisp32(IDispatch*pdispIn, LCID lcid, ULONG*pulOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
|
1998-12-11 11:40:43 +01:00
|
|
|
HRESULT WINAPI VarDecFromUI132(BYTE bIn, DECIMAL*pdecOut);
|
|
|
|
HRESULT WINAPI VarDecFromI232(short uiIn, DECIMAL*pdecOut);
|
|
|
|
HRESULT WINAPI VarDecFromI432(LONG lIn, DECIMAL*pdecOut);
|
|
|
|
HRESULT WINAPI VarDecFromR432(FLOAT fltIn, DECIMAL*pdecOut);
|
|
|
|
HRESULT WINAPI VarDecFromR832(double dblIn, DECIMAL*pdecOut);
|
|
|
|
HRESULT WINAPI VarDecFromDate32(DATE dateIn, DECIMAL*pdecOut);
|
|
|
|
HRESULT WINAPI VarDecFromStr32(OLECHAR32*strIn, LCID lcid, ULONG dwFlags, DECIMAL*pdecOut);
|
|
|
|
HRESULT WINAPI VarDecFromBool32(VARIANT_BOOL boolIn, DECIMAL*pdecOut);
|
|
|
|
HRESULT WINAPI VarDecFromI132(CHAR cIn, DECIMAL*pdecOut);
|
|
|
|
HRESULT WINAPI VarDecFromUI232(USHORT uiIn, DECIMAL*pdecOut);
|
|
|
|
HRESULT WINAPI VarDecFromUI432(ULONG ulIn, DECIMAL*pdecOut);
|
|
|
|
HRESULT WINAPI VarDecFromCy32(CY cyIn, DECIMAL*pdecOut);
|
|
|
|
HRESULT WINAPI VarDecFromDisp32(IDispatch*pdispIn, LCID lcid, DECIMAL*pdecOut);
|
1998-12-10 11:00:38 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define VarUI4FromUI4( in, pOut ) ( *(pOut) = (in) )
|
|
|
|
#define VarI4FromI4( in, pOut ) ( *(pOut) = (in) )
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
#define VarUI1FromInt VarUI1FromI4
|
|
|
|
#define VarUI1FromUint VarUI1FromUI4
|
|
|
|
#define VarI2FromInt VarI2FromI4
|
|
|
|
#define VarI2FromUint VarI2FromUI4
|
|
|
|
#define VarI4FromInt VarI4FromI432
|
|
|
|
#define VarI4FromUint VarI4FromUI4
|
|
|
|
#define VarR4FromInt VarR4FromI4
|
|
|
|
#define VarR4FromUint VarR4FromUI4
|
|
|
|
#define VarR8FromInt VarR8FromI4
|
|
|
|
#define VarR8FromUint VarR8FromUI4
|
|
|
|
#define VarDateFromInt VarDateFromI4
|
|
|
|
#define VarDateFromUint VarDateFromUI4
|
|
|
|
#define VarCyFromInt VarCyFromI4
|
|
|
|
#define VarCyFromUint VarCyFromUI4
|
|
|
|
#define VarBstrFromInt VarBstrFromI4
|
|
|
|
#define VarBstrFromUint VarBstrFromUI4
|
|
|
|
#define VarBoolFromInt VarBoolFromI4
|
|
|
|
#define VarBoolFromUint VarBoolFromUI4
|
|
|
|
#define VarI1FromInt VarI1FromI4
|
|
|
|
#define VarI1FromUint VarI1FromUI4
|
|
|
|
#define VarUI2FromInt VarUI2FromI4
|
|
|
|
#define VarUI2FromUint VarUI2FromUI4
|
|
|
|
#define VarUI4FromInt VarUI4FromI4
|
|
|
|
#define VarUI4FromUint VarUI4FromUI432
|
|
|
|
#define VarDecFromInt VarDecFromI432
|
|
|
|
#define VarDecFromUint VarDecFromUI432
|
|
|
|
#define VarIntFromUI1 VarI4FromUI1
|
|
|
|
#define VarIntFromI2 VarI4FromI2
|
|
|
|
#define VarIntFromI4 VarI4FromI432
|
|
|
|
#define VarIntFromR4 VarI4FromR4
|
|
|
|
#define VarIntFromR8 VarI4FromR8
|
|
|
|
#define VarIntFromDate VarI4FromDate
|
|
|
|
#define VarIntFromCy VarI4FromCy
|
|
|
|
#define VarIntFromStr VarI4FromStr
|
|
|
|
#define VarIntFromDisp VarI4FromDisp32
|
|
|
|
#define VarIntFromBool VarI4FromBool
|
|
|
|
#define VarIntFromI1 VarI4FromI1
|
|
|
|
#define VarIntFromUI2 VarI4FromUI2
|
|
|
|
#define VarIntFromUI4 VarI4FromUI4
|
|
|
|
#define VarIntFromDec VarI4FromDec32
|
|
|
|
#define VarIntFromUint VarI4FromUI4
|
|
|
|
#define VarUintFromUI1 VarUI4FromUI1
|
|
|
|
#define VarUintFromI2 VarUI4FromI2
|
|
|
|
#define VarUintFromI4 VarUI4FromI4
|
|
|
|
#define VarUintFromR4 VarUI4FromR4
|
|
|
|
#define VarUintFromR8 VarUI4FromR8
|
|
|
|
#define VarUintFromDate VarUI4FromDate
|
|
|
|
#define VarUintFromCy VarUI4FromCy
|
|
|
|
#define VarUintFromStr VarUI4FromStr
|
|
|
|
#define VarUintFromDisp VarUI4FromDisp32
|
|
|
|
#define VarUintFromBool VarUI4FromBool
|
|
|
|
#define VarUintFromI1 VarUI4FromI1
|
|
|
|
#define VarUintFromUI2 VarUI4FromUI2
|
|
|
|
#define VarUintFromUI4 VarUI4FromUI432
|
|
|
|
#define VarUintFromDec VarUI4FromDec32
|
|
|
|
#define VarUintFromInt VarUI4FromI4
|
1998-12-10 11:00:38 +01:00
|
|
|
|
2000-10-12 22:41:56 +02:00
|
|
|
/*
|
|
|
|
* Variant Math operations
|
|
|
|
*/
|
|
|
|
#define VARCMP_LT 0
|
|
|
|
#define VARCMP_EQ 1
|
|
|
|
#define VARCMP_GT 2
|
|
|
|
#define VARCMP_NULL 3
|
|
|
|
|
|
|
|
HRESULT WINAPI VarAdd(LPVARIANT,LPVARIANT,LPVARIANT);
|
|
|
|
HRESULT WINAPI VarAnd(LPVARIANT,LPVARIANT,LPVARIANT);
|
|
|
|
HRESULT WINAPI VarCat(LPVARIANT,LPVARIANT,LPVARIANT);
|
|
|
|
HRESULT WINAPI VarDiv(LPVARIANT,LPVARIANT,LPVARIANT);
|
|
|
|
HRESULT WINAPI VarEqv(LPVARIANT,LPVARIANT,LPVARIANT);
|
|
|
|
HRESULT WINAPI VarIdiv(LPVARIANT,LPVARIANT,LPVARIANT);
|
|
|
|
HRESULT WINAPI VarImp(LPVARIANT,LPVARIANT,LPVARIANT);
|
|
|
|
HRESULT WINAPI VarMod(LPVARIANT,LPVARIANT,LPVARIANT);
|
|
|
|
HRESULT WINAPI VarMul(LPVARIANT,LPVARIANT,LPVARIANT);
|
|
|
|
HRESULT WINAPI VarOr(LPVARIANT,LPVARIANT,LPVARIANT);
|
|
|
|
HRESULT WINAPI VarPow(LPVARIANT,LPVARIANT,LPVARIANT);
|
|
|
|
HRESULT WINAPI VarSub(LPVARIANT,LPVARIANT,LPVARIANT);
|
|
|
|
HRESULT WINAPI VarXor(LPVARIANT,LPVARIANT,LPVARIANT);
|
|
|
|
|
|
|
|
HRESULT WINAPI VarAbs(LPVARIANT,LPVARIANT);
|
|
|
|
HRESULT WINAPI VarFix(LPVARIANT,LPVARIANT);
|
|
|
|
HRESULT WINAPI VarInt(LPVARIANT,LPVARIANT);
|
|
|
|
HRESULT WINAPI VarNeg(LPVARIANT,LPVARIANT);
|
|
|
|
HRESULT WINAPI VarNot(LPVARIANT,LPVARIANT);
|
|
|
|
|
|
|
|
HRESULT WINAPI VarRound(LPVARIANT,int,LPVARIANT);
|
|
|
|
|
|
|
|
HRESULT WINAPI VarCmp(LPVARIANT,LPVARIANT,LCID,ULONG);
|
|
|
|
|
|
|
|
|
|
|
|
|
1999-02-17 18:45:54 +01:00
|
|
|
typedef struct tagPARAMDATA {
|
2000-09-27 00:20:14 +02:00
|
|
|
OLECHAR * szName; /* parameter name */
|
1999-02-17 18:45:54 +01:00
|
|
|
VARTYPE vt; /* parameter type */
|
|
|
|
} PARAMDATA, * LPPARAMDATA;
|
|
|
|
|
|
|
|
typedef struct tagMETHODDATA {
|
2000-09-27 00:20:14 +02:00
|
|
|
OLECHAR * szName; /* method name */
|
|
|
|
PARAMDATA * ppdata; /* pointer to an array of PARAMDATAs */
|
1999-02-17 18:45:54 +01:00
|
|
|
DISPID dispid; /* method ID */
|
2000-09-27 00:20:14 +02:00
|
|
|
UINT iMeth; /* method index */
|
1999-02-17 18:45:54 +01:00
|
|
|
CALLCONV cc; /* calling convention */
|
2000-09-27 00:20:14 +02:00
|
|
|
UINT cArgs; /* count of arguments */
|
1999-02-17 18:45:54 +01:00
|
|
|
WORD wFlags; /* same wFlags as on IDispatch::Invoke() */
|
|
|
|
VARTYPE vtReturn;
|
|
|
|
} METHODDATA, * LPMETHODDATA;
|
|
|
|
|
|
|
|
typedef struct tagINTERFACEDATA {
|
|
|
|
METHODDATA * pmethdata; /* pointer to an array of METHODDATAs */
|
2000-09-27 00:20:14 +02:00
|
|
|
UINT cMembers; /* count of members */
|
1999-02-17 18:45:54 +01:00
|
|
|
} INTERFACEDATA, * LPINTERFACEDATA;
|
|
|
|
|
1999-09-29 14:15:05 +02:00
|
|
|
typedef enum tagREGKIND
|
|
|
|
{
|
|
|
|
REGKIND_DEFAULT,
|
|
|
|
REGKIND_REGISTER,
|
|
|
|
REGKIND_NONE
|
|
|
|
} REGKIND;
|
|
|
|
|
|
|
|
|
2000-05-03 19:42:40 +02:00
|
|
|
INT WINAPI DosDateTimeToVariantTime(USHORT,USHORT,DATE*);
|
1999-09-29 14:15:05 +02:00
|
|
|
|
2000-09-19 04:43:00 +02:00
|
|
|
HRESULT WINAPI DispGetParam(DISPPARAMS* pdispparams, UINT position,
|
|
|
|
VARTYPE vtTarg, VARIANT* pvarResult, UINT* puArgErr);
|
|
|
|
HRESULT WINAPI DispGetIDsOfNames(ITypeInfo* ptinfo, OLECHAR** rgszNames,
|
|
|
|
UINT cNames, DISPID* rgdispid);
|
|
|
|
HRESULT WINAPI DispInvoke(void* _this, ITypeInfo* ptinfo, DISPID dispidMember,
|
|
|
|
WORD wFlags, DISPPARAMS* pparams, VARIANT* pvarResult,
|
|
|
|
EXCEPINFO* pexcepinfo, UINT* puArgErr);
|
|
|
|
HRESULT WINAPI CreateDispTypeInfo(INTERFACEDATA* pidata, LCID lcid,
|
|
|
|
ITypeInfo** pptinfo);
|
|
|
|
HRESULT WINAPI CreateStdDispatch(IUnknown* punkOuter, void* pvThis,
|
|
|
|
ITypeInfo* ptinfo, IUnknown** ppunkStdDisp);
|
|
|
|
HRESULT WINAPI DispCallFunc(void* pvInstance, ULONG oVft, CALLCONV cc,
|
|
|
|
VARTYPE vtReturn, UINT cActuals, VARTYPE* prgvt,
|
|
|
|
VARIANTARG** prgpvarg, VARIANT* pvargResult);
|
|
|
|
|
2000-09-28 00:31:28 +02:00
|
|
|
#define VARCMP_LT 0
|
|
|
|
#define VARCMP_EQ 1
|
|
|
|
#define VARCMP_GT 2
|
|
|
|
#define VARCMP_NULL 3
|
2000-09-19 04:43:00 +02:00
|
|
|
|
2000-10-03 06:09:32 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TypeLib API
|
|
|
|
*/
|
|
|
|
|
|
|
|
HRESULT WINAPI CreateTypeLib(SYSKIND,const OLECHAR*,ICreateTypeLib**);
|
|
|
|
HRESULT WINAPI CreateTypeLib2(SYSKIND,LPCOLESTR,ICreateTypeLib2**);
|
|
|
|
HRESULT WINAPI LoadRegTypeLib(REFGUID,WORD,WORD,LCID,ITypeLib**);
|
|
|
|
HRESULT WINAPI LoadTypeLib(const OLECHAR*,ITypeLib**);
|
|
|
|
HRESULT WINAPI LoadTypeLibEx(LPCOLESTR,REGKIND,ITypeLib**);
|
|
|
|
HRESULT WINAPI QueryPathOfRegTypeLib(REFGUID,WORD,WORD,LCID,LPBSTR);
|
|
|
|
HRESULT WINAPI RegisterTypeLib(ITypeLib*,OLECHAR*,OLECHAR*);
|
|
|
|
HRESULT WINAPI UnRegisterTypeLib(REFGUID,WORD,WORD,LCID,SYSKIND);
|
|
|
|
|
2000-10-19 22:32:18 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
2000-10-03 06:09:32 +02:00
|
|
|
|
1998-12-10 11:00:38 +01:00
|
|
|
#endif /*__WINE_OLEAUTO_H*/
|