Windows SDK Support Team Blog

#define _WIN32_WINNT

Browse by Tags

Tagged Content List
  • Blog Post: Hotfixes for December 2015

    Jeff here, from the SDK team with the Holiday Hotfixes. Happy patching. KB2920591 High CPU usage and performance issues occur when access-based enumeration is enabled in Windows 7 Service Pack 1 or Windows Server 2008 R2 Service Pack 1 KB3084463 WSUSutil.exe csaimport fails upon import in Windows...
  • Blog Post: Windows Hotfix List for September 2015

    Jeff here from the SDK team. It is that time of the month again, here are September’s Hotfixes. Enjoy! KB3075623 Configuring registry policy processing causes MUP to ignore Group Policy setting in Windows KB3078632 Backup software can't take server backups in Windows Server 2008 R2...
  • Blog Post: Hotfixes and Patches for Windows for July 2015

    Hey SDK friends, Jeff here with the July 2015 Hotfix List 3070714 "0x000000B8" Stop error during MPIO path failover in Windows Server 2008 R2 SP1 3060682 "The specified server cannot perform the requested operation" error occurs when GPO backup is unsuccessful and dynamic updates are disabled in...
  • Blog Post: FileSystemWatcher Fencing(Part 1)

      This post is a follow up to the FileSystemWatcher Follies post.  I received a lot of feedback that it would be useful to highlight what would be appropriate to guide against some of the pitfalls that I mentioned in that post.  I’ll cover several of the issues here over a couple of posts...
  • Blog Post: FileSystemWatcher Follies

      System.IO.FileSystemWatcher is a handy class that can be used to monitor directories for some types of changes with very little programming effort for the developer who uses it.  For some situations, it’s incredibly useful.  However, it often gets used in program designs with poor assumptions...
  • Blog Post: WLAN Programming How-To Tips and Tricks Including Using It in C#

    Questions concerning the wireless local area network APIs have been coming up a lot recently often in the context of using them from C#. You'll find an example C# WinForms application that allows you to see the almost all of the wireless network APIs in action at the end of this post. The WLAN APIs facilitate...
  • Blog Post: DNSQuery() Sample To Loop Through Multiple IP Addresses

    Jeff from the Windows SDK team here. I had a customer that wanted to just find the IP address that is registered in DNS, i.e., they wanted to get back the single public IP address and not any of the other multihomed IP addresses. Most APIs use the DNS Resolver Cache and return all of the all of...
  • Blog Post: getnameinfo() WILL use NetBIOS for name resolution

    Jeff here again from the Windows SDK team. A customer pointed out an inconsistency in some MSDN documentation and I wanted to mention it here while the documentation bug works its way through editing. According to the documentation for gethostbyaddr() , getnameinfo() will not use NetBIOS to do...
  • Blog Post: Winsock server application not accepting new connections

    Jeff here, from the Windows SDK team. Recently, I had a case involving a client server application. My customer writes software that is deployed to thousands of other customers and only 2 were having this problem, so it probably wasn’t a code problem. The server side of the application would...
  • Blog Post: Getting Linger to RST a connection in .NET

    Jeff here again from the Windows SDK Team. Recently, I had a case where the customer required use of the TCP Linger option to reset a connection when it was closed. I was able to get it to work in native Winsock with no problem, but getting the reset to be sent in .NET was rather elusive. I spend...
  • Blog Post: Windows Firewall interfaces, INetFwProducts, and InetFwProduct.

    Jeff here again. Today I have samples of the Windows Firewall interfaces, INetFwProducts , and InetFwProduct . #include "stdafx.h" #include <windows.h> #include <stdio.h> #include <netfw.h> #pragma comment( lib, "ole32.lib" ) // Forward declarations HRESULT FWProductsCOMInitialize...
  • Blog Post: Getaddrinfo() returning 127.0.0.1 for the local machine

    Hello everyone, Getaddrinfo () is an API that returns IP addresses for a passed in hostname. If the host has multiple entries the results are returned in a linked list of addresses. The hostname can either be the local machine name or a remote machine name. A customer noticed that on one particular...
  • Blog Post: Finding Your Windows Terminal Server Virtual IP Address

    My name is Jeff Lambert. I work as part of the Microsoft Developer Support team here at Microsoft support. My team supports customers who are using the technologies and tools that are part of the Microsoft Windows SDK to write desktop applications. I normally handle networking cases so when a customer...
  • Blog Post: GetIPForwardTable return’s undocumented error ERROR_MORE_DATA

    Symptom: ======= GetIPForwardTable return’s undocumented error ERROR_MORE_DATA where it should actually return ERROR_INSUFFICIENT_BUFFER in a Windows XP environment. Questions: ========= Is this an expected behavior? How we should handle the situation when ERROR_MORE_DATA is returned. Root Cause: ==...
  • Blog Post: ARP Changes in Server 2008/Vista:

    Introduction:     ARP is used to perform Duplicate Address Detection by sending an ARP request in which the Target Protocol Address is set to the IP address for which duplication is being detected. In other words, to detect whether other nodes on the subnet are using the same network address...
  • Blog Post: When custom EAP authentication dll calls EapPeerInvokeInteractiveUI for wireless LAN 802.1x

    When custom EAP authentication dll calls EapPeerInvokeInteractiveUI for wireless LAN 802.1x, a dialog box is displayed and a balloon is popped-up on Windows Vista machine. And the developer of the EAP authentication dll, needs to suppress dialog box and balloon. The scenario is like - You are using custom...
  • Blog Post: How to create different Firewall Rules on different Interfaces in Windows XP OS Programmatically?

    You want to create different exception rules on different interfaces on an XP Based operating system programmatically. Is there any API's that exists to accomplish this? You can use the INetSharingPortMapping (http://msdn.microsoft.com/en-us/library/aa365971(VS.85).aspx) and INetSharingPortMappingCollection...
  • Blog Post: Correct way to join a Multicast Group on a specified interface.

    Generally Multicast Sockets should be bound to the wildcard address [INADDR_ANY], before joining the group. Once the binding is done, you can join to the desired group by calling SetSockOpt API with IP_ADD_MEMBERSHIP providing the IP address of the desired interface and the ip address of the multicast...
  • Blog Post: Bluetooth Manager does not recognizes the devices, if the device gets paired with another box and comes back later.

    Consider the following scenario: a) You have a Bluetooth device with serial port profile connected after pairing via a USB dongle to a windows box. b) You remove the dongle and insert on an another PC and pair it. c) You then again remove the USB dongle and come back to first PC and connect the USB dongle...
  • Blog Post: How to programmatically inject a list of IP Addresses into the IP Options header in the IP Datagram [ Source Routing ]?

       IP Datagrams gets routed dynamically in the sense, we cannot precisely predict which path every IP Datagram will take to reach the destination. Some times you may need to fix the path[ a set of routers] through which the IP Datagram must travel to reach the destination. IP Source Routing...
  • Blog Post: Why is WlanGetProfile API returning encrypted keyMaterial with XML profile on Windows XP SP3?

    Question: We are trying to use some of the new WLAN APIs to get wireless network and password settings so that they can automatically connect to the network that the user is already connected to. We are getting XML based profile with keyMaterial using the WlanGetProfile API. But interestingly, in the...
  • Blog Post: Why does the TCP three way handshake never tag with DSCP value on Windows XP and Server 2003?

    Question: We are trying to introduce QoS into our VOIP services. While working on this we have observed that TCP three way handshake never tag with DSCP value. We have reproduced the issue both in Windows XP and Windows Server 2003 operating systems. My question is why TCP three way handshake never tag...
  • Blog Post: Why does the NdrClientCall2() API call takes more then 4-5 milliseconds to complete?

    Question: Why does the NdrClientCall2() API call takes more then 4-5 milliseconds to complete in my application? In rare cases I even see hundreds of milliseconds (57 millisecond at one time) just for the NdrClientCall2() API call to complete. In my application no server side processing is involved....
  • Blog Post: Get the MAC address of a machine/device whose IP Address is known

    Sometime you may be in a situation to get the MAC address of a machine/device whose IP Address is known. Conventional way like using NetBios or GetAdaptersInfo or GetAdaptersAddresses can give the MAC address of the same machine where the code is running, does not solve the purpose because the machine...
  • Blog Post: Expecting IGMPv3 packets to go out of the machine, but IGMPv2 packets are going out, What is the problem?

    Possible Scenario: On Windows XP or Windows Server 2003 by default IGMPv3 is enabled. When you send a IGMP multicast packet after joining the multicast group using IP_ADD_SOURCE_MEMBERSHIP and setsockopt(), you see that IGMPv2 packet is going out of the machine, while you are expecting IGMPv3 to go out...
Page 1 of 2 (28 items) 12