OleUnblockServer

  OLESTATUS OleUnblockServer(lhSrvr, lpfRequest)    
  LHSERVER lhSrvr; /* handle to server */
  BOOL FAR* lpfRequest; /* pointer to flag for more requests */

The OleUnblockServer function processes a request from a queue created by calling the OleBlockServer function.

Parameters

lhSrvr

Identifies the server for which requests were queued.

lpfRequest

Points to a flag indicating whether there are further requests in the queue. When the function returns, this flag is TRUE if there are further requests in the queue or FALSE otherwise.

Return Value

The return value is OLE_OK if the function is successful. Otherwise, it is an error value, which can be OLE_ERROR_HANDLE or OLE_ERROR_MEMORY.

Comments

A server application can use the OleBlockServer and OleUnblockServer functions to control when the server library processes requests from client applications. The best way to use the OleUnblockServer function is outside the GetMessage function in a message loop, unblocking all blocked messages before getting the next message.

See Also

OleBlockServer