Hi,
I'll clarify my specific predicament.
It seems that when MoveFileEx is called with "MOVEFILE_DELAY_UNTIL_REBOOT" flag, an entry is written into the registry with the file names to rename. Windows being what it is, a MULTI_SZ entry is used in a way that is totally and utterly incopatible with the MULTI_SZ definition, but we'll leave that rant to another time.
The thing more interesting is that Windows, and as a result Wine, add "??" at the begining of the file name. This means that if I wanted to reanem C:\hello to C:\goodbye, the registry will get ??\C:\hello and ??\C:\goodbye. I tried passing this string directly into CreateFile, and no go (in other words, these are not valid file names, at least as far as Wine is concerned).
My question is whether anyone is familiar enough with the API to tell whether these are valid path names that are simply not understood by Windows, or whether I am supposed to strip them away, whether on Windows or on Wine?
Shachar
Uwe Bonnes wrote:
"Shachar" == Shachar Shemesh arabeyes@sun.consumer.org.il writes:
Shachar> Hi list, Can someone please give me a good place to RTFM what Shachar> the !$&!% to do with paths that have /?? in them? Can I just Shachar> give them over to win32 functions, or do I need to do something Shachar> with them first?
Shachar> Also, does anyone have any docs on "runonce.exe"? I have a very Shachar> vauge knowledge of what it does, and I could find -q -b Shachar> mentioned as command lines.
Every function using the wine implementation of CreateFile should cope with a wide range of ways of writing the file path. So what did you do and what is your problem?
Bye