The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.98k
stars
1.66k
forks
source link
http_listener::open() crashes in WinPE environment #339
I've tried to run app using cpprestsdk http_listener in WinPE environment based on Windows 10.
But when code reaches http_listener::open() it throws exception with error code 6 (ERROR_INVALID_HANDLE). As I understend the reason of this error is HttpCreateServerSession method.
It returns this error code (btw in MSDN says that HttpCreateServerSession can't return such error code) and the exception throws.
I found only one similar problem here. But my app runs in hight integrity mode (at leas I think so). To detect this I tried code from this article: https://msdn.microsoft.com/en-us/library/bb625966.aspx. And it returns "High Integrity Process" message.
Good day.
I've tried to run app using cpprestsdk http_listener in WinPE environment based on Windows 10. But when code reaches http_listener::open() it throws exception with error code 6 (ERROR_INVALID_HANDLE). As I understend the reason of this error is HttpCreateServerSession method. It returns this error code (btw in MSDN says that HttpCreateServerSession can't return such error code) and the exception throws.
I found only one similar problem here. But my app runs in hight integrity mode (at leas I think so). To detect this I tried code from this article: https://msdn.microsoft.com/en-us/library/bb625966.aspx. And it returns "High Integrity Process" message.
Is it possible make cpprestsdk to work in WinPE?