Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Drivers

delphi

  • Please log in to reply
4 replies to this topic

#1 achi1965

achi1965

    CC Lurker

  • New Member
  • Pip
  • 5 posts

Posted 17 July 2012 - 11:59 PM

Hello

I have seen many examples about files .sys but want to know. what are they used for? and how do

we create them using Delphi and load them


Please give us examples...



thanks a lot
  • 0

#2 Luthfi

Luthfi

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1320 posts
  • Programming Language:PHP, Delphi/Object Pascal, Pascal, Transact-SQL
  • Learning:C, Java, PHP

Posted 18 July 2012 - 05:32 AM

Hello achi1965, Welcome to CodeCall!

Delphi simply can not create .sys file, because these files have different format with ordinary windows executable. Although there are some other approaches possible to develop device drivers with Delphi.
  • 0

#3 achi1965

achi1965

    CC Lurker

  • New Member
  • Pip
  • 5 posts

Posted 27 July 2012 - 07:59 AM

Hello

but I have seen this

http://www.delphibas...rdevelopmentkit


and deals with drivers

Thanks a lot
  • 0

#4 Luthfi

Luthfi

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1320 posts
  • Programming Language:PHP, Delphi/Object Pascal, Pascal, Transact-SQL
  • Learning:C, Java, PHP

Posted 01 August 2012 - 01:26 AM

Sorry for late response. Was, and am still, very busy.

As you can see from the link you gave, the drivers was not directly created by Delphi. You need another tool that converts binaries produced by delphi and make it into the final drivers binary. Remember that Delphi is capable to produce C objects files, which can be used inside C projects.

It actually one of the methods to create drivers with the help of Delphi. Note the "with the help of".

There is another also popular way to create drivers with the help of delphi. I.e. by using a "stub" drivers. The stub does nothing but calls routines inside .dll file(s) that implement the actual work. As you can guess, Delphi can produce the .dll files.

Another common approach with the stub driver solution is to get a stub that use windows service instead of .dll file. Again, you can write windows service with Delphi.
  • 1

#5 achi1965

achi1965

    CC Lurker

  • New Member
  • Pip
  • 5 posts

Posted 01 August 2012 - 03:32 PM

Thanks a lot
  • 0





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download