Platform SDK: Exchange Server |
The RcGenerateProxy function returns a proxy address as a Unicode string.
Header file: | PROXYGEN.H |
Library: | PROXYGEN.LIB |
RC RcGenerateProxy( HANDLE hProxySession, PRECIPIENTINFO pRecipientInfo, INT nRetries, LPWSTR * ppszProxyAddr );
See Return Values. If RcGenerateProxy returns RC_ERROR, the following can be possible causes:
You must call RcInitProxies to set up the proxy generation DLL before you call RcGenerateProxy.
RcGenerateProxy uses the pRecipientInfo and nRetries parameters, and the site's proxy information to generate a site-unique recipient proxy address in the addressing format of the foreign address-type.
When you call this function with the same pRecipientInfo parameter but a different nRetries parameter value, RcGenerateProxy returns a different proxy address. Note that the maximum supported value for the nRetries parameter is implementation specific, and can be 0 (zero).
RcGenerateProxy allocates the memory for the ppszProxyAddr parameter. Your program must free this memory by calling the FreeProxy function.
For more information on this function, see Proxy Generation DLL Entry Points.