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
04ec181c
Commit
04ec181c
authored
Mar 19, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Add a basic test for SHLimitInputEdit().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
612a1941
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
0 deletions
+44
-0
shlfolder.c
dlls/shell32/tests/shlfolder.c
+29
-0
shlobj.h
include/shlobj.h
+1
-0
shobjidl.idl
include/shobjidl.idl
+14
-0
No files found.
dlls/shell32/tests/shlfolder.c
View file @
04ec181c
...
...
@@ -5217,6 +5217,34 @@ static void test_GetDefaultSearchGUID(void)
CoUninitialize
();
}
static
void
test_SHLimitInputEdit
(
void
)
{
IShellFolder
*
desktop
;
HRESULT
hr
;
HWND
hwnd
;
hr
=
SHGetDesktopFolder
(
&
desktop
);
ok
(
hr
==
S_OK
,
"Failed to get desktop folder, hr %#x.
\n
"
,
hr
);
hr
=
SHLimitInputEdit
(
NULL
,
desktop
);
todo_wine
ok
(
hr
==
E_FAIL
,
"Unexpected hr %#x.
\n
"
,
hr
);
hwnd
=
CreateWindowA
(
"EDIT"
,
NULL
,
WS_VISIBLE
,
0
,
0
,
100
,
30
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"Failed to create Edit control.
\n
"
);
hr
=
SHLimitInputEdit
(
hwnd
,
desktop
);
todo_wine
ok
(
hr
==
S_OK
,
"Failed to set input limits, hr %#x.
\n
"
,
hr
);
hr
=
SHLimitInputEdit
(
hwnd
,
desktop
);
todo_wine
ok
(
hr
==
S_OK
,
"Failed to set input limits, hr %#x.
\n
"
,
hr
);
DestroyWindow
(
hwnd
);
IShellFolder_Release
(
desktop
);
}
START_TEST
(
shlfolder
)
{
init_function_pointers
();
...
...
@@ -5258,6 +5286,7 @@ START_TEST(shlfolder)
test_DataObject
();
test_GetDefaultColumn
();
test_GetDefaultSearchGUID
();
test_SHLimitInputEdit
();
OleUninitialize
();
}
include/shlobj.h
View file @
04ec181c
...
...
@@ -1801,6 +1801,7 @@ HRESULT WINAPI CDefFolderMenu_Create2(LPCITEMIDLIST pidlFolder, HWND hwnd, UINT
IContextMenu
**
ppcm
);
int
WINAPI
PickIconDlg
(
HWND
owner
,
WCHAR
*
path
,
UINT
path_len
,
int
*
index
);
HRESULT
WINAPI
SHLimitInputEdit
(
HWND
hwnd
,
IShellFolder
*
folder
);
#include <poppack.h>
...
...
include/shobjidl.idl
View file @
04ec181c
...
...
@@ -3699,6 +3699,20 @@ typedef enum ASSOC_FILTER
} ASSOC_FILTER;
cpp_quote("HRESULT WINAPI SHAssocEnumHandlers(PCWSTR extra, ASSOC_FILTER filter, IEnumAssocHandlers **handlersenum);")
[
uuid(1df0d7f1-b267-4d28-8b10-12e23202a5c4),
]
interface IItemNameLimits : IUnknown
{
HRESULT GetValidCharacters(
[out, string] LPWSTR *validchars,
[out, string] LPWSTR *invalidchars);
HRESULT GetMaxLength(
[in, string] LPCWSTR name,
[out] int *max_length);
}
/*****************************************************************************
* ShellObjects typelibrary
*/
...
...
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