Closed fxtack closed 8 months ago
winapi crate version: 0.3.9
Because I need to follow our project development guidelines, I must call functions that end in A and use regular characters (CHAR string).
When I called the CopyFileTransactedA function, I found that the path parameter type of this function is still WCHAR string (specifically LPCWSTR).
CopyFileTransactedA
In fact, the parameters of CopyFileTransactedA and CopyFileTransactedW are completely identical.
CopyFileTransactedW
CopyFileTransactedA: https://github.com/retep998/winapi-rs/blob/5b1829956ef645f3c2f8236ba18bb198ca4c2468/src/um/winbase.rs#L1694-L1702
If this issue can be resolved, I believe the winapi crate will become even more standardized. I look forward to your response!
just use windows-rs
Agreed, I've already done that.
winapi crate version: 0.3.9
Because I need to follow our project development guidelines, I must call functions that end in A and use regular characters (CHAR string).
When I called the
CopyFileTransactedA
function, I found that the path parameter type of this function is still WCHAR string (specifically LPCWSTR).CopyFileTransactedA
: https://github.com/retep998/winapi-rs/blob/5b1829956ef645f3c2f8236ba18bb198ca4c2468/src/um/winbase.rs#L1694-L1702If this issue can be resolved, I believe the winapi crate will become even more standardized. I look forward to your response!