Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
42b8a767
Commit
42b8a767
authored
Dec 10, 2014
by
Martin Storsjo
Committed by
Alexandre Julliard
Dec 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add hstring.idl and winstring.h.
parent
a44e013b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
97 additions
and
0 deletions
+97
-0
Makefile.in
include/Makefile.in
+2
-0
hstring.idl
include/hstring.idl
+41
-0
winstring.h
include/winstring.h
+54
-0
No files found.
include/Makefile.in
View file @
42b8a767
...
...
@@ -47,6 +47,7 @@ PUBLIC_IDL_H_SRCS = \
fusion.idl
\
gameux.idl
\
hlink.idl
\
hstring.idl
\
htiface.idl
\
htiframe.idl
\
httprequest.idl
\
...
...
@@ -618,6 +619,7 @@ SRCDIR_INCLUDES = \
winsock.h
\
winsock2.h
\
winspool.h
\
winstring.h
\
winsvc.h
\
wintab.h
\
wintabx.h
\
...
...
include/hstring.idl
0 → 100644
View file @
42b8a767
/*
*
Copyright
(
C
)
2014
Martin
Storsjo
*
*
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
.
,
51
Franklin
St
,
Fifth
Floor
,
Boston
,
MA
02110
-
1301
,
USA
*/
import
"wtypes.idl"
;
typedef
struct
HSTRING__
{
int
unused
;
}
HSTRING__
;
typedef
[
wire_marshal
(
wireBSTR
),
unique
]
HSTRING__
*
HSTRING
;
cpp_quote
(
"DECLARE_HANDLE(HSTRING_BUFFER);"
)
cpp_quote
(
"typedef struct HSTRING_HEADER"
)
cpp_quote
(
"{"
)
cpp_quote
(
" union"
)
cpp_quote
(
" {"
)
cpp_quote
(
" PVOID Reserved1;"
)
cpp_quote
(
"#ifdef _WIN64"
)
cpp_quote
(
" char Reserved2[24];"
)
cpp_quote
(
"#else"
)
cpp_quote
(
" char Reserved2[20];"
)
cpp_quote
(
"#endif"
)
cpp_quote
(
" } Reserved;"
)
cpp_quote
(
"} HSTRING_HEADER;"
)
include/winstring.h
0 → 100644
View file @
42b8a767
/*
* Copyright (C) 2014 Martin Storsjo
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINE_WINSTRING_H
#define __WINE_WINSTRING_H
#include <hstring.h>
#ifdef __cplusplus
extern
"C"
{
#endif
HRESULT
WINAPI
WindowsCompareStringOrdinal
(
HSTRING
str1
,
HSTRING
str2
,
INT32
*
order
);
HRESULT
WINAPI
WindowsConcatString
(
HSTRING
str1
,
HSTRING
str2
,
HSTRING
*
out
);
HRESULT
WINAPI
WindowsCreateString
(
LPCWSTR
ptr
,
UINT32
len
,
HSTRING
*
out
);
HRESULT
WINAPI
WindowsCreateStringReference
(
LPCWSTR
ptr
,
UINT32
len
,
HSTRING_HEADER
*
header
,
HSTRING
*
out
);
HRESULT
WINAPI
WindowsDeleteString
(
HSTRING
str
);
HRESULT
WINAPI
WindowsDeleteStringBuffer
(
HSTRING_BUFFER
buf
);
HRESULT
WINAPI
WindowsDuplicateString
(
HSTRING
str
,
HSTRING
*
out
);
UINT32
WINAPI
WindowsGetStringLen
(
HSTRING
str
);
LPCWSTR
WINAPI
WindowsGetStringRawBuffer
(
HSTRING
str
,
UINT32
*
len
);
BOOL
WINAPI
WindowsIsStringEmpty
(
HSTRING
str
);
HRESULT
WINAPI
WindowsPreallocateStringBuffer
(
UINT32
len
,
WCHAR
**
outptr
,
HSTRING_BUFFER
*
out
);
HRESULT
WINAPI
WindowsPromoteStringBuffer
(
HSTRING_BUFFER
buf
,
HSTRING
*
out
);
HRESULT
WINAPI
WindowsReplaceString
(
HSTRING
haystack
,
HSTRING
needle
,
HSTRING
replacement
,
HSTRING
*
out
);
HRESULT
WINAPI
WindowsStringHasEmbeddedNull
(
HSTRING
str
,
BOOL
*
out
);
HRESULT
WINAPI
WindowsSubstring
(
HSTRING
str
,
UINT32
pos
,
HSTRING
*
out
);
HRESULT
WINAPI
WindowsSubstringWithSpecifiedLength
(
HSTRING
str
,
UINT32
pos
,
UINT32
len
,
HSTRING
*
out
);
HRESULT
WINAPI
WindowsTrimStringEnd
(
HSTRING
str
,
HSTRING
charstr
,
HSTRING
*
out
);
HRESULT
WINAPI
WindowsTrimStringStart
(
HSTRING
str
,
HSTRING
charstr
,
HSTRING
*
out
);
#ifdef __cplusplus
}
#endif
#endif
/* __WINE_WINSTRING_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment