microsoft / win32metadata

Tooling to generate metadata for Win32 APIs in the Windows SDK.
Other
1.32k stars 113 forks source link

Add `StringCchCopyW` and other string safe functions from "strsafe.h" #1887

Closed wuweiran closed 4 months ago

wuweiran commented 5 months ago

Suggestion

windows::Win32::Globalization::lstrcpynW is deprecated according to the doc. Need the replacement functions.

kennykerr commented 5 months ago

This is a request for the Win32 metadata repo.

riverar commented 4 months ago

Does Windows ship with this inbox? Or is this a utility function that ships with the safe string lib? Not immediately finding it in the CRT/UCRT set of APIs...

kennykerr commented 4 months ago

Note that strsafe is mostly an inline header library so not suitable for Win32 metadata.

riverar commented 4 months ago

Hey @wuweiran, as Kenny pointed out, this function is a helper defined in strsafe.h and not part of the Win32 API surface, therefore not appropriate for Win32 metadata. Thanks for filing an issue though!