2006-03-01 13:22:26 +01:00
|
|
|
/*
|
|
|
|
* NDR Types
|
|
|
|
*
|
|
|
|
* Copyright 2006 Robert Shearman (for CodeWeavers)
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __NDRTYPES_H__
|
|
|
|
#define __NDRTYPES_H__
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
unsigned short MustSize : 1; /* 0x0001 - client interpreter MUST size this
|
|
|
|
* parameter, other parameters may be skipped, using the value in
|
|
|
|
* NDR_PROC_PARTIAL_OIF_HEADER::constant_client_buffer_size instead. */
|
|
|
|
unsigned short MustFree : 1; /* 0x0002 - server interpreter MUST size this
|
|
|
|
* parameter, other parameters may be skipped, using the value in
|
|
|
|
* NDR_PROC_PARTIAL_OIF_HEADER::constant_server_buffer_size instead. */
|
|
|
|
unsigned short IsPipe : 1; /* 0x0004 - The parameter is a pipe handle. See
|
|
|
|
* http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rpc/rpc/pipes.asp
|
|
|
|
* for more information on pipes. */
|
|
|
|
unsigned short IsIn : 1; /* 0x0008 - The parameter is an input */
|
|
|
|
unsigned short IsOut : 1; /* 0x0010 - The parameter is an output */
|
|
|
|
unsigned short IsReturn : 1; /* 0x0020 - The parameter is to be returned */
|
|
|
|
unsigned short IsBasetype : 1; /* 0x0040 - The parameter is simple and has the
|
|
|
|
* format defined by NDR_PARAM_OIF_BASETYPE rather than by
|
|
|
|
* NDR_PARAM_OIF_OTHER. */
|
|
|
|
unsigned short IsByValue : 1; /* 0x0080 - Set for compound types being sent by
|
|
|
|
* value. Can be of type: structure, union, transmit_as, represent_as,
|
|
|
|
* wire_marshal and SAFEARRAY. */
|
|
|
|
unsigned short IsSimpleRef : 1; /* 0x0100 - parameter that is a reference
|
|
|
|
* pointer to anything other than another pointer, and which has no
|
|
|
|
* allocate attributes. */
|
|
|
|
unsigned short IsDontCallFreeInst : 1; /* 0x0200 - Used for some represent_as types
|
|
|
|
* for when the free instance routine should not be called. */
|
|
|
|
unsigned short SaveForAsyncFinish : 1; /* 0x0400 - Unknown */
|
|
|
|
unsigned short Unused : 2;
|
|
|
|
unsigned short ServerAllocSize : 3; /* 0xe000 - If non-zero
|
|
|
|
* specifies the size of the object in numbers of 8byte blocks needed.
|
|
|
|
* It will be stored on the server's stack rather than using an allocate
|
|
|
|
* call. */
|
|
|
|
} PARAM_ATTRIBUTES;
|
|
|
|
|
2006-04-20 12:44:27 +02:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
unsigned char ServerMustSize : 1; /* 0x01 - the server must perform a
|
|
|
|
* sizing pass. */
|
|
|
|
unsigned char ClientMustSize : 1; /* 0x02 - the client must perform a
|
|
|
|
* sizing pass. */
|
|
|
|
unsigned char HasReturn : 1; /* 0x04 - procedure has a return value. */
|
|
|
|
unsigned char HasPipes : 1; /* 0x08 - the pipe package should be used. */
|
|
|
|
unsigned char Unused : 1; /* 0x10 - not used */
|
|
|
|
unsigned char HasAsyncUuid : 1; /* 0x20 - indicates an asynchronous DCOM
|
|
|
|
* procedure. */
|
|
|
|
unsigned char HasExtensions : 1; /* 0x40 - indicates that Win2000
|
|
|
|
* extensions are in use. */
|
|
|
|
unsigned char HasAsyncHandle : 1; /* 0x80 - indicates an asynchronous RPC
|
|
|
|
* procedure. */
|
|
|
|
} INTERPRETER_OPT_FLAGS, *PINTERPRETER_OPT_FLAGS;
|
|
|
|
|
2006-04-20 12:44:41 +02:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
unsigned char HasNewCorrDesc : 1; /* 0x01 - indicates new correlation
|
|
|
|
* descriptors in use. */
|
|
|
|
unsigned char ClientCorrCheck : 1; /* 0x02 - client needs correlation
|
|
|
|
* check. */
|
|
|
|
unsigned char ServerCorrCheck : 1; /* 0x04 - server needs correlation
|
|
|
|
* check. */
|
|
|
|
unsigned char HasNotify : 1; /* 0x08 - should call MIDL [notify]
|
|
|
|
* routine @ NotifyIndex. */
|
|
|
|
unsigned char HasNotify2 : 1; /* 0x10 - should call MIDL [notify_flag] routine @
|
|
|
|
* NotifyIndex. */
|
|
|
|
unsigned char Unused : 3;
|
|
|
|
} INTERPRETER_OPT_FLAGS2, *PINTERPRETER_OPT_FLAGS2;
|
|
|
|
|
|
|
|
/* Win2000 extensions */
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
/* size in bytes of all following extensions */
|
|
|
|
unsigned char Size;
|
|
|
|
|
|
|
|
INTERPRETER_OPT_FLAGS2 Flags2;
|
|
|
|
|
|
|
|
/* client cache size hint */
|
|
|
|
unsigned short ClientCorrHint;
|
|
|
|
|
|
|
|
/* server cache size hint */
|
|
|
|
unsigned short ServerCorrHint;
|
|
|
|
|
|
|
|
/* index of routine in MIDL_STUB_DESC::NotifyRoutineTable to call if
|
|
|
|
* HasNotify or HasNotify2 flag set */
|
|
|
|
unsigned short NotifyIndex;
|
|
|
|
} NDR_PROC_HEADER_EXTS;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
/* size in bytes of all following extensions */
|
|
|
|
unsigned char Size;
|
|
|
|
|
|
|
|
INTERPRETER_OPT_FLAGS2 Flags2;
|
|
|
|
|
|
|
|
/* client cache size hint */
|
|
|
|
unsigned short ClientCorrHint;
|
|
|
|
|
|
|
|
/* server cache size hint */
|
|
|
|
unsigned short ServerCorrHint;
|
|
|
|
|
|
|
|
/* index of routine in MIDL_STUB_DESC::NotifyRoutineTable to call if
|
|
|
|
* HasNotify or HasNotify2 flag set */
|
|
|
|
unsigned short NotifyIndex;
|
|
|
|
|
|
|
|
/* needed only on IA64 to cope with float/register loading */
|
|
|
|
unsigned short FloatArgMask;
|
|
|
|
} NDR_PROC_HEADER_EXTS64;
|
|
|
|
|
2006-04-26 16:40:38 +02:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
FC_BYTE = 0x01, /* 0x01 */
|
|
|
|
FC_CHAR, /* 0x02 */
|
|
|
|
FC_SMALL, /* 0x03 */
|
|
|
|
FC_USMALL, /* 0x04 */
|
|
|
|
FC_WCHAR, /* 0x05 */
|
|
|
|
FC_SHORT, /* 0x06 */
|
|
|
|
FC_USHORT, /* 0x07 */
|
|
|
|
FC_LONG, /* 0x08 */
|
|
|
|
FC_ULONG, /* 0x09 */
|
|
|
|
FC_FLOAT, /* 0x0a */
|
|
|
|
FC_HYPER, /* 0x0b */
|
|
|
|
FC_DOUBLE, /* 0x0c */
|
|
|
|
FC_ENUM16, /* 0x0d */
|
|
|
|
FC_ENUM32, /* 0x0e */
|
|
|
|
FC_IGNORE, /* 0x0f */
|
|
|
|
FC_ERROR_STATUS_T, /* 0x10 */
|
|
|
|
|
|
|
|
FC_RP, /* 0x11 */ /* reference pointer */
|
|
|
|
FC_UP, /* 0x12 */ /* unique pointer */
|
|
|
|
FC_OP, /* 0x13 */ /* object pointer */
|
|
|
|
FC_FP, /* 0x14 */ /* full pointer */
|
|
|
|
} FORMAT_CHARACTER;
|
|
|
|
|
2006-03-01 13:22:26 +01:00
|
|
|
#endif
|