ProjectWise请问怎样获取文档的documentID

使用静态缓存遍历文件夹下的所有文档,然后用aaApi_GetDocumentNumericProperty获取文档ID。

文件夹里面有1-10个文件,然后获取ID的时候每次都是返回1-10之间的数值,请问怎样能获取到文档真实的DocumentID?

LONG lChildCount;
LPCWSTR lpctstrDocName;
LPCWSTR lpctstrDocDesc;
LONG lpctstrDocId;

// Select all vault documents
lChildCount = aaApi_SelectDocumentsByProjectId(m_lProjectId);

if (lChildCount > 0)
{
while (lChildCount--)
{

lpctstrDocName = aaApi_GetDocumentStringProperty(DOC_PROP_NAME, lChildCount);
lpctstrDocDesc = aaApi_GetDocumentStringProperty(DOC_PROP_DESC, lChildCount);


//这里获取到的是文档在文件夹里面的序号,请问怎样才获取到文档的ID
lpctstrDocId = aaApi_GetDocumentNumericProperty(DOC_PROP_ID, lChildCount);

}

}