Hi All!

I tried to use this function: SHCreateDirectoryExA
I can't call it to life. Here is how I tried to do:
Code
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:
Code
#include <acknex.h>
#include <strio.c>
#include <windows.h>
#include <stdio.h>

What should be the correct way of the usage of this function?

Last edited by Aku_Aku; 08/13/20 18:42.