I'm trying to implement IFileWriter's Write function on linux.

I want to get the data and it's lenght from the Data argument, which is a SAFEARRAY type.

I can't find where the type is declared other than in wtypes.h:

typedef void SAFEARRAY

To work with it in linux (no oaidl.h available) I must get the data (eg a *unsigned char) and the lenght of data (eg int or size_t)