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
ac031bff
Commit
ac031bff
authored
Mar 03, 2023
by
Brendan Shanks
Committed by
Alexandre Julliard
Mar 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Implement GetFirmwareType().
parent
95f2cc0f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
0 deletions
+21
-0
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-0
process.c
dlls/kernel32/process.c
+12
-0
winbase.h
include/winbase.h
+1
-0
winnt.h
include/winnt.h
+7
-0
No files found.
dlls/kernel32/kernel32.spec
View file @
ac031bff
...
...
@@ -692,6 +692,7 @@
@ stdcall -import GetFinalPathNameByHandleW(long ptr long long)
@ stdcall GetFirmwareEnvironmentVariableA(str str ptr long)
@ stdcall GetFirmwareEnvironmentVariableW(wstr wstr ptr long)
@ stdcall GetFirmwareType(ptr)
@ stdcall -import GetFullPathNameA(str long ptr ptr)
# @ stub GetFullPathNameTransactedA
# @ stub GetFullPathNameTransactedW
...
...
dlls/kernel32/process.c
View file @
ac031bff
...
...
@@ -740,6 +740,18 @@ BOOL WINAPI SetFirmwareEnvironmentVariableW(const WCHAR *name, const WCHAR *guid
return
FALSE
;
}
/***********************************************************************
* GetFirmwareType (KERNEL32.@)
*/
BOOL
WINAPI
GetFirmwareType
(
FIRMWARE_TYPE
*
type
)
{
if
(
!
type
)
return
FALSE
;
*
type
=
FirmwareTypeUnknown
;
return
TRUE
;
}
/**********************************************************************
* GetNumaNodeProcessorMask (KERNEL32.@)
*/
...
...
include/winbase.h
View file @
ac031bff
...
...
@@ -2203,6 +2203,7 @@ WINBASEAPI DWORD WINAPI GetFileSize(HANDLE,LPDWORD);
WINBASEAPI
BOOL
WINAPI
GetFileSizeEx
(
HANDLE
,
PLARGE_INTEGER
);
WINBASEAPI
BOOL
WINAPI
GetFileTime
(
HANDLE
,
LPFILETIME
,
LPFILETIME
,
LPFILETIME
);
WINBASEAPI
DWORD
WINAPI
GetFileType
(
HANDLE
);
WINBASEAPI
BOOL
WINAPI
GetFirmwareType
(
PFIRMWARE_TYPE
);
#define GetFreeSpace(w) (__MSABI_LONG(0x100000))
WINBASEAPI
DWORD
WINAPI
GetFullPathNameA
(
LPCSTR
,
DWORD
,
LPSTR
,
LPSTR
*
);
WINBASEAPI
DWORD
WINAPI
GetFullPathNameW
(
LPCWSTR
,
DWORD
,
LPWSTR
,
LPWSTR
*
);
...
...
include/winnt.h
View file @
ac031bff
...
...
@@ -6495,6 +6495,13 @@ typedef enum _PROCESS_MITIGATION_POLICY
MaxProcessMitigationPolicy
}
PROCESS_MITIGATION_POLICY
,
*
PPROCESS_MITIGATION_POLICY
;
typedef
enum
_FIRMWARE_TYPE
{
FirmwareTypeUnknown
,
FirmwareTypeBios
,
FirmwareTypeUefi
,
FirmwareTypeMax
}
FIRMWARE_TYPE
,
*
PFIRMWARE_TYPE
;
/* Intrinsic functions */
...
...
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