Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

WinPE C++ Program Hardware Access Guides?

UnatiBhistUnatiBhist Member Posts: 1
edited June 10 in NTDEV

Is it possible to write a C or C++ program for Windows Preinstallation Environment (WinPE) that can access the hardware (PCI config space registers and memory i/o space)? If so, are there any guides to it since I couldn't find anything about it?

Post edited by Peter_Viscarola_(OSR) on

Comments

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 8,493

    You probably want this post to be under the NTDEV topic. THIS topic (NTFSD) is for file system filter discussions.

    I'll move your post for you.

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 8,493

    Is it possible to write a C or C++ program for Windows Preinstallation Environment (WinPE) that can access the hardware (PCI config space registers and memory i/o space)?

    Generally speaking, it's not possible to write such a program on any version of Windows (WinPE or otherwise) without using a driver. User applications are not privileged. Accessing arbitrary locations in physical memory or I/O Port space can cause (deliberately or otherwise) system instability. It would be a problem for a general purpose operating system to allow a non-privileged application to cause such instability.

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

  • Tim_RobertsTim_Roberts Member - All Emails Posts: 13,970

    That has nothing to do with your original question. Was this all just spam, given your last line?

    Tim Roberts, [email protected]
    Providenza & Boekelheide, Inc.

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 8,493

    (Spammy post now deleted. Thank you, Mr. Roberts)

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Developing Minifilters 24 May 2021 Live, Online
Writing WDF Drivers 14 June 2021 Live, Online
Internals & Software Drivers 27 September 2021 Live, Online
Kernel Debugging 15 November 2021 Live, Online