http://bugs.winehq.org/show_bug.cgi?id=25207 --- Comment #15 from lizhenbo <litimetal(a)gmail.com> --- (In reply to comment #14)
(In reply to comment #12)
Could I use SHCreateDirectory ?
Probably yes, although in Windows Vista and later, SHCreateDirectory has been replaced by SHCreateDirectoryEx; I don't know what the situation is in Wine.
My only concern would be what to supply as the 'hwnd' parameter. Maybe you should pass NULL when the FOF_SILENT flag is set and lpFileOp->hwnd if not?
Thank you. I checked wine's code, and I found SHCreateDirectoryEx has been implemented. As test_sh_create_dir() shows, SHCreateDirectoryEx should work in most situations (but may lack of tests for exceptions) Besides of it, I worry about dependencies. Luckily, SHCreateDirectoryExW and SHFileOperationW is in the same file, but I don't know if it is guaranteed. Thanks for mentioning 'hwnd'. I think we should do more tests, instead of only studying MSDN(although it's a good reference) IMHO. Sorry for my humble expressions. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.