1999-01-17 17:32:32 +01:00
|
|
|
/*
|
|
|
|
* Defines the basic types used by COM interfaces.
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* Copyright (C) the Wine project
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1999-01-17 17:32:32 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_WTYPES_H
|
|
|
|
#define __WINE_WTYPES_H
|
|
|
|
|
2000-08-02 03:00:02 +02:00
|
|
|
#include "basetsd.h"
|
2000-08-03 06:19:24 +02:00
|
|
|
#include "guiddef.h"
|
2000-07-15 21:53:50 +02:00
|
|
|
#include "rpc.h"
|
2000-11-08 06:06:10 +01:00
|
|
|
#include "rpcndr.h"
|
1999-02-17 18:45:54 +01:00
|
|
|
|
2001-01-02 23:31:07 +01:00
|
|
|
typedef void* HMETAFILEPICT;
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
typedef WORD CLIPFORMAT, *LPCLIPFORMAT;
|
1999-01-17 17:32:32 +01:00
|
|
|
|
2000-09-27 00:20:14 +02:00
|
|
|
/* FIXME: does not belong here */
|
1999-01-17 17:32:32 +01:00
|
|
|
typedef CHAR OLECHAR16;
|
|
|
|
typedef LPSTR LPOLESTR16;
|
|
|
|
typedef LPCSTR LPCOLESTR16;
|
|
|
|
typedef OLECHAR16 *BSTR16;
|
|
|
|
typedef BSTR16 *LPBSTR16;
|
2000-09-27 00:20:14 +02:00
|
|
|
#define OLESTR16(x) x
|
|
|
|
|
2000-12-19 05:50:49 +01:00
|
|
|
typedef WCHAR OLECHAR;
|
|
|
|
typedef LPWSTR LPOLESTR;
|
|
|
|
typedef LPCWSTR LPCOLESTR;
|
|
|
|
typedef OLECHAR *BSTR;
|
|
|
|
typedef BSTR *LPBSTR;
|
|
|
|
#ifndef __WINE__
|
|
|
|
#define OLESTR(str) WINE_UNICODE_TEXT(str)
|
|
|
|
#endif
|
1999-01-17 17:32:32 +01:00
|
|
|
|
2000-08-02 03:00:02 +02:00
|
|
|
#ifndef _DWORDLONG_
|
|
|
|
#define _DWORDLONG_
|
2002-09-12 19:29:12 +02:00
|
|
|
typedef unsigned __int64 DWORDLONG, *PDWORDLONG;
|
2000-08-02 03:00:02 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _ULONGLONG_
|
|
|
|
#define _ULONGLONG_
|
2002-09-12 19:29:12 +02:00
|
|
|
typedef signed __int64 LONGLONG, *PLONGLONG;
|
|
|
|
typedef unsigned __int64 ULONGLONG, *PULONGLONG;
|
2000-08-02 03:00:02 +02:00
|
|
|
#endif
|
|
|
|
|
1999-03-10 19:03:53 +01:00
|
|
|
typedef enum tagDVASPECT
|
2002-06-01 01:06:46 +02:00
|
|
|
{
|
1999-03-10 19:03:53 +01:00
|
|
|
DVASPECT_CONTENT = 1,
|
|
|
|
DVASPECT_THUMBNAIL = 2,
|
2002-06-01 01:06:46 +02:00
|
|
|
DVASPECT_ICON = 4,
|
1999-03-10 19:03:53 +01:00
|
|
|
DVASPECT_DOCPRINT = 8
|
|
|
|
} DVASPECT;
|
1999-01-17 17:32:32 +01:00
|
|
|
|
1999-03-14 14:47:00 +01:00
|
|
|
typedef enum tagSTGC
|
|
|
|
{
|
|
|
|
STGC_DEFAULT = 0,
|
|
|
|
STGC_OVERWRITE = 1,
|
|
|
|
STGC_ONLYIFCURRENT = 2,
|
2000-09-19 04:43:00 +02:00
|
|
|
STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE = 4,
|
|
|
|
STGC_CONSOLIDATE = 8
|
1999-03-14 14:47:00 +01:00
|
|
|
} STGC;
|
|
|
|
|
2000-09-19 04:43:00 +02:00
|
|
|
typedef enum tagSTGMOVE
|
2002-06-01 01:06:46 +02:00
|
|
|
{
|
2000-09-19 04:43:00 +02:00
|
|
|
STGMOVE_MOVE = 0,
|
|
|
|
STGMOVE_COPY = 1,
|
|
|
|
STGMOVE_SHALLOWCOPY = 2
|
|
|
|
} STGMOVE;
|
|
|
|
|
|
|
|
|
1999-02-17 18:45:54 +01:00
|
|
|
typedef struct _COAUTHIDENTITY
|
|
|
|
{
|
|
|
|
USHORT* User;
|
|
|
|
ULONG UserLength;
|
|
|
|
USHORT* Domain;
|
|
|
|
ULONG DomainLength;
|
|
|
|
USHORT* Password;
|
|
|
|
ULONG PasswordLength;
|
|
|
|
ULONG Flags;
|
|
|
|
} COAUTHIDENTITY;
|
|
|
|
|
|
|
|
typedef struct _COAUTHINFO
|
|
|
|
{
|
|
|
|
DWORD dwAuthnSvc;
|
|
|
|
DWORD dwAuthzSvc;
|
|
|
|
LPWSTR pwszServerPrincName;
|
|
|
|
DWORD dwAuthnLevel;
|
|
|
|
DWORD dwImpersonationLevel;
|
|
|
|
COAUTHIDENTITY* pAuthIdentityData;
|
|
|
|
DWORD dwCapabilities;
|
|
|
|
} COAUTHINFO;
|
|
|
|
|
|
|
|
typedef struct _COSERVERINFO
|
|
|
|
{
|
|
|
|
DWORD dwReserved1;
|
|
|
|
LPWSTR pwszName;
|
|
|
|
COAUTHINFO* pAuthInfo;
|
|
|
|
DWORD dwReserved2;
|
|
|
|
} COSERVERINFO;
|
|
|
|
|
1999-01-17 17:32:32 +01:00
|
|
|
typedef enum tagCLSCTX
|
|
|
|
{
|
|
|
|
CLSCTX_INPROC_SERVER = 0x1,
|
|
|
|
CLSCTX_INPROC_HANDLER = 0x2,
|
|
|
|
CLSCTX_LOCAL_SERVER = 0x4,
|
|
|
|
CLSCTX_INPROC_SERVER16 = 0x8,
|
|
|
|
CLSCTX_REMOTE_SERVER = 0x10,
|
|
|
|
CLSCTX_INPROC_HANDLER16 = 0x20,
|
|
|
|
CLSCTX_INPROC_SERVERX86 = 0x40,
|
2000-09-28 00:31:28 +02:00
|
|
|
CLSCTX_INPROC_HANDLERX86 = 0x80,
|
2002-08-03 02:17:10 +02:00
|
|
|
CLSCTX_ESERVER_HANDLER = 0x100,
|
|
|
|
CLSCTX_NO_CODE_DOWNLOAD = 0x400,
|
|
|
|
CLSCTX_NO_CUSTOM_MARSHAL = 0x1000,
|
|
|
|
CLSCTX_ENABLE_CODE_DOWNLOAD = 0x2000,
|
|
|
|
CLSCTX_NO_FAILURE_LOG = 0x4000,
|
|
|
|
CLSCTX_DISABLE_AAA = 0x8000,
|
|
|
|
CLSCTX_ENABLE_AAA = 0x10000,
|
|
|
|
CLSCTX_FROM_DEFAULT_CONTEXT = 0x20000
|
1999-01-17 17:32:32 +01:00
|
|
|
} CLSCTX;
|
|
|
|
|
|
|
|
#define CLSCTX_INPROC (CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER)
|
|
|
|
#define CLSCTX_ALL (CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER)
|
|
|
|
#define CLSCTX_SERVER (CLSCTX_INPROC_SERVER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER)
|
|
|
|
|
2000-09-28 00:31:28 +02:00
|
|
|
typedef enum tagMSHLFLAGS
|
|
|
|
{
|
|
|
|
MSHLFLAGS_NORMAL = 0,
|
|
|
|
MSHLFLAGS_TABLESTRONG = 1,
|
|
|
|
MSHLFLAGS_TABLEWEAK = 2,
|
|
|
|
MSHLFLAGS_NOPING = 4
|
|
|
|
} MSHLFLAGS;
|
|
|
|
|
|
|
|
typedef enum tagMSHCTX
|
|
|
|
{
|
|
|
|
MSHCTX_LOCAL = 0,
|
|
|
|
MSHCTX_NOSHAREDMEM = 1,
|
|
|
|
MSHCTX_DIFFERENTMACHINE = 2,
|
2002-08-03 02:17:10 +02:00
|
|
|
MSHCTX_INPROC = 3,
|
|
|
|
MSHCTX_CROSSCTX = 4
|
2000-09-28 00:31:28 +02:00
|
|
|
} MSHCTX;
|
|
|
|
|
1999-02-17 18:45:54 +01:00
|
|
|
typedef unsigned short VARTYPE;
|
|
|
|
|
|
|
|
typedef ULONG PROPID;
|
|
|
|
|
1999-06-05 17:23:20 +02:00
|
|
|
#ifndef _tagBLOB_DEFINED
|
|
|
|
#define _tagBLOB_DEFINED
|
|
|
|
#define _BLOB_DEFINED
|
|
|
|
#define _LPBLOB_DEFINED
|
1999-02-17 18:45:54 +01:00
|
|
|
typedef struct tagBLOB
|
|
|
|
{
|
|
|
|
ULONG cbSize;
|
|
|
|
BYTE *pBlobData;
|
1999-06-05 17:23:20 +02:00
|
|
|
} BLOB, *LPBLOB;
|
|
|
|
#endif
|
1999-02-17 18:45:54 +01:00
|
|
|
|
|
|
|
#ifndef _tagCY_DEFINED
|
|
|
|
#define _tagCY_DEFINED
|
1999-09-19 16:20:33 +02:00
|
|
|
|
|
|
|
typedef union tagCY {
|
1999-02-17 18:45:54 +01:00
|
|
|
struct {
|
2002-06-25 05:03:19 +02:00
|
|
|
#ifdef WORDS_BIGENDIAN
|
1999-09-19 16:20:33 +02:00
|
|
|
LONG Hi;
|
2002-06-21 01:07:55 +02:00
|
|
|
ULONG Lo;
|
2002-06-25 05:03:19 +02:00
|
|
|
#else
|
1999-09-19 16:20:33 +02:00
|
|
|
ULONG Lo;
|
|
|
|
LONG Hi;
|
2002-06-25 05:03:19 +02:00
|
|
|
#endif
|
1999-09-19 16:20:33 +02:00
|
|
|
} DUMMYSTRUCTNAME;
|
1999-02-17 18:45:54 +01:00
|
|
|
LONGLONG int64;
|
|
|
|
} CY;
|
1999-09-19 16:20:33 +02:00
|
|
|
|
1999-02-17 18:45:54 +01:00
|
|
|
#endif /* _tagCY_DEFINED */
|
|
|
|
|
2001-05-07 20:15:38 +02:00
|
|
|
typedef struct tagDEC {
|
|
|
|
USHORT wReserved;
|
|
|
|
union {
|
|
|
|
struct {
|
|
|
|
BYTE scale;
|
|
|
|
BYTE sign;
|
|
|
|
} DUMMYSTRUCTNAME1;
|
|
|
|
USHORT signscale;
|
|
|
|
} DUMMYUNIONNAME1;
|
|
|
|
ULONG Hi32;
|
|
|
|
union {
|
|
|
|
struct {
|
2002-06-25 05:03:19 +02:00
|
|
|
#ifdef WORDS_BIGENDIAN
|
2001-05-07 20:15:38 +02:00
|
|
|
ULONG Mid32;
|
|
|
|
ULONG Lo32;
|
2002-06-25 05:03:19 +02:00
|
|
|
#else
|
2001-05-07 20:15:38 +02:00
|
|
|
ULONG Lo32;
|
|
|
|
ULONG Mid32;
|
2002-06-25 05:03:19 +02:00
|
|
|
#endif
|
2001-05-07 20:15:38 +02:00
|
|
|
} DUMMYSTRUCTNAME2;
|
|
|
|
ULONGLONG Lo64;
|
|
|
|
} DUMMYUNIONNAME2;
|
|
|
|
} DECIMAL;
|
|
|
|
|
|
|
|
#define DECIMAL_NEG ((BYTE)0x80)
|
|
|
|
#ifndef NONAMELESSUNION
|
|
|
|
#define DECIMAL_SETZERO(d) \
|
|
|
|
do {(d).Lo64 = 0; (d).Hi32 = 0; (d).signscale = 0;} while (0)
|
|
|
|
#else
|
|
|
|
#define DECIMAL_SETZERO(d) \
|
|
|
|
do {(d).u2.Lo64 = 0; (d).Hi32 = 0; (d).u1.signscale = 0;} while (0)
|
|
|
|
#endif
|
|
|
|
|
1999-02-17 18:45:54 +01:00
|
|
|
/*
|
|
|
|
* 0 == FALSE and -1 == TRUE
|
|
|
|
*/
|
|
|
|
#define VARIANT_TRUE ((VARIANT_BOOL)0xFFFF)
|
|
|
|
#define VARIANT_FALSE ((VARIANT_BOOL)0x0000)
|
|
|
|
typedef short VARIANT_BOOL,_VARIANT_BOOL;
|
|
|
|
|
|
|
|
typedef struct tagCLIPDATA
|
|
|
|
{
|
|
|
|
ULONG cbSize;
|
|
|
|
long ulClipFmt;
|
|
|
|
BYTE *pClipData;
|
|
|
|
} CLIPDATA;
|
|
|
|
|
1999-04-22 18:27:50 +02:00
|
|
|
/* Macro to calculate the size of the above pClipData */
|
1999-02-17 18:45:54 +01:00
|
|
|
#define CBPCLIPDATA(clipdata) ( (clipdata).cbSize - sizeof((clipdata).ulClipFmt) )
|
|
|
|
|
|
|
|
typedef LONG SCODE;
|
|
|
|
|
|
|
|
#ifndef _FILETIME_
|
|
|
|
#define _FILETIME_
|
|
|
|
/* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
DWORD dwLowDateTime;
|
|
|
|
DWORD dwHighDateTime;
|
|
|
|
} FILETIME, *LPFILETIME;
|
|
|
|
#endif /* _FILETIME_ */
|
|
|
|
|
|
|
|
#ifndef _SECURITY_DEFINED
|
|
|
|
#define _SECURITY_DEFINED
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
BYTE Value[6];
|
|
|
|
} SID_IDENTIFIER_AUTHORITY,*PSID_IDENTIFIER_AUTHORITY;
|
|
|
|
|
|
|
|
typedef struct _SID {
|
|
|
|
BYTE Revision;
|
|
|
|
BYTE SubAuthorityCount;
|
|
|
|
SID_IDENTIFIER_AUTHORITY IdentifierAuthority;
|
|
|
|
DWORD SubAuthority[1];
|
|
|
|
} SID,*PSID;
|
|
|
|
|
|
|
|
/*
|
2002-06-01 01:06:46 +02:00
|
|
|
* ACL
|
1999-02-17 18:45:54 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct _ACL {
|
|
|
|
BYTE AclRevision;
|
|
|
|
BYTE Sbz1;
|
|
|
|
WORD AclSize;
|
|
|
|
WORD AceCount;
|
|
|
|
WORD Sbz2;
|
|
|
|
} ACL, *PACL;
|
|
|
|
|
2000-12-19 03:09:23 +01:00
|
|
|
typedef USHORT SECURITY_DESCRIPTOR_CONTROL, *PSECURITY_DESCRIPTOR_CONTROL;
|
1999-02-17 18:45:54 +01:00
|
|
|
|
|
|
|
/* The security descriptor structure */
|
|
|
|
typedef struct {
|
|
|
|
BYTE Revision;
|
|
|
|
BYTE Sbz1;
|
|
|
|
SECURITY_DESCRIPTOR_CONTROL Control;
|
|
|
|
PSID Owner;
|
|
|
|
PSID Group;
|
|
|
|
PACL Sacl;
|
|
|
|
PACL Dacl;
|
|
|
|
} SECURITY_DESCRIPTOR, *PSECURITY_DESCRIPTOR;
|
|
|
|
|
2000-10-13 01:15:29 +02:00
|
|
|
#endif /* _SECURITY_DEFINED */
|
|
|
|
|
1999-03-23 14:48:56 +01:00
|
|
|
#ifndef _ROTFLAGS_DEFINED
|
|
|
|
#define _ROTFLAGS_DEFINED
|
|
|
|
#define ROTFLAGS_REGISTRATIONKEEPSALIVE 0x1
|
|
|
|
#define ROTFLAGS_ALLOWANYCLIENT 0x2
|
1999-04-22 18:27:50 +02:00
|
|
|
#endif /* !defined(_ROTFLAGS_DEFINED) */
|
1999-03-23 14:48:56 +01:00
|
|
|
|
1999-01-17 17:32:32 +01:00
|
|
|
#endif /* __WINE_WTYPES_H */
|