Sample Code
OSX Driver and Kext Samples/ HID_Utilities/ HID_Utilities/ build/ Release/ HID Utilities.framework/ Versions/ A/ Headers/ ImmrHIDUtilAddOn.h/
// File: ImmrHIDUtilAddOn.h //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // Abstract: Glue code to convert IOHIDDeviceRef's to (FFB) io_object_t's //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // Version: 2.0 //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // Inc. ("Apple") in consideration of your agreement to the following //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // terms, and your use, installation, modification or redistribution of //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // this Apple software constitutes acceptance of these terms. If you do //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // not agree with these terms, please do not use, install, modify or //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // redistribute this Apple software. //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // In consideration of your agreement to abide by the following terms, and //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // subject to these terms, Apple grants you a personal, non-exclusive //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // license, under Apple's copyrights in this original Apple software (the //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // "Apple Software"), to use, reproduce, modify and redistribute the Apple //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // Software, with or without modifications, in source and/or binary forms; //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // provided that if you redistribute the Apple Software in its entirety and //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // without modifications, you must retain this notice and the following //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // text and disclaimers in all such redistributions of the Apple Software. //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // Neither the name, trademarks, service marks or logos of Apple Inc. may //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // be used to endorse or promote products derived from the Apple Software //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // without specific prior written permission from Apple. Except as //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // expressly stated in this notice, no other rights or licenses, express or //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // implied, are granted by Apple herein, including but not limited to any //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // patent rights that may be infringed by your derivative works or by other //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // works in which the Apple Software may be incorporated. //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // The Apple Software is provided by Apple on an "AS IS" basis. APPLE //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS. //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // POSSIBILITY OF SUCH DAMAGE. //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // Copyright (C) 2009 Apple Inc. All Rights Reserved. //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject); // //***************************************************** #include <IOKit/IOKitLib.h> #include <IOKit/hid/IOHIDLib.h> extern io_service_t AllocateHIDObjectFromIOHIDDeviceRef(IOHIDDeviceRef inIOHIDDeviceRef); extern bool FreeHIDObject(io_object_t inHIDObject);
Our Services
-
What our customers say about us?
Read our customer testimonials to find out why our clients keep returning for their projects.
View Testimonials