467,145 Members | 996 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,145 developers. It's quick & easy.

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
  • viewed: 3399
Share:
1 Reply
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

20 posts views Thread by BJ MacNevin | last post: by
13 posts views Thread by Grant Edwards | last post: by
12 posts views Thread by Jay | last post: by
reply views Thread by Kurt B. Kaiser | last post: by
6 posts views Thread by Bart Van Loon | last post: by
3 posts views Thread by Ognjen Bezanov | last post: by
6 posts views Thread by Eran.Yasso@gmail.com | last post: by
1 post views Thread by luca | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.