Hi Samir,
Thank you very much for your answer.
I paste here the signature I have used to help future reader because I have tried few things and only one has worked:
local c = require "c"
local shell32 = c.Library("shell32.dll")
shell32.SHCreateDirectoryExW = "s(JWp)i"
Here, if the s (for stdcall) is not written, the function-call returns an error 161.
Another precision that can help: this function does not accept relative-path, so I used the Directory.fullpath property.
Best regards,