EXTERN_C IMAGE_DOS_HEADER __ImageBase;
....
WCHAR DllPath[MAX_PATH] = {0}; GetModuleFileNameW((HINSTANCE)&__ImageBase, DllPath, _countof(DllPath));
Thanks a lot Shachar..
Copy link to clipboard
Copied
Hi. I want to get the location of the plugin via AE SDK, so I can query the file creation time. How would I do this ?
Its better to get it dynamically in case the user has a non-standard path where the plugin is installed.
Copy link to clipboard
Copied
this is what i use for mac:
Copy link to clipboard
Copied
Thanks. I can understand the char buffer and size values - folderW and MAX_PATH.
What would __ImageBase be ? Is it just the name of the filter I have compiled ? i.e. XXX.aex ?
Copy link to clipboard
Copied
EDIT:- A simple search helped 🙂
EXTERN_C IMAGE_DOS_HEADER __ImageBase;
....
WCHAR DllPath[MAX_PATH] = {0}; GetModuleFileNameW((HINSTANCE)&__ImageBase, DllPath, _countof(DllPath));
Thanks a lot Shachar..