Thursday, May 27, 2010

RpcServerUseProtseqEp returns error code RPC_S_PROTSEQ_NOT_SUPPORTED (1703)

RpcServerUseProtseqEp takes protocol sequence and endpoint paramters as type of string. If your program is compiled with UNICODE and if any of these parameters are passed non-unicode value then the function RpcServerUseProtseqEp returns error code 1703 i.e. RPC_S_PROTSEQ_NOT_SUPPORTED. Message string for RPC_S_PROTSEQ_NOT_SUPPORTED error code is “The RPC protocol sequence is not supported”.

Pass the string parameters as unicode (by prepending L to the strings) to fix this error

No comments: