This is the English forum for all topics related to IO-Warrior. Please post in English only

Moderator: Guido Körber

Post Reply
Posts: 12
Joined: Fri Jul 09, 2010 11:15 am


Post by eamo »

In the documentation for IowKitCloseDevice it state that:
void IOWKIT_API IowKitCloseDevice(IOWKIT_HANDLE devHandle);
As of dynamic library version 1.4 the function ignores the parameter completely. Since it closes all
opened IO-Warriors anyway, there is no real need to check if the parameter is the IOWKIT_HANDLE
returned by IowKitOpenDevice().
The parameter is now only retained for compatibility and cleaner looking sources. If you handle only a
single IO-Warrior in your program then IowKitOpenDevice() and IowKitCloseDevice() look
and work as intuition suggests.
so the 'IOWKIT_HANDLE devHandle' parameter doesnt do anything? I need to be able to close devices individually, is there any way of doing this?

User avatar
Christoph Jung
Posts: 628
Joined: Sun Oct 08, 2006 3:43 pm
Location: Germany / Berlin

Re: IowKitCloseDevice

Post by Christoph Jung »

Yes. You can close single devices. For this is the parameter.
Abteilung: Softwareentwicklung
Folge uns auf Twitter
Follow us on twitter

Post Reply