Has anyone successfully called this API from PowerBuilder? I have found two different declarations online as follows:
Try 1
Long ll_null
Any la_null
SetNull(ll_null)
SetNull(la_null)
FUNCTION long SHCreateDirectoryEx(Long hwnd, String pszPath, Any psa) LIBRARY "shell32.dll" ALIAS FOR "SHCreateDirectoryExA"
SHCreateDirectoryEx(ll_null, ls_message_log_dir, la_null)
Try 2
FUNCTION ulong SHCreateDirectoryEx (REF string lpDirectory, ulong lpSecurityAttributes) LIBRARY "shell32.dll" ALIAS FOR "SHCreateDirectoryExA"
ls_directory = "C:\Your\Directory\Path"
lul_result = SHCreateDirectoryEx(ls_directory, 0)
Both return errors on the call, any help would be appreciated. Thanks.