Author Topic: Writing driver for windows 10  (Read 4802 times)

TouEnMasm

  • Member
  • *****
  • Posts: 1337
    • EditMasm
Writing driver for windows 10
« on: February 15, 2016, 01:58:32 AM »
Writing a driver in asm with windows 10 is at a state of experiment.
I have made a zip with some of the needed material.
Source code of a wdm driver,IOCTL,coming from XP and modify
   to run with the windows 10 include files.
Translated header,WDM.sdk and mce.sdk who are enough for this driver
A lib with the inline functions needed by the driver.

The code has been a little modify since XP.
The reference in c++ can be found in Windows-driver-samples-master.zip for win 10.
   In the directory general\ioctl\wdm.
   can be downloaded searching "MSDN WINDOWS 10 driver sample"
There is some changes in the code.
The interest of this driver is the loader who give it a short life.
He is unloaded after used.
Help is welcome.

2020 the attachment failed  http://luce.yves.pagesperso-orange.fr/driver_system.zip
« Last Edit: August 25, 2020, 06:11:31 PM by TouEnMasm »
Fa is a musical note to play with CL

TouEnMasm

  • Member
  • *****
  • Posts: 1337
    • EditMasm
Re: Writing driver for windows 10
« Reply #1 on: February 23, 2016, 12:39:46 AM »

After some tests , I have only partial answers:
OpenSCManager need administror rights to work (win 10)
The sample asm failed to start the service .
StartService "load of the pilot has been stopped".
The c++ sample do the same thing,any idea ?.

Fa is a musical note to play with CL

qWord

  • Member
  • *****
  • Posts: 1473
  • The base type of a type is the type itself
    • SmplMath macros
Re: Writing driver for windows 10
« Reply #2 on: February 23, 2016, 01:16:07 AM »
Driver development is effectively limited to professionals, due to the needed code-signing: Driver Signing Policy.
MREAL macros - when you need floating point arithmetic while assembling!

TouEnMasm

  • Member
  • *****
  • Posts: 1337
    • EditMasm
Re: Writing driver for windows 10
« Reply #3 on: February 23, 2016, 08:25:00 PM »
An interesting part is:
 Installing an Unsigned Driver Package during Development and Test
who say
Quote
Use the F8 Advanced Boot Option
Windows Vista and later versions of Windows support the F8 Advanced Boot Option -- "Disable Driver Signature Enforcement" -- that disables load-time signature enforcement for a kernel-mode driver only for the current system session. This setting does not persist across system restarts.
The Windows 10 family edition don't seem to have the  F8 ""Disable Driver Signature Enforcement"
Fa is a musical note to play with CL

dedndave

  • Member
  • *****
  • Posts: 8827
  • Still using Abacus 2.0
    • DednDave
Re: Writing driver for windows 10
« Reply #4 on: February 24, 2016, 12:44:21 AM »
hold down the shift key when you click Restart

google is your friend - lol

TouEnMasm

  • Member
  • *****
  • Posts: 1337
    • EditMasm
Re: Writing driver for windows 10
« Reply #5 on: February 24, 2016, 04:46:29 AM »
OK
 for the shift key
Fa is a musical note to play with CL

TouEnMasm

  • Member
  • *****
  • Posts: 1337
    • EditMasm
Re: Writing driver for windows 10
« Reply #6 on: February 24, 2016, 05:09:01 AM »
First step: the c++ driver in c++ is working in 64 bits.
Fa is a musical note to play with CL

TouEnMasm

  • Member
  • *****
  • Posts: 1337
    • EditMasm
Re: Writing driver for windows 10
« Reply #7 on: February 24, 2016, 05:14:37 AM »
The c++ 32 bits driver WDM work,I must stay on the path now.
Thanks
Fa is a musical note to play with CL