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
24a10fc9
Commit
24a10fc9
authored
Mar 02, 2009
by
Ricardo Filipe
Committed by
Alexandre Julliard
Mar 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Implement SetupPromptForDiskA by wrapping around W version.
parent
54845cd4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
14 deletions
+45
-14
dialog.c
dlls/setupapi/dialog.c
+45
-0
stubs.c
dlls/setupapi/stubs.c
+0
-14
No files found.
dlls/setupapi/dialog.c
View file @
24a10fc9
...
@@ -183,6 +183,51 @@ static INT_PTR CALLBACK promptdisk_proc(HWND hwnd, UINT msg, WPARAM wParam, LPAR
...
@@ -183,6 +183,51 @@ static INT_PTR CALLBACK promptdisk_proc(HWND hwnd, UINT msg, WPARAM wParam, LPAR
}
}
/***********************************************************************
/***********************************************************************
* SetupPromptForDiskA (SETUPAPI.@)
*/
UINT
WINAPI
SetupPromptForDiskA
(
HWND
hwndParent
,
PCSTR
DialogTitle
,
PCSTR
DiskName
,
PCSTR
PathToSource
,
PCSTR
FileSought
,
PCSTR
TagFile
,
DWORD
DiskPromptStyle
,
PSTR
PathBuffer
,
DWORD
PathBufferSize
,
PDWORD
PathRequiredSize
)
{
WCHAR
*
DialogTitleW
,
*
DiskNameW
,
*
PathToSourceW
;
WCHAR
*
FileSoughtW
,
*
TagFileW
,
PathBufferW
[
MAX_PATH
];
UINT
ret
,
length
;
TRACE
(
"%p, %s, %s, %s, %s, %s, 0x%08x, %p, %d, %p
\n
"
,
hwndParent
,
debugstr_a
(
DialogTitle
),
debugstr_a
(
DiskName
),
debugstr_a
(
PathToSource
),
debugstr_a
(
FileSought
),
debugstr_a
(
TagFile
),
DiskPromptStyle
,
PathBuffer
,
PathBufferSize
,
PathRequiredSize
);
DialogTitleW
=
strdupAtoW
(
DialogTitle
);
DiskNameW
=
strdupAtoW
(
DiskName
);
PathToSourceW
=
strdupAtoW
(
PathToSource
);
FileSoughtW
=
strdupAtoW
(
FileSought
);
TagFileW
=
strdupAtoW
(
TagFile
);
ret
=
SetupPromptForDiskW
(
hwndParent
,
DialogTitleW
,
DiskNameW
,
PathToSourceW
,
FileSoughtW
,
TagFileW
,
DiskPromptStyle
,
PathBufferW
,
MAX_PATH
,
PathRequiredSize
);
HeapFree
(
GetProcessHeap
(),
0
,
DialogTitleW
);
HeapFree
(
GetProcessHeap
(),
0
,
DiskNameW
);
HeapFree
(
GetProcessHeap
(),
0
,
PathToSourceW
);
HeapFree
(
GetProcessHeap
(),
0
,
FileSoughtW
);
HeapFree
(
GetProcessHeap
(),
0
,
TagFileW
);
if
(
ret
==
DPROMPT_SUCCESS
)
{
length
=
WideCharToMultiByte
(
CP_ACP
,
0
,
PathBufferW
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
if
(
PathRequiredSize
)
*
PathRequiredSize
=
length
;
if
(
PathBuffer
)
{
if
(
length
>
PathBufferSize
)
return
DPROMPT_BUFFERTOOSMALL
;
WideCharToMultiByte
(
CP_ACP
,
0
,
PathBufferW
,
-
1
,
PathBuffer
,
length
,
NULL
,
NULL
);
}
}
return
ret
;
}
/***********************************************************************
* SetupPromptForDiskW (SETUPAPI.@)
* SetupPromptForDiskW (SETUPAPI.@)
*/
*/
UINT
WINAPI
SetupPromptForDiskW
(
HWND
hwndParent
,
PCWSTR
DialogTitle
,
PCWSTR
DiskName
,
UINT
WINAPI
SetupPromptForDiskW
(
HWND
hwndParent
,
PCWSTR
DialogTitle
,
PCWSTR
DiskName
,
...
...
dlls/setupapi/stubs.c
View file @
24a10fc9
...
@@ -247,20 +247,6 @@ BOOL WINAPI SetupDiGetClassImageList(PSP_CLASSIMAGELIST_DATA ClassImageListData)
...
@@ -247,20 +247,6 @@ BOOL WINAPI SetupDiGetClassImageList(PSP_CLASSIMAGELIST_DATA ClassImageListData)
}
}
/***********************************************************************
/***********************************************************************
* SetupPromptForDiskA (SETUPAPI.@)
*/
UINT
WINAPI
SetupPromptForDiskA
(
HWND
hwndParent
,
PCSTR
DialogTitle
,
PCSTR
DiskName
,
PCSTR
PathToSource
,
PCSTR
FileSought
,
PCSTR
TagFile
,
DWORD
DiskPromptStyle
,
PSTR
PathBuffer
,
DWORD
PathBufferSize
,
PDWORD
PathRequiredSize
)
{
FIXME
(
"%p %s %s %s %s %s %d %p %d %p: stub
\n
"
,
hwndParent
,
debugstr_a
(
DialogTitle
),
debugstr_a
(
DiskName
),
debugstr_a
(
PathToSource
),
debugstr_a
(
FileSought
),
debugstr_a
(
TagFile
),
DiskPromptStyle
,
PathBuffer
,
PathBufferSize
,
PathRequiredSize
);
return
0
;
}
/***********************************************************************
* CM_Locate_DevNodeA (SETUPAPI.@)
* CM_Locate_DevNodeA (SETUPAPI.@)
*/
*/
CONFIGRET
WINAPI
CM_Locate_DevNodeA
(
PDEVINST
pdnDevInst
,
DEVINSTID_A
pDeviceID
,
ULONG
ulFlags
)
CONFIGRET
WINAPI
CM_Locate_DevNodeA
(
PDEVINST
pdnDevInst
,
DEVINSTID_A
pDeviceID
,
ULONG
ulFlags
)
...
...
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