29#define NONAMELESSUNION
100 IStream_AddRef(iface);
142 if (pcbRead) *pcbRead =
cb;
152 if (
This->data +
cb > (
unsigned char *)
This->pMsg->RpcMsg->Buffer +
This->pMsg->BufferLength)
157 if (pcbWritten) *pcbWritten =
cb;
168 case STREAM_SEEK_SET:
169 This->pos = move.
u.LowPart;
171 case STREAM_SEEK_CUR:
174 case STREAM_SEEK_END:
175 This->pos = *
This->size + move.
u.LowPart;
181 newPos->
u.LowPart =
This->pos;
182 newPos->
u.HighPart = 0;
191 *
This->size = newSize.
u.LowPart;
274 This->pMsg = pStubMsg;
290 TRACE(
"format=%02x %02x\n", pFormat[0], pFormat[1]);
291 if (pFormat[0] !=
FC_IP)
FIXME(
"format=%d\n", pFormat[0]);
293 riid = (
const IID *)&pFormat[2];
337 unsigned char **ppMemory,
339 unsigned char fMustAlloc)
345 TRACE(
"(%p,%p,%p,%d)\n", pStubMsg, ppMemory, pFormat, fMustAlloc);
350 IUnknown_Release(*unk);
397 TRACE(
"(%p,%p)\n", pStubMsg, pFormat);
426 return COM_MemAlloc(
Size);
435 COM_MemFree(NodeToFree);
450 r = COM_GetPSClsid( iid, &
clsid );
453 r = COM_GetClassObject( &
clsid, CLSCTX_INPROC_SERVER,
NULL, &IID_IPSFactoryBuffer, (
void**)&psfac );
456 r = IPSFactoryBuffer_CreateProxy(psfac, pUnkOuter, iid, pproxy,
ppv);
458 IPSFactoryBuffer_Release(psfac);
474 r = COM_GetPSClsid( iid, &
clsid );
477 r = COM_GetClassObject( &
clsid, CLSCTX_INPROC_SERVER,
NULL, &IID_IPSFactoryBuffer, (
void**)&psfac );
480 r = IPSFactoryBuffer_CreateStub(psfac, iid,
pUnk, ppstub);
482 IPSFactoryBuffer_Release(psfac);
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define GetProcAddress(x, y)
#define HeapFree(x, y, z)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
static void *static void *static LPDIRECTPLAY IUnknown * pUnk
GLdouble GLdouble GLdouble r
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
#define memcpy(s1, s2, n)
static HMODULE MODULEINFO DWORD cb
static PFORMAT_STRING ComputeConformance(PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pMemory, PFORMAT_STRING pFormat, ULONG def)
static HRESULT WINAPI RpcStream_Clone(IStream *iface, IStream **cloned)
static ULONG WINAPI RpcStream_Release(LPSTREAM iface)
static HRESULT WINAPI RpcStream_Revert(IStream *iface)
static const IStreamVtbl RpcStream_Vtbl
static HRESULT WINAPI RpcStream_Read(LPSTREAM iface, void *pv, ULONG cb, ULONG *pcbRead)
static HRESULT WINAPI RpcStream_UnlockRegion(IStream *iface, ULARGE_INTEGER offset, ULARGE_INTEGER len, DWORD locktype)
static HRESULT WINAPI RpcStream_SetSize(LPSTREAM iface, ULARGE_INTEGER newSize)
void *WINAPI NdrOleAllocate(SIZE_T Size)
HRESULT create_stub(REFIID iid, IUnknown *pUnk, IRpcStubBuffer **ppstub)
static HRESULT WINAPI RpcStream_Stat(IStream *iface, STATSTG *stat, DWORD flag)
unsigned char *WINAPI NdrInterfacePointerMarshall(PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pMemory, PFORMAT_STRING pFormat)
static HRESULT WINAPI RpcStream_Seek(LPSTREAM iface, LARGE_INTEGER move, DWORD origin, ULARGE_INTEGER *newPos)
static HRESULT RpcStream_Create(PMIDL_STUB_MESSAGE pStubMsg, BOOL init, ULONG *size, IStream **stream)
unsigned char *WINAPI NdrInterfacePointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg, unsigned char **ppMemory, PFORMAT_STRING pFormat, unsigned char fMustAlloc)
HRESULT create_proxy(REFIID iid, IUnknown *pUnkOuter, IRpcProxyBuffer **pproxy, void **ppv)
static HRESULT WINAPI RpcStream_QueryInterface(LPSTREAM iface, REFIID riid, LPVOID *obj)
static HMODULE LoadCOM(void)
static HRESULT WINAPI RpcStream_Commit(IStream *iface, DWORD flags)
static HRESULT WINAPI RpcStream_LockRegion(IStream *iface, ULARGE_INTEGER offset, ULARGE_INTEGER len, DWORD locktype)
void WINAPI NdrOleFree(void *NodeToFree)
static ULONG WINAPI RpcStream_AddRef(LPSTREAM iface)
void WINAPI NdrInterfacePointerBufferSize(PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pMemory, PFORMAT_STRING pFormat)
static HRESULT WINAPI RpcStream_Write(LPSTREAM iface, const void *pv, ULONG cb, ULONG *pcbWritten)
ULONG WINAPI NdrInterfacePointerMemorySize(PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat)
static HRESULT WINAPI RpcStream_CopyTo(IStream *iface, IStream *dest, ULARGE_INTEGER len, ULARGE_INTEGER *read, ULARGE_INTEGER *written)
static const IID * get_ip_iid(PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pMemory, PFORMAT_STRING pFormat)
static RpcStreamImpl * impl_from_IStream(IStream *iface)
void WINAPI NdrInterfacePointerFree(PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pMemory, PFORMAT_STRING pFormat)
interface IStream * LPSTREAM
#define IsEqualGUID(rguid1, rguid2)
const unsigned char * PFORMAT_STRING
void DECLSPEC_NORETURN WINAPI RpcRaiseException(RPC_STATUS exception)
struct _ULARGE_INTEGER::@4141 u
#define CONTAINING_RECORD(address, type, field)
struct _LARGE_INTEGER::@2303 u
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
#define STG_E_INVALIDFUNCTION