How to install device drivers on windows

This is a discussion on How to install device drivers on windows within the Windows Programming forums, part of the Platform Specific Boards category; Hi i was wondering how to install drivers that i created in with my C code like basic .ko files ...

  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    192

    How to install device drivers on windows

    Hi i was wondering how to install drivers that i created in with my C code like basic .ko files without having to plug in any hardware. I was considering using a dpinst.exe that would install the drivers package but I wasnt quite sure how to install the device driver without plugging something in on WINDOWS

  2. #2
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,239
    You want to install a .ko (Linux kernel module) on a Windows system? Huh?
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  3. #3
    Registered User
    Join Date
    Aug 2009
    Posts
    192
    okay well maybe not a .ko file (like .sys .dll files) but i want to intall a device driver on windows without having to plug in hardware. basically is there another way to install without using the pnp method where i have files for a device driver and want to install. And its not ilke updating drivers its installing new ones.
    Last edited by kiros88; 07-15-2010 at 12:20 PM.

  4. #4
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    611
    Code:
    sc create type= kernel binPath= "C:\Path\To\File.sys" DisplayName= MyDriver
    sc start MyDriver
    It won't work on X64 unless you sign the driver or unless you disable the enforcement through the F8 boot menu (you'll need to do this every boot you wish to run the driver). Oh and the spaces are required after the '=' for some reason, remove them at your peril.

  5. #5
    Registered User
    Join Date
    Aug 2009
    Posts
    192
    sorry im kinda new to device drivers for windows platform. but what does the command
    sc

    do is that for dos cmd prompt or something. And is there an easier command line to do it if there mutiple device driver files or should it be done individually

  6. #6
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,614
    Code:
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
    C:\Users\Twilight>sc
    DESCRIPTION:
            SC is a command line program used for communicating with the
            Service Control Manager and services.
    Sigh. People these days...
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Registered User
    Join Date
    Aug 2009
    Posts
    192
    Is SC the only way to do low level installation of device drivers?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. install linux in association with windows
    By Yarin in forum Tech Board
    Replies: 8
    Last Post: 04-06-2008, 06:07 PM
  2. saving drivers when reinstall windows XP
    By Micko in forum Tech Board
    Replies: 0
    Last Post: 08-09-2005, 12:27 PM
  3. FlashWindowEx not declared?
    By Aidman in forum Windows Programming
    Replies: 3
    Last Post: 05-17-2003, 02:58 AM
  4. device drivers i/o
    By datainjector in forum C Programming
    Replies: 2
    Last Post: 12-16-2002, 04:49 PM
  5. Linux Device Drivers
    By WebmasterMattD in forum Linux Programming
    Replies: 2
    Last Post: 05-07-2002, 09:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21