8.2.6 OleRevokeServerDoc

OLESTATUS OleRevokeServerDoc(lhdoc)

LHSERVERDOC lhdoc;

The OleRevokeServerDoc function revokes the specified document. A server application calls this function when a registered document is being closed or otherwise made unavailable to client applications.

Parameter Description

lhdoc Identifies the document to revoke. This handle was returned by a call to the OleRegisterServerDoc function or was associated with a document by using one of the server-supplied functions that create documents.

The return value is OLE_OK if successful; otherwise, it could be one of the following:

OLE_ERROR_HANDLE

OLE_WAIT_FOR_RELEASE

If this function returns OLE_WAIT_FOR_RELEASE, the server application should not free the OLESERVERDOC structure or exit until the DLL calls the server's document Release callback function.

See AlsoOleRegisterServerDoc, OleRevokeObject, OleRevokeServer