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
b88b4808
Commit
b88b4808
authored
Feb 20, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Feb 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Implement the Open/CloseINFEngine and TranslateINFStringEx
trio of functions.
parent
dd5ae20d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
14 deletions
+24
-14
advpack.c
dlls/advpack/advpack.c
+24
-14
No files found.
dlls/advpack/advpack.c
View file @
b88b4808
...
...
@@ -118,15 +118,13 @@ static void set_ldids(HINF hInf, PCSTR pszInstallSection)
* RETURNS
* Success: S_OK.
* Failure: E_FAIL.
*
* BUGS
* Unimplemented.
*/
HRESULT
WINAPI
CloseINFEngine
(
HINF
hInf
)
{
FIXME
(
"(%p) stub
\n
"
,
hInf
);
TRACE
(
"(%p)
\n
"
,
hInf
);
return
E_FAIL
;
SetupCloseInfFile
(
hInf
);
return
S_OK
;
}
/***********************************************************************
...
...
@@ -405,17 +403,23 @@ BOOL WINAPI NeedReboot(DWORD dwRebootCheck)
* RETURNS
* Success: S_OK.
* Failure: E_FAIL.
*
* BUGS
* Unimplemented.
*/
HRESULT
WINAPI
OpenINFEngine
(
PCSTR
pszInfFilename
,
PCSTR
pszInstallSection
,
DWORD
dwFlags
,
HINF
*
phInf
,
PVOID
pvReserved
)
{
FIXME
(
"(%p, %p, %ld, %p, %p) stub
\n
"
,
pszInfFilename
,
pszInstallSection
,
TRACE
(
"(%p, %p, %ld, %p, %p)
\n
"
,
pszInfFilename
,
pszInstallSection
,
dwFlags
,
phInf
,
pvReserved
);
return
E_FAIL
;
if
(
!
phInf
)
return
E_INVALIDARG
;
*
phInf
=
SetupOpenInfFileA
(
pszInfFilename
,
NULL
,
INF_STYLE_WIN4
,
NULL
);
if
(
*
phInf
==
INVALID_HANDLE_VALUE
)
return
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
);
set_ldids
(
*
phInf
,
pszInstallSection
);
return
S_OK
;
}
/***********************************************************************
...
...
@@ -621,19 +625,25 @@ HRESULT WINAPI TranslateInfString(PCSTR pszInfFilename, PCSTR pszInstallSection,
* When translating more than one keys, this method is more efficient
* than calling TranslateInfString, because the INF file is only
* opened once.
*
* BUGS
* Unimplemented.
*/
HRESULT
WINAPI
TranslateInfStringEx
(
HINF
hInf
,
PCSTR
pszInfFilename
,
PCSTR
pszTranslateSection
,
PCSTR
pszTranslateKey
,
PSTR
pszBuffer
,
DWORD
dwBufferSize
,
PDWORD
pdwRequiredSize
,
PVOID
pvReserved
)
{
FIXME
(
"(%p, %p, %p, %p, %p, %ld, %p, %p) stub
\n
"
,
hInf
,
pszInfFilename
,
TRACE
(
"(%p, %p, %p, %p, %p, %ld, %p, %p)
\n
"
,
hInf
,
pszInfFilename
,
pszTranslateSection
,
pszTranslateKey
,
pszBuffer
,
dwBufferSize
,
pdwRequiredSize
,
pvReserved
);
if
(
!
SetupGetLineTextA
(
NULL
,
hInf
,
pszTranslateSection
,
pszTranslateKey
,
pszBuffer
,
dwBufferSize
,
pdwRequiredSize
))
{
if
(
dwBufferSize
<
*
pdwRequiredSize
)
return
HRESULT_FROM_WIN32
(
ERROR_INSUFFICIENT_BUFFER
);
return
SPAPI_E_LINE_NOT_FOUND
;
}
return
E_FAIL
;
}
...
...
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