8.2.1 OleBlockServer

OLESTATUS OleBlockServer(lhSrvr)

LHSERVER lhSrvr;

The OleBlockServer function causes requests to the server to be queued until the server calls the OleUnblockServer function.

Parameter Description

lhSrvr Identifies the server for which requests are to be queued.

The server must call the OleUnblockServer function after calling the OleBlockServer function.

A server application can use the OleBlockServer and OleUnblockServer functions to control when the server DLL processes requests from client applications. Because only messages from the client to the server are blocked, a blocked server can continue to send messages to client applications.

The return value is OLE_OK if successful; otherwise, it could be OLE_ERROR_HANDLE.

See AlsoOleRegisterServer, OleUnblockServer