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

TouEnMasm

  • Member
  • *****
  • Posts: 1764
    • 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: 1764
    • 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: 1475
  • 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: 1764
    • 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: 8828
  • 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: 1764
    • 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: 1764
    • 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: 1764
    • 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

Gunther

  • Member
  • *****
  • Posts: 4159
  • Forgive your enemies, but never forget their names
Re: Writing driver for windows 10
« Reply #8 on: April 19, 2022, 11:12:28 PM »
Congratulation! You managed to insert your advertising into a 6 year old thread. Hats off!
You have to know the facts before you can distort them.

quarantined

  • Guest
Re: Writing driver for windows 10
« Reply #9 on: April 20, 2022, 02:17:27 AM »
Congratulation! You managed to insert your advertising into a 6 year old thread. Hats off!

lol. I noticed that (odd) post but not the link.  Mystery solved for me
all of his/her posts contain obscured links.  :undecided:

Greenhorn

  • Member
  • ***
  • Posts: 452
Re: Writing driver for windows 10
« Reply #10 on: April 20, 2022, 03:16:30 AM »
"Smells like Bot spirit."  :biggrin:
Kole Feut un Nordenwind gift en krusen Büdel un en lütten Pint.

Vortex

  • Member
  • *****
  • Posts: 2745
Re: Writing driver for windows 10
« Reply #11 on: April 20, 2022, 03:59:42 AM »
A sophisticated bot interested in driver programming. :biggrin:

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10316
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Writing driver for windows 10
« Reply #12 on: April 20, 2022, 06:12:31 AM »
I have watched the name for some time now but there are no links or spam so I have not deleted that name yet.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

HSE

  • Member
  • *****
  • Posts: 2366
  • AMD 7-32 / i3 10-64
Re: Writing driver for windows 10
« Reply #13 on: April 20, 2022, 08:48:50 AM »
Look like a link after the point.
Equations in Assembly: SmplMath

jj2007

  • Member
  • *****
  • Posts: 13661
  • Assembly is fun ;-)
    • MasmBasic
Re: Writing driver for windows 10
« Reply #14 on: April 20, 2022, 08:55:41 AM »
I have watched the name for some time now but there are no links or spam so I have not deleted that name yet.

All four posts of "Arthur" have links.