Maybe my declaration in C#
[DllImport("dmscli.dll", CharSet = CharSet.Unicode)] public static extern bool aaApi_CreateAuditTrailRecordByGUID(int lObjectTypeId, Guid lpcguidObjGUID, int lActionTypeId, string lpctstrComment, int lParam1, int lParam2, string lpctstrParam, Guid lpcguidGUIDParam);
I've got the GUID and use it below...
string sParams = string.Empty; Guid gTempGUID = Guid.Empty;
if (aaApi_CreateAuditTrailRecordByGUID(AADMSAT_TYPE_DOCUMENT, docGUID, AADMSAT_ACT_DOC_ATTR, sComment, 0, 0, sParams, gTempGUID) == true) ... else
...
Crashes my app
I'm not passing any of the last 4 arguments. I just need a Comment on the New File (its not exposed in aaApi_CreateDocument).
Any suggestions??
Try changing both Guid to ref Guid.
public static extern bool aaApi_CreateAuditTrailRecordByGUID(int lObjectTypeId, ref Guid lpcguidObjGUID,int lActionTypeId, string lpctstrComment, int lParam1, int lParam2, string lpctstrParam, ref Guid lpcguidGUIDParam);