I have this tiny programm, which is intened to show windows file/folder properties dialog on the specified info.lpFile
:
#include <windows.h>
main() {
SHELLEXECUTEINFO info = {0};
info.cbSize = sizeof(SHELLEXECUTEINFO);
info.lpFile = "C:\test.txt";
info.nShow = SW_SHOW;
info.fMask = 0x00000000;
info.lpVerb = "properties";
ShellExecuteEx(&info);
}
When I compile and execute it, I get the following error message:
I'm using Win7 and Mingw gcc compiler. Does anybody knows what is wrong with my code? Am I missing something?
See Question&Answers more detail:os