Hi andy5739,
I'm not sure if this is your problem but quickly looking at the code I don't think you are initializing the HTTP_SERVICE_CONFIG_IP_LISTEN_PARAM correctly. You are trying to cast a pointer to a std::wstring to a PSOCKADDR and then calling sizeof on the std::string, I don't think either of these are correct. Take a look here for the documentation on PSOCKADDR.
Also since your question here is about HttpSetServiceConfiguration, which isn't part of the C++ REST SDK, I recommend you ask on the Windows forum.
Steve
I'm not sure if this is your problem but quickly looking at the code I don't think you are initializing the HTTP_SERVICE_CONFIG_IP_LISTEN_PARAM correctly. You are trying to cast a pointer to a std::wstring to a PSOCKADDR and then calling sizeof on the std::string, I don't think either of these are correct. Take a look here for the documentation on PSOCKADDR.
Also since your question here is about HttpSetServiceConfiguration, which isn't part of the C++ REST SDK, I recommend you ask on the Windows forum.
Steve