Skip to content

Commit

Permalink
Mark windows api nothrow @nogc
Browse files Browse the repository at this point in the history
  • Loading branch information
0-v-0 authored and dlang-bot committed Dec 7, 2024
1 parent 92bee16 commit a8e1ea6
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion druntime/src/core/sys/windows/aclapi.d
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pragma(lib, "advapi32");

import core.sys.windows.accctrl, core.sys.windows.basetyps, core.sys.windows.w32api, core.sys.windows.winnt;

extern (Windows) {
extern (Windows) nothrow @nogc {
VOID BuildExplicitAccessWithNameA(PEXPLICIT_ACCESS_A, LPSTR, DWORD,
ACCESS_MODE, DWORD);
VOID BuildExplicitAccessWithNameW(PEXPLICIT_ACCESS_W, LPWSTR, DWORD,
Expand Down
2 changes: 1 addition & 1 deletion druntime/src/core/sys/windows/aclui.d
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ alias ISecurityInformation LPSECURITYINFO;
// FIXME: linkage attribute?
extern (C) /+DECLSPEC_IMPORT+/ extern const IID IID_ISecurityInformation;

extern (Windows) {
extern (Windows) nothrow @nogc {
HPROPSHEETPAGE CreateSecurityPage(LPSECURITYINFO psi);
BOOL EditSecurity(HWND hwndOwner, LPSECURITYINFO psi);
}
2 changes: 1 addition & 1 deletion druntime/src/core/sys/windows/httpext.d
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ struct HSE_SEND_HEADER_EX_INFO {
}
alias HSE_SEND_HEADER_EX_INFO* LPHSE_SEND_HEADER_EX_INF;

extern (Windows) {
extern (Windows) nothrow @nogc {
BOOL GetExtensionVersion(HSE_VERSION_INFO*);
DWORD HttpExtensionProc(EXTENSION_CONTROL_BLOCK*);
BOOL TerminateExtension(DWORD);
Expand Down
2 changes: 1 addition & 1 deletion druntime/src/core/sys/windows/ole.d
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ struct OLESERVERDOC {
}
alias OLESERVERDOC* LPOLESERVERDOC;

extern (Windows) {
extern (Windows) nothrow @nogc {
OLESTATUS OleDelete(LPOLEOBJECT);
OLESTATUS OleRelease(LPOLEOBJECT);
OLESTATUS OleSaveToStream(LPOLEOBJECT, LPOLESTREAM);
Expand Down
2 changes: 1 addition & 1 deletion druntime/src/core/sys/windows/ole2.d
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extern (Windows) {
}
alias OLESTREAMVTBL* LPOLESTREAMVTBL;

extern (Windows) {
extern (Windows) nothrow @nogc {
HRESULT CreateDataAdviseHolder(LPDATAADVISEHOLDER*);
DWORD OleBuildVersion();
HRESULT ReadClassStg(LPSTORAGE, CLSID*);
Expand Down
2 changes: 1 addition & 1 deletion druntime/src/core/sys/windows/oleacc.d
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ interface IAccessible : IDispatch {

alias IAccessible LPACCESSIBLE;

extern (Windows) {
extern (Windows) nothrow @nogc {
HRESULT AccessibleChildren(IAccessible, LONG, LONG, VARIANT*, LONG*);
HRESULT AccessibleObjectFromEvent(HWND, DWORD, DWORD, IAccessible, VARIANT*);
HRESULT AccessibleObjectFromPoint(POINT, IAccessible*, VARIANT*);
Expand Down
2 changes: 1 addition & 1 deletion druntime/src/core/sys/windows/oleauto.d
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ deprecated { // not actually deprecated, but they aren't converted yet.
alias ICreateTypeLib2 LPCREATETYPELIB2;
}

extern (Windows) {
extern (Windows) nothrow @nogc {
BSTR SysAllocString(const(OLECHAR)*);
int SysReAllocString(BSTR*, const(OLECHAR)*);
BSTR SysAllocStringLen(const(OLECHAR)*, uint);
Expand Down
4 changes: 2 additions & 2 deletions druntime/src/core/sys/windows/oledlg.d
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ struct OLEUIINSERTOBJECTA {
}
alias OLEUIINSERTOBJECTA* POLEUIINSERTOBJECTA, LPOLEUIINSERTOBJECTA;

extern (Windows) {
extern (Windows) nothrow @nogc {
UINT OleUIInsertObjectW(LPOLEUIINSERTOBJECTW);
UINT OleUIInsertObjectA(LPOLEUIINSERTOBJECTA);
}
Expand Down Expand Up @@ -849,7 +849,7 @@ struct OLEUIOBJECTPROPSA {
}
alias OLEUIOBJECTPROPSA* POLEUIOBJECTPROPSA, LPOLEUIOBJECTPROPSA;

extern (Windows) {
extern (Windows) nothrow @nogc {
BOOL OleUIAddVerbMenuW(LPOLEOBJECT, LPCWSTR, HMENU, UINT, UINT, UINT, BOOL, UINT, HMENU*);
BOOL OleUIAddVerbMenuA(LPOLEOBJECT, LPCSTR, HMENU, UINT, UINT, UINT, BOOL, UINT, HMENU*);
UINT OleUIBusyW(LPOLEUIBUSYW);
Expand Down
2 changes: 1 addition & 1 deletion druntime/src/core/sys/windows/psapi.d
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ alias BOOL function(LPVOID, PENUM_PAGE_FILE_INFORMATION, LPCSTR)


// Grouped by application, not in alphabetical order.
extern (Windows) {
extern (Windows) nothrow @nogc {
/* Process Information
* http://windowssdk.msdn.microsoft.com/library/ms684870.aspx */
BOOL EnumProcesses(DWORD*, DWORD, DWORD*); /* NT/2000/XP/Server2003/Vista/Longhorn */
Expand Down
2 changes: 1 addition & 1 deletion druntime/src/core/sys/windows/winhttp.d
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ static if (_WIN32_WINNT >= 0x602)
}


extern (Windows) {
extern (Windows) nothrow @nogc {
BOOL WinHttpAddRequestHeaders(HINTERNET hRequest, LPCWSTR pwszHeaders, DWORD dwHeadersLength, DWORD dwModifiers);

BOOL WinHttpCheckPlatform();
Expand Down
2 changes: 1 addition & 1 deletion druntime/src/core/sys/windows/winnetwk.d
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ struct NETCONNECTINFOSTRUCT {
}
alias NETCONNECTINFOSTRUCT* LPNETCONNECTINFOSTRUCT;

extern (Windows) {
extern (Windows) nothrow @nogc {
DWORD WNetAddConnection2A(LPNETRESOURCEA, LPCSTR, LPCSTR, DWORD);
DWORD WNetAddConnection2W(LPNETRESOURCEW, LPCWSTR, LPCWSTR, DWORD);
DWORD WNetAddConnection3A(HWND, LPNETRESOURCEA, LPCSTR, LPCSTR, DWORD);
Expand Down
2 changes: 1 addition & 1 deletion druntime/src/core/sys/windows/winsvc.d
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ static if (_WIN32_WINNT >= 0x500) {
alias SERVICE_FAILURE_ACTIONSW* LPSERVICE_FAILURE_ACTIONSW;
}

extern (Windows) {
extern (Windows) nothrow @nogc {
BOOL ChangeServiceConfigA(SC_HANDLE, DWORD, DWORD, DWORD, LPCSTR,
LPCSTR, LPDWORD, LPCSTR, LPCSTR, LPCSTR, LPCSTR);
BOOL ChangeServiceConfigW(SC_HANDLE, DWORD, DWORD, DWORD, LPCWSTR,
Expand Down
2 changes: 1 addition & 1 deletion druntime/src/core/sys/windows/winver.d
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ struct VS_FIXEDFILEINFO {
DWORD dwFileDateLS;
}

extern (Windows) {
extern (Windows) nothrow @nogc {
DWORD VerFindFileA(DWORD, LPCSTR, LPCSTR, LPCSTR, LPSTR, PUINT, LPSTR,
PUINT);
DWORD VerFindFileW(DWORD, LPCWSTR, LPCWSTR, LPCWSTR, LPWSTR, PUINT, LPWSTR,
Expand Down

0 comments on commit a8e1ea6

Please sign in to comment.