windows.cfg: Added support for more interfaces.

This commit is contained in:
orbitcowboy 2020-11-22 00:15:42 +01:00
parent b7c573bc9b
commit 04041fd204
1 changed files with 60 additions and 0 deletions

View File

@ -1692,6 +1692,66 @@
<returnValue type="LPWSTR"/>
<use-retval/>
</function>
<!-- LPWSTR lstrcpynW(LPWSTR destination, LPCWSTR source, int iMaxLength);-->
<function name="lstrcpynW">
<noreturn>false</noreturn>
<returnValue type="LPWSTR"/>
<leak-ignore/>
<arg nr="1" direction="out">
<not-null/>
<minsize type="argvalue" arg="3"/>
</arg>
<arg nr="2" direction="in">
<not-null/>
<not-uninit/>
<strz/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
<valid>1:</valid>
</arg>
<warn severity="style">Security Warning: Consider using StringCchCopy instead. Using this function incorrectly can compromise the security of your application. This function uses structured exception handling (SEH) to catch access violations and other errors. When this function catches SEH errors, it returns NULL without null-terminating the string and without notifying the caller of the error. The caller is not safe to assume that insufficient space is the error condition.</warn>
</function>
<!-- LPSTR lstrcpynA(LPSTR destination, LPCSTR source, int iMaxLength);-->
<function name="lstrcpynA">
<noreturn>false</noreturn>
<returnValue type="LPWSTR"/>
<leak-ignore/>
<arg nr="1" direction="out">
<not-null/>
<minsize type="argvalue" arg="3"/>
</arg>
<arg nr="2" direction="in">
<not-null/>
<not-uninit/>
<strz/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
<valid>1:</valid>
</arg>
<warn severity="style">Security Warning: Consider using StringCchCopy instead. Using this function incorrectly can compromise the security of your application. This function uses structured exception handling (SEH) to catch access violations and other errors. When this function catches SEH errors, it returns NULL without null-terminating the string and without notifying the caller of the error. The caller is not safe to assume that insufficient space is the error condition.</warn>
</function>
<!-- STRSAFEAPI StringCchCopyA(STRSAFE_LPSTR pszDest, size_t cchDest, STRSAFE_LPCSTR pszSrc);-->
<!-- STRSAFEAPI StringCchCopyW(STRSAFE_LPSTR pszDest, size_t cchDest, STRSAFE_LPCSTR pszSrc);-->
<function name="StringCchCopyA,StringCchCopyW">
<noreturn>false</noreturn>
<returnValue type="STRSAFEAPI"/>
<leak-ignore/>
<arg nr="1" direction="out">
<not-null/>
<minsize type="argvalue" arg="2"/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<valid>1:</valid>
</arg>
<arg nr="3" direction="in">
<not-null/>
<not-uninit/>
<strz/>
</arg>
</function>
<!-- BOOL GetCommState(HANDLE hFile, LPDCB lpDCB); -->
<function name="GetCommState">
<noreturn>false</noreturn>