Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ed161054
Commit
ed161054
authored
May 02, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Adjust field names and some defines to match current documentation.
parent
cd34bfe6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
61 deletions
+61
-61
comctl32undoc.c
dlls/comctl32/comctl32undoc.c
+41
-41
mru.c
dlls/comctl32/tests/mru.c
+20
-20
No files found.
dlls/comctl32/comctl32undoc.c
View file @
ed161054
This diff is collapsed.
Click to expand it.
dlls/comctl32/tests/mru.c
View file @
ed161054
...
...
@@ -37,26 +37,26 @@
#define REG_TEST_SUBKEYA "MRUTest"
#define REG_TEST_FULLKEY REG_TEST_KEYA "\\" REG_TEST_SUBKEYA
/* Undocumented MRU
structures &
functions */
typedef
struct
tag
CREATEMRULIST
A
/* Undocumented MRU functions */
typedef
struct
tag
MRUINFO
A
{
DWORD
cbSize
;
DWORD
nMaxItems
;
DWORD
dw
Flags
;
UINT
uMax
;
UINT
f
Flags
;
HKEY
hKey
;
LPCSTR
lpszSubKey
;
PROC
lpfnCompare
;
}
CREATEMRULISTA
,
*
LPCREATEMRULIST
A
;
}
MRUINFO
A
;
#define MRU
F_STRING_LIST 0
#define MRU
F_BINARY_LIST
1
#define MRU
F_DELAYED_SAV
E 2
#define MRU
_STRING 0
/* this one's invented */
#define MRU
_BINARY
1
#define MRU
_CACHEWRIT
E 2
#define LIST_SIZE 3
/* Max entries for each mru */
static
CREATEMRULIST
A
mruA
=
static
MRUINFO
A
mruA
=
{
sizeof
(
CREATEMRULIST
A
),
sizeof
(
MRUINFO
A
),
LIST_SIZE
,
0
,
NULL
,
...
...
@@ -65,12 +65,12 @@ static CREATEMRULISTA mruA =
};
static
HMODULE
hComctl32
;
static
HANDLE
(
WINAPI
*
pCreateMRUListA
)(
LPCREATEMRULISTA
);
static
HANDLE
(
WINAPI
*
pCreateMRUListA
)(
MRUINFOA
*
);
static
void
(
WINAPI
*
pFreeMRUList
)(
HANDLE
);
static
INT
(
WINAPI
*
pAddMRUStringA
)(
HANDLE
,
LPCSTR
);
static
INT
(
WINAPI
*
pEnumMRUList
)(
HANDLE
,
INT
,
LPVOID
,
DWORD
);
static
INT
(
WINAPI
*
pEnumMRUListW
)(
HANDLE
,
INT
,
LPVOID
,
DWORD
);
static
HANDLE
(
WINAPI
*
pCreateMRUListLazyA
)(
LPCREATEMRULISTA
,
DWORD
,
DWORD
,
DWORD
);
static
HANDLE
(
WINAPI
*
pCreateMRUListLazyA
)(
MRUINFOA
*
,
DWORD
,
DWORD
,
DWORD
);
static
INT
(
WINAPI
*
pFindMRUData
)(
HANDLE
,
LPCVOID
,
DWORD
,
LPINT
);
static
INT
(
WINAPI
*
pAddMRUData
)(
HANDLE
,
LPCVOID
,
DWORD
);
/*
...
...
@@ -226,9 +226,9 @@ static INT CALLBACK cmp_mru_strA(LPCVOID data1, LPCVOID data2)
return
lstrcmpiA
(
data1
,
data2
);
}
static
HANDLE
create_mruA
(
HKEY
hKey
,
DWORD
flags
,
PROC
cmp
)
static
HANDLE
create_mruA
(
HKEY
hKey
,
UINT
flags
,
PROC
cmp
)
{
mruA
.
dw
Flags
=
flags
;
mruA
.
f
Flags
=
flags
;
mruA
.
lpfnCompare
=
cmp
;
mruA
.
hKey
=
hKey
;
...
...
@@ -257,7 +257,7 @@ static void test_MRUListA(void)
/* Create (size too small) */
mruA
.
cbSize
=
sizeof
(
mruA
)
-
2
;
hMRU
=
create_mruA
(
NULL
,
MRU
F_STRING_LIST
,
(
PROC
)
cmp_mru_strA
);
hMRU
=
create_mruA
(
NULL
,
MRU
_STRING
,
(
PROC
)
cmp_mru_strA
);
ok
(
!
hMRU
&&
!
GetLastError
(),
"CreateMRUListA(too small) expected NULL,0 got %p,%d
\n
"
,
hMRU
,
GetLastError
());
...
...
@@ -265,21 +265,21 @@ static void test_MRUListA(void)
/* Create (size too big) */
mruA
.
cbSize
=
sizeof
(
mruA
)
+
2
;
hMRU
=
create_mruA
(
NULL
,
MRU
F_STRING_LIST
,
(
PROC
)
cmp_mru_strA
);
hMRU
=
create_mruA
(
NULL
,
MRU
_STRING
,
(
PROC
)
cmp_mru_strA
);
ok
(
!
hMRU
&&
!
GetLastError
(),
"CreateMRUListA(too big) expected NULL,0 got %p,%d
\n
"
,
hMRU
,
GetLastError
());
mruA
.
cbSize
=
sizeof
(
mruA
);
/* Create (NULL hKey) */
hMRU
=
create_mruA
(
NULL
,
MRU
F_STRING_LIST
,
(
PROC
)
cmp_mru_strA
);
hMRU
=
create_mruA
(
NULL
,
MRU
_STRING
,
(
PROC
)
cmp_mru_strA
);
ok
(
!
hMRU
&&
!
GetLastError
(),
"CreateMRUListA(NULL key) expected NULL,0 got %p,%d
\n
"
,
hMRU
,
GetLastError
());
/* Create (NULL name) */
mruA
.
lpszSubKey
=
NULL
;
hMRU
=
create_mruA
(
NULL
,
MRU
F_STRING_LIST
,
(
PROC
)
cmp_mru_strA
);
hMRU
=
create_mruA
(
NULL
,
MRU
_STRING
,
(
PROC
)
cmp_mru_strA
);
ok
(
!
hMRU
&&
!
GetLastError
(),
"CreateMRUListA(NULL name) expected NULL,0 got %p,%d
\n
"
,
hMRU
,
GetLastError
());
...
...
@@ -290,7 +290,7 @@ static void test_MRUListA(void)
"Couldn't create test key
\"
%s
\"\n
"
,
REG_TEST_KEYA
);
if
(
!
hKey
)
return
;
hMRU
=
create_mruA
(
hKey
,
MRU
F_STRING_LIST
,
(
PROC
)
cmp_mru_strA
);
hMRU
=
create_mruA
(
hKey
,
MRU
_STRING
,
(
PROC
)
cmp_mru_strA
);
ok
(
hMRU
&&
!
GetLastError
(),
"CreateMRUListA(string) expected non-NULL,0 got %p,%d
\n
"
,
hMRU
,
GetLastError
());
...
...
@@ -428,7 +428,7 @@ static void test_CreateMRUListLazyA(void)
{
HANDLE
hMRU
;
HKEY
hKey
;
CREATEMRULIST
A
listA
=
{
0
};
MRUINFO
A
listA
=
{
0
};
if
(
!
pCreateMRUListLazyA
||
!
pFreeMRUList
)
{
...
...
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