1

Topic: Efficient example of the driver

Good afternoon. Circumstances were added so that I should write the driver of virtual a catfish of port under the specific equipment. Tried to use an example from Microsoft. VirtualSerial2 https://github.com/Microsoft/Windows-dr … ualSerial2 It was possible it , to receive inf a file, cat a file and dll c the driver. But at setting an error 31 (the device works incorrectly since windows it is not possible to load the necessary drivers). Could not prompt the guru, where a shovel?

2

Re: Efficient example of the driver

Hello, anidal, you wrote: A> Good afternoon. A> circumstances were added so that I should write the driver of virtual a catfish of port under the specific equipment. A> tried to use an example from Microsoft. A> VirtualSerial2 A> https://github.com/Microsoft/Windows-dr … ualSerial2 A> It was possible it , to receive inf a file, cat a file and dll c the driver. A> but at setting an error 31 (the device works incorrectly since windows it is not possible to load the necessary drivers). A> could not prompt the guru, where a shovel? Thus VirtualSerial (on With ++) it is efficient. With  already language do not consider?

3

Re: Efficient example of the driver

Hello, anidal, you wrote: A> Thus VirtualSerial (on With ++) it is efficient. With  already language do not consider? Better they so on  examples also wrote, and them With ++ style a musty smell gives that strongly. More shortly on  at them it turns out better, it is enough to compare  the version ringbuffer.h and in their judgement with ++ implementation ringbuffer.h

4

Re: Efficient example of the driver

Hello, rumit7, you wrote: R> Hello, anidal, you wrote: A>> Thus VirtualSerial (on With ++) it is efficient. With  already language do not consider? R> it is better they so on  examples and wrote, and them With ++ style a musty smell gives that strongly. More shortly on  at them it turns out better, it is enough to compare  the version ringbuffer.h and in their judgement with ++ implementation ringbuffer.h the Buffer is better, and here the driver does not plow.

5

Re: Efficient example of the driver

Hello, anidal, you wrote: A> the Buffer is better, and here the driver does not plow. Persuaded, went to read about this error from MSDN: Starting with Windows XP, this problem can only occur if the driver's AddDevice routine fails. Judging by the code can  2 functions: DeviceCreate, DeviceConfigure. Criminal in the first I did not note anything, and here the second quite can . Anyway it is necessary to include , especially there they are stuffed.

6

Re: Efficient example of the driver

Hello, rumit7, you wrote: R> Hello, anidal, you wrote: A>> the Buffer is better, and here the driver does not plow. R> persuaded, went to read about this error from MSDN: R> R> Starting with Windows XP, this problem can only occur if the driver's AddDevice routine fails. R> Judging by the code can  2 functions: DeviceCreate, DeviceConfigure. R> criminal in the first I did not note Anything, and here the second quite can . Anyway it is necessary to include , especially there they are stuffed. Thanks. P.S. While anywhere ours descriptions as in driver tabs to add tabs for adjustments (for example as in the standard driver of CATFISH-PORT)

7

Re: Efficient example of the driver

Hello, anidal, you wrote: A> P.S. While anywhere ours descriptions as in driver tabs to add tabs for adjustments (for example as in the standard driver of CATFISH-PORT) the Most such was not necessary, but here that found: Property - Adding Property Pages to Device Drivers I Hope that is necessary for you. UPD. Also familiarize with answers in this branch the Author: Date: 11.10.12

8

Re: Efficient example of the driver

Hello, rumit7, you wrote: R> Hello, anidal, you wrote: A>> P.S. While anywhere ours descriptions as in driver tabs to add tabs for adjustments (for example as in the standard driver of CATFISH-PORT) R> the Most such was not necessary, but here that found: Property - Adding Property Pages to Device Drivers R> I Hope that is necessary for you. R> UPD. Also familiarize with answers in this branch the Author: Date: 11.10.12 Many thanks.