I'm working on a project to convert a Windows C++ DLL to a Linux SO. As I'm working through the files I've run into the Windows SAFEARRAY and the associated SafeArrayLock(), SafeArrayCreate() and SafeArrayUnlock().
Has anyone been able to replicate this SAFEARRAY structure for Linux or other C++ environment??
The Windows documentation defines the SAFEARRAY structure as the following but I'd like to be able to recreate the functionality with a Linux #include if possible.
Any help or guidance would be greatly appreciated.
typedef struct tagSAFEARRAY {
USHORT cDims;
USHORT fFeatures;
ULONG cbElements;
ULONG cLocks;
PVOID pvData;
SAFEARRAYBOUND rgsabound[1];
} SAFEARRAY, *LPSAFEARRAY;