我想使用 MoveFile 函数,该函数使用两个 LPWSTR 参数,但我有一个 char* 和 LWSTR,如何连接它们?
//move file
LPWSTR latestFile = L"test.SPL";
char* spoolFolder = "C:\\Windows\\System32\\spool\PRINTERS\\";
LPWSTR fileToMove = spoolFolder + latestFile;
BOOL moved = MoveFile(latestFile, L"C:\\UnprocessedFiles\\" + latestFile);