News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Writing driver for windows 10

Started by TouEnMasm, February 15, 2016, 01:58:32 AM

Previous topic - Next topic

TouEnMasm

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
Fa is a musical note to play with CL

TouEnMasm


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

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

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

hold down the shift key when you click Restart

google is your friend - lol

TouEnMasm

Fa is a musical note to play with CL

TouEnMasm

First step: the c++ driver in c++ is working in 64 bits.
Fa is a musical note to play with CL

TouEnMasm

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

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

Quote from: Gunther on April 19, 2022, 11:12:28 PM
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

Kole Feut un Nordenwind gift en krusen Büdel un en lütten Pint.

Vortex

A sophisticated bot interested in driver programming. :biggrin:

hutch--

I have watched the name for some time now but there are no links or spam so I have not deleted that name yet.

HSE

Look like a link after the point.
Equations in Assembly: SmplMath

jj2007

Quote from: hutch-- 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.

All four posts of "Arthur" have links.