- David Pylatuk
- PowerBuilder
- Thursday, 9 May 2024 02:33 PM UTC
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.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.