1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Copyright <c> 1993 Microsoft Corporation
Module Name :
ndrp.h
Abtract :
Contains private definitions for Ndr files in this directory. This
file is included by all source files in this directory.
Author :
David Kays dkays October 1993
Revision History :
--------------------------------------------------------------------*/
#ifndef _WDTP_H_
#define _WDTP_H_
// Shortcut typedefs.
typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned long ulong;
typedef unsigned int uint;
#ifndef TRUE
#define TRUE (1)
#define FALSE (0)
typedef unsigned short BOOL;
#endif
#define NDR_ASSERT( Expr, S )
#if 0
#ifdef NEWNDR_INTERNAL
#include <assert.h>
#include <stdio.h>
#include <ntstatus.h>
#include <ntrtl.h>
#define NDR_ASSERT( Expr, S ) ASSERT( (Expr) || ! (S) )
#else
#include <ntrtl.h>
#define NDR_ASSERT( Expr, S ) ASSERT( (Expr) || ! (S) )
#endif
#endif
#define ALIGN( pStuff, cAlign ) \
pStuff = (unsigned char *)((ulong)((pStuff) + (cAlign)) & ~(cAlign))
#define LENGTH_ALIGN( Length, cAlign ) \
Length = (((Length) + (cAlign)) & ~ (cAlign))
#define PCHAR_LV_CAST *(char __RPC_FAR * __RPC_FAR *)&
#define PSHORT_LV_CAST *(short __RPC_FAR * __RPC_FAR *)&
#define PLONG_LV_CAST *(long __RPC_FAR * __RPC_FAR *)&
#define PHYPER_LV_CAST *(hyper __RPC_FAR * __RPC_FAR *)&
#define PUSHORT_LV_CAST *(unsigned short __RPC_FAR * __RPC_FAR *)&
#define PULONG_LV_CAST *(unsigned long __RPC_FAR * __RPC_FAR *)&
unsigned long __RPC_USER
WdtpInterfacePointer_UserSize (
USER_MARSHAL_CB * pContext,
unsigned long Flags,
unsigned long Offset,
IUnknown * pIf,
const IID & IId );
unsigned char __RPC_FAR * __RPC_USER
WdtpInterfacePointer_UserMarshal (
USER_MARSHAL_CB * pContext,
unsigned long Flags,
unsigned char * pBuffer,
IUnknown * pIf,
const IID & IId );
unsigned char __RPC_FAR * __RPC_USER
WdtpInterfacePointer_UserUnmarshal (
USER_MARSHAL_CB * pContext,
unsigned char * pBuffer,
IUnknown ** ppIf,
const IID & IId );
void __RPC_USER
WdtpInterfacePointer_UserFree(
IUnknown * pIf );
#define USER_MARSHAL_MARKER 0x72657355
#define WdtpMemoryCopy(Destination, Source, Length) \
RtlCopyMemory(Destination, Source, Length)
#define WdtpMemorySet(Destination, Source, Fill) \
RtlFillMemory(Destination, Length, Fill)
#define WdtpZeroMemory(Destination, Length) \
RtlZeroMemory(Destination, Length)
#define WdtpAllocate(p,size) \
((USER_MARSHAL_CB *)p)->pStubMsg->pfnAllocate( size )
#define WdtpFree(pf,ptr) \
((USER_MARSHAL_CB *)pf)->pStubMsg->pfnFree( ptr )
#endif // _WDTP_H_
|