Unable to boot Windows 10 guest using VirtualBox with enabled Hyper-V and WSL2 installed [closed]

Downgrade to WSL1, if you want to save yourself from days of wasted effort. I’ve upgraded to WSL2 and tried a bit to get VirtualBox to work with it and I couldn’t find anything useful. There are few guides suggesting that turning off some features of VirtualBox will make it work, however it will make … Read more

Windows packet sniffer that can capture loopback traffic? [closed]

What you should do is to run RawCap, which is a sniffer that can capture traffic to/from the loopback interface in Windows. Just start it with “RawCap.exe 127.0.0.1 loopback.pcap”. You can then open up loopback.pcap in Wireshark or NetworkMiner to look at the network traffic. You can find RawCap here: http://www.netresec.com/?page=RawCap Good Luck!

How to fix (node:12388) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated in windows

Node version 12 depracated OutgoingMessage.prototype._headers, which is used in http-server. Issue is listed at: https://github.com/http-party/http-server/issues/537 https://nodejs.org/api/deprecations.html#deprecations_dep0066_outgoingmessage_prototype_headers_outgoingmessage_prototype_headernames Using node 12.0.0 I get the same error using http-server. Switching to 10.11.0 removes the error.

What’s an alternative to GWL_USERDATA for storing an object pointer?

SetWindowLongPtr was created to replace SetWindowLong in these instances. It’s LONG_PTR parameter allows you to store a pointer for 32-bit or 64-bit compilations. LONG_PTR SetWindowLongPtr( HWND hWnd, int nIndex, LONG_PTR dwNewLong ); Remember that the constants have changed too, so usage now looks like: SetWindowLongPtr(hWnd, GWLP_USERDATA, this); Also don’t forget that now to retrieve the … Read more

Programming In C + Win API: How To Get Windows 7 Look For Controls?

That’s how the controls looked back in the 1990s, before themes (visual styles) were invented. As you’ve noticed, modern buttons are now painted all fancy-pants with gradients and throbbing and all that. But for backwards-compatibility reasons, you have to specifically request that your controls get that treatment, or they’ll fall back to the legacy style. … Read more

‘inet_pton’: identifier not found

the function int inet_pton(int af, const char *src, void *dst); is declared in header file: #include <arpa/inet.h> if this is Windows (Vista or later) there is Winsock analog to this ANSI version: INT WSAAPI InetPton( _In_ INT Family, _In_ PCTSTR pszAddrString, _Out_ PVOID pAddrBuf ); try #include <Ws2tcpip.h> add Ws2_32.lib