title: How can I get the Kinect serial number with OpenNI?
body: <p>How can I get the serial numbers of my kinect devices in OpenNI? I'm using
  avin2's SensorKinect driver.</p>
  
  <p>I'm trying the following, but I only get "0" in my variable <code>serial</code>:</p>
  
  <pre><code>xn::NodeInfoList possibleChains;
  context.EnumerateProductionTrees(XN_NODE_TYPE_DEVICE,NULL,possibleChains,NULL);
  for(xn::NodeInfoList::Iterator i = possibleChains.Begin(); i !=
  possibleChains.End(); ++i)
      {
          xn::NodeInfo node = *i;
          nRetVal = context.CreateProductionTree(node);
          xn::Device device;
          nRetVal = node.GetInstance(device);
          XnChar serial[1024];
          device.GetIdentificationCap().GetSerialNumber(serial, 1024);
      } 
  </code></pre>