4 * Copyright 2007 Huw Davies
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
33 #include "wine/test.h"
36 static void test_CreateVirtualStream(void)
41 hr = MimeOleCreateVirtualStream(&pstm);
42 ok(hr == S_OK, "ret %08x\n", hr);
44 IStream_Release(pstm);
47 static void test_CreateSecurity(void)
52 hr = MimeOleCreateSecurity(&sec);
53 ok(hr == S_OK, "ret %08x\n", hr);
55 IMimeSecurity_Release(sec);
58 static void test_CreateBody(void)
62 HBODY handle = (void *)0xdeadbeef;
64 hr = CoCreateInstance(&CLSID_IMimeBody, NULL, CLSCTX_INPROC_SERVER, &IID_IMimeBody, (void**)&body);
65 ok(hr == S_OK, "ret %08x\n", hr);
67 hr = IMimeBody_GetHandle(body, &handle);
68 ok(hr == MIME_E_NO_DATA, "ret %08x\n", hr);
69 ok(handle == NULL, "handle %p\n", handle);
71 IMimeBody_Release(body);
77 test_CreateVirtualStream();
78 test_CreateSecurity();