473,503 Members | 11,508 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python + ioctl + Windows HOWTO??

Hi all!!

I'm trying to use Python to help in testing software for the Windows
Platform.

The sw we develop at the company I work for sets up quite a number of
"new" device drives in Windows, and as part of the testing process I'd
need to be able to "query" them about their state and suchlike. The
"interface" for doing so involves opening "device files" (of the form
\\.\Device\CDCrypto) and sending them ioctls to query their state.

I've been searching / googling for ioctl, and the only mentions I've
seen are to UNIX-specific modules such as fcntl. My question is, is it
possible to use similar functions / modules in windows? If so, how?

Thanks a lot

Javier

PS: Also, is there any "pre-built" "sw-testing" framework developed in
Python. I'm not refering to "unit testing" for Python code, but a way of
"plugging-on" tests and specifying dependencies so that I'd only have to
worry about what tests to write / how to test things.

Thank,s
JJJ

Jul 18 '05 #1
1 4259
Javier <no*****@ever.no> writes:
Hi all!!

I'm trying to use Python to help in testing software for the Windows
Platform.

The sw we develop at the company I work for sets up quite a number of
"new" device drives in Windows, and as part of the testing process I'd
need to be able to "query" them about their state and suchlike. The
"interface" for doing so involves opening "device files" (of the form
\\.\Device\CDCrypto) and sending them ioctls to query their state.

I've been searching / googling for ioctl, and the only mentions I've
seen are to UNIX-specific modules such as fcntl. My question is, is it
possible to use similar functions / modules in windows? If so, how?

Thanks a lot


On windows, ioctl is spelled DeviceIoControl (which is wrapped by Mark
Hammonds win32 extensions, or you use ctypes).

Thomas
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
3814
by: BJ MacNevin | last post by:
Hi all, I teach middle school and am currently trying to bring some computer science to the students. Our district has a wonderfully linked network throughout all our schools... done via MS...
13
2963
by: Grant Edwards | last post by:
A few months back I wrote a sort of a strip-chart recorder program that talks DeviceNet to a measurement widget and plots the received data in more-or-less real time using the Gnuplot module. It...
12
6789
by: Jay | last post by:
ok, i thought for 2 seconds i might have created a Keylogger in python but i still have one major think stopping me... PYTHON. when i run the program i have python create a file named keylog2.log...
0
325
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 398 open ( +5) / 3334 closed (+19) / 3732 total (+24) Bugs : 904 open ( -4) / 6011 closed (+36) / 6915 total (+32) RFE : 222 open...
6
4864
by: Bart Van Loon | last post by:
Hi all, I'm looking for a portable (FreeBSD and Linux) way of getting typical ifconfig information into Python. Some research on the web brought me to Linux only solutions ...
3
9029
by: Ognjen Bezanov | last post by:
Hello, I am trying to control a CD-ROM drive using python. The code I use is shown below.
6
3001
by: Eran.Yasso | last post by:
Hi all, I need to write a GUI app which do the followings: 1. My app waits for events from other app(actually this is a network adapter driver) running in kernel. The driver writes to file and...
1
6570
by: luca | last post by:
Hi, I was trying to make to work directly l i2c with python with the calls ioctl. But I have of the problems and I do not succeed to go ahead. this and l error 129# python pcf8591_ioctl.py...
3
4168
by: Larry Hale | last post by:
Thank you, again, Michael, for all your help many months ago. I *FINALLY* got a HowTo done up; please see http://wiki.python.org/moin/HowTo/FileMagic I've also emailed Mr. Hupp to see if he'll...
0
7212
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7364
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
405
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.