Translated by OOPer in cooperation with shlab.jp, on 2016/1/9.
Based on https://developer.apple.com/library/mac/samplecode/USBPrivateDataSample/Introduction/Intro.html#//apple_ref/doc/uid/DTS10000456 2006-10-16.
As this is a line-by-line translation from the original sample code, "redistribute the Apple Software in its entirety and without modifications" would apply. See license terms in each file . Some faults caused by my translation may exist. Not all features tested. You should not contact to Apple or SHLab(jp) about any faults caused by my translation.
=========================================================================== BUILD REQUIREMENTS:
Xcode 9 beta 4, OS X SDK 10.13
=========================================================================== RUNTIME REQUIREMENTS:
OS X 10.9 or later.
===========================================================================