Click here to Skip to main content
15,898,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows Driver Development Pin
l a u r e n5-Mar-01 2:41
l a u r e n5-Mar-01 2:41 
GeneralRe: Windows Driver Development Pin
MickAB5-Mar-01 3:12
MickAB5-Mar-01 3:12 
GeneralRe: Windows Driver Development Pin
.::RockNix::.5-Mar-01 4:37
.::RockNix::.5-Mar-01 4:37 
GeneralRe: Windows Driver Development Pin
MickAB5-Mar-01 5:57
MickAB5-Mar-01 5:57 
GeneralRe: Windows Driver Development Pin
.::RockNix::.5-Mar-01 21:29
.::RockNix::.5-Mar-01 21:29 
GeneralRe: Windows Driver Development Pin
MickAB6-Mar-01 1:17
MickAB6-Mar-01 1:17 
GeneralRe: Windows Driver Development Pin
.::RockNix::.6-Mar-01 4:31
.::RockNix::.6-Mar-01 4:31 
GeneralRe: Windows Driver Development Pin
MickAB6-Mar-01 5:50
MickAB6-Mar-01 5:50 
OK, back again. A word of warning, I'm giving these answers on-the-fly, some info might not be 100% correct.

>But wait ... what about possible handshaking between hardware and ser-port. Could this cause a deadlock ? >Maybe an app is sending midi-msg through the ser-device and the device waits for a handshake.

The handshaking is set up by configuring the serial port (either via the serial port property pages or programmatically).
You should 'capture' the serial port when your driver inserts itself. This won't necessarily deadlock the machine if your driver blows it's stack or something, but may require a reboot to release and reset the serial port.

As far as the MIDI stuff goes, what you actually are writing is a *MIDI driver*, which uses the serial port. So your drivers should be enumerated by the system as a MIDI device, and query your hardware to enumerate all the midi devices on the serial port. The actual serial port access is the *easy* part.
You should be able to drive the serial hardware from user mode, but test performance first. Besides which, if you write it correctly, you can develop the driver fully in user-mode, then try a kernel-mode implementation only if you can't get the best performance.
Another point to note is that the device driver may integrate better with windows not as a pure MIDI device, but as some type of DirectMedia driver.

OK, that's as much useful advice as I can give....

Abbreviations
IMHO In My Humble Opinion
IMO In My Opinion
AFAIK As Far As I Know

RTFM Read The F*****g Manual (Note, this is *not* necessarily insulting)
ROFL Rolls On Floor Laughing (Also ROFLMAO, MAO - My A** Off)
WTF What The F***

Look for 'MIDI' & 'serial' in the MSDN & DDK. (That's a 'RTFM' (!))

Are you in Germany? Italiano or Deutsche? (I'm in Munich);)
GeneralRe: Windows Driver Development Pin
.::RockNix::.6-Mar-01 21:35
.::RockNix::.6-Mar-01 21:35 
GeneralRe: Windows Driver Development Pin
MickAB6-Mar-01 23:42
MickAB6-Mar-01 23:42 
GeneralRe: Windows Driver Development Pin
Joe Moldovan5-Mar-01 7:10
Joe Moldovan5-Mar-01 7:10 
GeneralRe: Windows Driver Development Pin
MickAB5-Mar-01 3:12
MickAB5-Mar-01 3:12 
GeneralHelp needed with PropertySheet Pin
4-Mar-01 23:36
suss4-Mar-01 23:36 
GeneralSetProcessWorkingSetSize and Memory Locking Pin
4-Mar-01 20:07
suss4-Mar-01 20:07 
GeneralRe: SetProcessWorkingSetSize and Memory Locking Pin
4-Mar-01 22:56
suss4-Mar-01 22:56 
GeneralRe: SetProcessWorkingSetSize and Memory Locking Pin
5-Mar-01 1:49
suss5-Mar-01 1:49 
GeneralGlobal variable ... Pin
Hadi Rezaee4-Mar-01 18:15
Hadi Rezaee4-Mar-01 18:15 
GeneralWriting VC++ dll to work with Delphi 5? Help Please!! Pin
4-Mar-01 16:16
suss4-Mar-01 16:16 
GeneralRe: Writing VC++ dll to work with Delphi 5? Help Please!! Pin
l a u r e n4-Mar-01 20:40
l a u r e n4-Mar-01 20:40 
GeneralRe: Writing VC++ dll to work with Delphi 5? Help Please!! Pin
4-Mar-01 22:16
suss4-Mar-01 22:16 
GeneralRe: Writing VC++ dll to work with Delphi 5? Help Please!! Pin
4-Mar-01 22:17
suss4-Mar-01 22:17 
QuestionHOW to use ADO with VC++, please help! Pin
4-Mar-01 11:52
suss4-Mar-01 11:52 
AnswerRe: Try this site.... Pin
Brendan Tregear4-Mar-01 14:30
Brendan Tregear4-Mar-01 14:30 
GeneralRe: Try this site.... Pin
Joe Moldovan5-Mar-01 5:58
Joe Moldovan5-Mar-01 5:58 
GeneralATL, subclassed ListBox Pin
4-Mar-01 6:47
suss4-Mar-01 6:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.