[VBA] aaApi_DisplayDocumentCheckInActionDlg2 and AADOC_ITEM?

Hi all,

I am having a delve into the ProjectWise SDK in VBA and am have stalled at implementation of the aaApi_DisplayDocumentCheckInActionDlg2 that i'm hoping to use.

The biggest issue i am having is defining the pointer to AADOC_ITEM array that this Function needs. Does anyone have any tips to getting this in VBA for a single selected Document? I either get crashes or no documents listed in the dialog that gets displayed.

Regards,

Mark