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
4d5c2318
Commit
4d5c2318
authored
Feb 14, 2005
by
Eric Kohl
Committed by
Alexandre Julliard
Feb 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement DelayedMove and FileExists.
parent
b8f6a939
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
2 deletions
+41
-2
misc.c
dlls/setupapi/misc.c
+37
-0
setupapi.spec
dlls/setupapi/setupapi.spec
+2
-2
setupapi.h
include/setupapi.h
+2
-0
No files found.
dlls/setupapi/misc.c
View file @
4d5c2318
...
...
@@ -30,6 +30,9 @@
#include "wine/unicode.h"
#include "wine/debug.h"
#include "setupapi_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
setupapi
);
...
...
@@ -458,3 +461,37 @@ BOOL WINAPI EnablePrivilege(LPCWSTR lpPrivilegeName, BOOL bEnable)
return
bResult
;
}
BOOL
WINAPI
DelayedMove
(
LPCWSTR
lpExistingFileName
,
LPCWSTR
lpNewFileName
)
{
return
MoveFileExW
(
lpExistingFileName
,
lpNewFileName
,
MOVEFILE_REPLACE_EXISTING
|
MOVEFILE_DELAY_UNTIL_REBOOT
);
}
BOOL
WINAPI
FileExists
(
LPCWSTR
lpFileName
,
LPWIN32_FIND_DATAW
lpFileFindData
)
{
WIN32_FIND_DATAW
FindData
;
HANDLE
hFind
;
UINT
uErrorMode
;
DWORD
dwError
;
uErrorMode
=
SetErrorMode
(
SEM_FAILCRITICALERRORS
);
hFind
=
FindFirstFileW
(
lpFileName
,
&
FindData
);
if
(
hFind
==
INVALID_HANDLE_VALUE
)
{
dwError
=
GetLastError
();
SetErrorMode
(
uErrorMode
);
SetLastError
(
dwError
);
return
FALSE
;
}
FindClose
(
hFind
);
if
(
lpFileFindData
)
memcpy
(
lpFileFindData
,
&
FindData
,
sizeof
(
WIN32_FIND_DATAW
));
return
TRUE
;
}
dlls/setupapi/setupapi.spec
View file @
4d5c2318
...
...
@@ -194,14 +194,14 @@
@ stub CaptureStringArg
@ stub CenterWindowRelativeToParent
@ stub ConcatenatePaths
@ st
ub DelayedMove
@ st
dcall DelayedMove(wstr wstr)
@ stub DelimStringToMultiSz
@ stub DestroyTextFileReadBuffer
@ stdcall DoesUserHavePrivilege(wstr)
@ stdcall DuplicateString(wstr)
@ stdcall EnablePrivilege(wstr long)
@ stub ExtensionPropSheetPageProc
@ st
ub FileExists
@ st
dcall FileExists(wstr ptr)
@ stub FreeStringArray
@ stub GetCurrentDriverSigningPolicy
@ stub GetNewInfName
...
...
include/setupapi.h
View file @
4d5c2318
...
...
@@ -666,9 +666,11 @@ DECL_WINELIB_SETUPAPI_TYPE_AW(PFILEPATHS)
LONG
WINAPI
AddTagToGroupOrderList
(
PCWSTR
lpGroupName
,
DWORD
dwUnknown2
,
DWORD
dwUnknown3
);
BOOL
WINAPI
DelayedMove
(
PCWSTR
lpExistingFileName
,
PCWSTR
lpNewFileName
);
BOOL
WINAPI
DoesUserHavePrivilege
(
PCWSTR
lpPrivilegeName
);
PWSTR
WINAPI
DuplicateString
(
PCWSTR
lpSrc
);
BOOL
WINAPI
EnablePrivilege
(
PCWSTR
lpPrivilegeName
,
BOOL
bEnable
);
BOOL
WINAPI
FileExists
(
PCWSTR
lpFileName
,
PWIN32_FIND_DATAW
lpFileFindData
);
void
WINAPI
InstallHinfSectionA
(
HWND
hwnd
,
HINSTANCE
handle
,
PCSTR
cmdline
,
INT
show
);
void
WINAPI
InstallHinfSectionW
(
HWND
hwnd
,
HINSTANCE
handle
,
PCWSTR
cmdline
,
INT
show
);
#define InstallHinfSection WINELIB_NAME_AW(InstallHinfSection)
...
...
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