Skip to content

Commit

Permalink
Several functions which could return a Result. Fixed #1858.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebattista committed Mar 20, 2024
1 parent 74e4197 commit 424d1fe
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
14 changes: 14 additions & 0 deletions generation/WinSDK/emitter.settings.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,7 @@ PowerDeleteScheme::return=WIN32_ERROR
PowerDuplicateScheme::return=WIN32_ERROR
PowerEnumerate::return=WIN32_ERROR
PowerImportPowerScheme::return=WIN32_ERROR
PowerReadACValueIndex::return=WIN32_ERROR
PowerReadDescription::return=WIN32_ERROR
PowerReadFriendlyName::return=WIN32_ERROR
PowerReadIconResourceSpecifier::return=WIN32_ERROR
Expand All @@ -1046,6 +1047,7 @@ PowerRestoreDefaultPowerSchemes::return=WIN32_ERROR
PowerRestoreIndividualDefaultPowerScheme::return=WIN32_ERROR
PowerSettingAccessCheck::return=WIN32_ERROR
PowerSettingAccessCheckEx::return=WIN32_ERROR
PowerWriteACValueIndex::return=WIN32_ERROR
PowerWriteDescription::return=WIN32_ERROR
PowerWriteFriendlyName::return=WIN32_ERROR
PowerWriteIconResourceSpecifier::return=WIN32_ERROR
Expand Down Expand Up @@ -1801,3 +1803,15 @@ WriteConsoleW::lpBuffer=PWSTR
PopIoRingCompletion=[CanReturnMultipleSuccessValues]
CREATESTRUCTA::style=[AssociatedEnum("WINDOW_STYLE")]
CREATESTRUCTW::style=[AssociatedEnum("WINDOW_STYLE")]
SendMessageTimeoutA=[CanReturnMultipleSuccessValues]
SendMessageTimeoutW=[CanReturnMultipleSuccessValues]
GetWindowThreadProcessId=[CanReturnMultipleSuccessValues]
AttachThreadInput=[CanReturnMultipleSuccessValues]
SetActiveWindow=[CanReturnMultipleSuccessValues]
QueryDosDeviceA=[CanReturnMultipleSuccessValues]
QueryDosDeviceW=[CanReturnMultipleSuccessValues]
GetFileAttributesA=[CanReturnMultipleSuccessValues]
GetFileAttributesW=[CanReturnMultipleSuccessValues]
GetFileVersionInfoSizeA=[CanReturnMultipleSuccessValues]
GetFileVersionInfoSizeW=[CanReturnMultipleSuccessValues]
CertCreateCertificateContext=[CanReturnMultipleSuccessValues]
15 changes: 15 additions & 0 deletions scripts/ChangesSinceLastRelease.txt
Original file line number Diff line number Diff line change
Expand Up @@ -273,3 +273,18 @@ Windows.Win32.System.Rpc.RPC_STATUS.RPC_S_RUNTIME_UNINITIALIZED added
Windows.Win32.System.Rpc.RPC_STATUS.RPC_S_SERVER_OUT_OF_MEMORY added
Windows.Win32.System.Rpc.RPC_STATUS.RPC_S_TIMEOUT added
Windows.Win32.System.Rpc.RPC_STATUS.RPC_S_UNKNOWN_PRINCIPAL added
# Fixed #1858.
Windows.Win32.Security.Cryptography.Apis.CertCreateCertificateContext : [DllImport(CRYPT32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/wincrypt/nf-wincrypt-certcreatecertificatecontext),SupportedOSPlatform(windows5.1.2600)] => [CanReturnMultipleSuccessValues,DllImport(CRYPT32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/wincrypt/nf-wincrypt-certcreatecertificatecontext),SupportedOSPlatform(windows5.1.2600)]
Windows.Win32.Storage.FileSystem.Apis.GetFileAttributesA : [Ansi,DllImport(KERNEL32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/fileapi/nf-fileapi-getfileattributesa),SupportedOSPlatform(windows5.1.2600)] => [Ansi,CanReturnMultipleSuccessValues,DllImport(KERNEL32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/fileapi/nf-fileapi-getfileattributesa),SupportedOSPlatform(windows5.1.2600)]
Windows.Win32.Storage.FileSystem.Apis.GetFileAttributesW : [DllImport(KERNEL32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/fileapi/nf-fileapi-getfileattributesw),SupportedOSPlatform(windows5.1.2600),Unicode] => [CanReturnMultipleSuccessValues,DllImport(KERNEL32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/fileapi/nf-fileapi-getfileattributesw),SupportedOSPlatform(windows5.1.2600),Unicode]
Windows.Win32.Storage.FileSystem.Apis.GetFileVersionInfoSizeA : [Ansi,DllImport(VERSION.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/winver/nf-winver-getfileversioninfosizea),SupportedOSPlatform(windows5.0)] => [Ansi,CanReturnMultipleSuccessValues,DllImport(VERSION.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/winver/nf-winver-getfileversioninfosizea),SupportedOSPlatform(windows5.0)]
Windows.Win32.Storage.FileSystem.Apis.GetFileVersionInfoSizeW : [DllImport(VERSION.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/winver/nf-winver-getfileversioninfosizew),SupportedOSPlatform(windows5.0),Unicode] => [CanReturnMultipleSuccessValues,DllImport(VERSION.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/winver/nf-winver-getfileversioninfosizew),SupportedOSPlatform(windows5.0),Unicode]
Windows.Win32.Storage.FileSystem.Apis.QueryDosDeviceA : [Ansi,DllImport(KERNEL32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/winbase/nf-winbase-querydosdevicea),SupportedOSPlatform(windows5.1.2600)] => [Ansi,CanReturnMultipleSuccessValues,DllImport(KERNEL32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/winbase/nf-winbase-querydosdevicea),SupportedOSPlatform(windows5.1.2600)]
Windows.Win32.Storage.FileSystem.Apis.QueryDosDeviceW : [DllImport(KERNEL32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/fileapi/nf-fileapi-querydosdevicew),SupportedOSPlatform(windows5.1.2600),Unicode] => [CanReturnMultipleSuccessValues,DllImport(KERNEL32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/fileapi/nf-fileapi-querydosdevicew),SupportedOSPlatform(windows5.1.2600),Unicode]
Windows.Win32.System.Power.Apis.PowerReadACValueIndex : return...UInt32 => WIN32_ERROR
Windows.Win32.System.Power.Apis.PowerWriteACValueIndex : return...UInt32 => WIN32_ERROR
Windows.Win32.System.Threading.Apis.AttachThreadInput : [DllImport(USER32.dll,ExactSpelling=True,PreserveSig=False),Documentation(https://learn.microsoft.com/windows/win32/api/winuser/nf-winuser-attachthreadinput),SupportedOSPlatform(windows5.1.2600)] => [CanReturnMultipleSuccessValues,DllImport(USER32.dll,ExactSpelling=True,PreserveSig=False),Documentation(https://learn.microsoft.com/windows/win32/api/winuser/nf-winuser-attachthreadinput),SupportedOSPlatform(windows5.1.2600)]
Windows.Win32.UI.Input.KeyboardAndMouse.Apis.SetActiveWindow : [DllImport(USER32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/winuser/nf-winuser-setactivewindow),SupportedOSPlatform(windows5.0)] => [CanReturnMultipleSuccessValues,DllImport(USER32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/winuser/nf-winuser-setactivewindow),SupportedOSPlatform(windows5.0)]
Windows.Win32.UI.WindowsAndMessaging.Apis.GetWindowThreadProcessId : [DllImport(USER32.dll,ExactSpelling=True,PreserveSig=False),Documentation(https://learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getwindowthreadprocessid),SupportedOSPlatform(windows5.0)] => [CanReturnMultipleSuccessValues,DllImport(USER32.dll,ExactSpelling=True,PreserveSig=False),Documentation(https://learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getwindowthreadprocessid),SupportedOSPlatform(windows5.0)]
Windows.Win32.UI.WindowsAndMessaging.Apis.SendMessageTimeoutA : [Ansi,DllImport(USER32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/winuser/nf-winuser-sendmessagetimeouta),SupportedOSPlatform(windows5.0)] => [Ansi,CanReturnMultipleSuccessValues,DllImport(USER32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/winuser/nf-winuser-sendmessagetimeouta),SupportedOSPlatform(windows5.0)]
Windows.Win32.UI.WindowsAndMessaging.Apis.SendMessageTimeoutW : [DllImport(USER32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/winuser/nf-winuser-sendmessagetimeoutw),SupportedOSPlatform(windows5.0),Unicode] => [CanReturnMultipleSuccessValues,DllImport(USER32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/winuser/nf-winuser-sendmessagetimeoutw),SupportedOSPlatform(windows5.0),Unicode]

0 comments on commit 424d1fe

Please sign in to comment.