I tried to use this function: SHCreateDirectoryExA
I can't call it to life. Here is how I tried to do:
int WINAPI SHCreateDirectoryEx(HWND hwnd, LPCSTR pszPath, void* psa);
#define PRAGMA_API SHCreateDirectoryEx;Shell32.dll!SHCreateDirectoryExA
SHCreateDirectoryEx(NULL, _chr(pif), NULL);
I got a crash for the third line: "Script crash in main"
I included the following headers:
What should be the correct way of the usage of this function?