DeviceIoControl FSCTL_LOCK_VOLUME GetLastError=5
-
@lwei2 said:
It seems that Qt is not that compatible with Windows.
What are you talking about?
DeviceIoControl
is a WinAPI function. It has nothing to do with either MFC or Qt, which are ui framework libraries. Neither of them have anything to do with what that function does or what error it returns. Qt is also not a compiler or a linker so it has no control over what privileges your executable requests from the OS.I can't imagine finding out what the Qt forums are for!
The word Qt might give you a hint ;) Anyway - it's ok to ask non-Qt questions (preferably in non-Qt section of the forum), but low level WinAPI questions are probably better served elsewhere. You don't go to cooking forum to ask about cars. Sure there might be some overlap in those two communities but you'll have a better chance in the one dedicated to the topic you're interested in.