ReactOS
0.4.17-dev-806-gffa4164
hlink_private.h
Go to the documentation of this file.
1
/*
2
* Copyright 2007 Jacek Caban for CodeWeavers
3
*
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2.1 of the License, or (at your option) any later version.
8
*
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
13
*
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17
*/
18
19
#pragma once
20
#include <stdarg.h>
21
22
#define COBJMACROS
23
24
#include "
winerror.h
"
25
#include "
windef.h
"
26
#include "
winbase.h
"
27
#include "
winuser.h
"
28
#include "
ole2.h
"
29
#include "hlink.h"
30
31
extern
HRESULT
HLink_Constructor
(
IUnknown
*,
REFIID
,
void
**);
32
extern
HRESULT
HLinkBrowseContext_Constructor
(
IUnknown
*,
REFIID
,
void
**);
33
34
static
inline
LPWSTR
hlink_co_strdupW
(
LPCWSTR
str
)
35
{
36
LPWSTR
ret
=
NULL
;
37
38
if
(
str
) {
39
DWORD
size
;
40
41
size
= (
lstrlenW
(
str
)+1)*
sizeof
(
WCHAR
);
42
ret
=
CoTaskMemAlloc
(
size
);
43
memcpy
(
ret
,
str
,
size
);
44
}
45
46
return
ret
;
47
}
NULL
#define NULL
Definition:
types.h:112
CoTaskMemAlloc
void *WINAPI CoTaskMemAlloc(SIZE_T size)
Definition:
malloc.c:381
lstrlenW
#define lstrlenW
Definition:
compat.h:750
ret
return ret
Definition:
mutex.c:147
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
size
GLsizeiptr size
Definition:
glext.h:5919
HLinkBrowseContext_Constructor
HRESULT HLinkBrowseContext_Constructor(IUnknown *, REFIID, void **)
Definition:
browse_ctx.c:371
hlink_co_strdupW
static LPWSTR hlink_co_strdupW(LPCWSTR str)
Definition:
hlink_private.h:34
HLink_Constructor
HRESULT HLink_Constructor(IUnknown *, REFIID, void **)
Definition:
link.c:1130
HRESULT
Definition:
metahost.idl:58
IUnknown
Definition:
unknwn.idl:39
memcpy
#define memcpy(s1, s2, n)
Definition:
mkisofs.h:878
ole2.h
WCHAR
short WCHAR
Definition:
pedump.c:58
REFIID
#define REFIID
Definition:
guiddef.h:118
str
const WCHAR * str
Definition:
rpc_transport.c:2696
LPCWSTR
const uint16_t * LPCWSTR
Definition:
typedefs.h:57
LPWSTR
uint16_t * LPWSTR
Definition:
typedefs.h:56
winbase.h
windef.h
winerror.h
winuser.h
dll
win32
hlink
hlink_private.h
Generated on Fri Sep 11 2026 06:04:58 for ReactOS by
1.9.6