Along with this, the ITPMDK module defines a public function through which document information can be retrieved at any time:
Public Sub GetDocumentInfo(pDocument As Document,
pIsITPMDKDoc As Boolean,
pDocName As String,
pDocPath As String,
pIsReadOnly As Boolean)