Article # 315, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
Seeing what apps have a document opened.
Q. How does one find out all the applications that have a particular document file open? The problem is that IACPConnect() requires a GeodeToken to determine which servers to connect to. A. Well, IACP maintains a registry of all the open docs. Unfortunately, the only way to make use of it is to perform an IACPConnect. The token is easy enough to come by: FileGetPathExtAttributes(FEA_CREATOR, filename, disk). Create an AppLaunchBlock with the document name and a 0 disk handle for the app, and voila. A more reasonable approach would be to get the CREATOR token and do an IACPConnect with no AppLaunchBlock, then send the appropriate recorded message with a DocumentCommonParams for the document as stack data in the recorded message, sending it TO_MODEL to the GenDocumentGroupClass object (likely).