# FFI and dll device driver for windows

**URL:** <https://rubytalk.org/t/ffi-and-dll-device-driver-for-windows/73116>\
**Category:** ruby-talk\
**Created:** [1 July 2015 12:14 UTC](https://rubytalk.org/t/ffi-and-dll-device-driver-for-windows/73116 "2015-07-01T12:14:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![11145](https://avatars.discourse-cdn.com/v4/letter/1/9e8a1a/32.png) [@11145](https://rubytalk.org/u/11145)\
**Post date:** [1 July 2015 12:14 UTC](https://rubytalk.org/t/ffi-and-dll-device-driver-for-windows/73116/1 "2015-07-01T12:14:47Z")

</div>

Hello All!

I have one hard and new task for me. I need attach dll driver to my program. After investigation a little beet I found that gem FFI can help me with it. So, some how I need to write wrapper for my dll with ffi but I don't know how to do it. Yes, I read some helps from ffi home page but examples is not about my task. Also, bad for me, I don't know c/c++ and need to read some magic book every time a try to look for examples on c.  
Can you, please, help me? Send me some useful examples or link to useful article or book.  
I have developers documentation for this dll like:

Connect

Used  
properties  
Name Tape Access  
Password Integer 8 RW  
ComNumber Integer 0..255 RW  
BaudRate Integer 0..6 RW  
Timeout Integer 0..255 RW  
ComputerName String RW

How it will help me?

Many thanks in advance for help!

BR, Denis.
