Posted By: Aku_Aku
[SOLVED] Using the SHCreateDirectoryExA function - 08/12/20 13:33
Hi All!
I tried to use this function: SHCreateDirectoryExA
I can't call it to life. Here is how I tried to do:
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?
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?