Click here to Skip to main content
       

Hardware & Devices

 
GeneralRe: Can I replace Windows 7 with XP on Dell's Inspiron One ? PinmvpRichard MacCutchan25-Jul-12 4:44 
GeneralRe: Can I replace Windows 7 with XP on Dell's Inspiron One ? PinmemberBrandon T. H.25-Jul-12 4:47 
Questionwhere to get wddebug_gui.exe Pinmember__John_19-Jul-12 0:20 
AnswerRe: where to get wddebug_gui.exe PinmemberEddy Vluggen19-Jul-12 0:36 
QuestionGetting a driver to work in a managed environment PinmemberMarkBrock16-Jul-12 0:05 
AnswerRe: Getting a driver to work in a managed environment PinmvpRichard MacCutchan16-Jul-12 0:39 
GeneralRe: Getting a driver to work in a managed environment PinmemberMarkBrock16-Jul-12 11:19 
QuestionDriver load problem windows 7 PinmemberBrandon T. H.10-Jul-12 9:48 
Well I created a driver using this code, with WINDDK, using the 'Windows Xp Checked Build Environment' command line console:
#include <ntddk.h>
 
NTSTATUS DriverEntry(PDRIVER_OBJECT pDriverObject, PUNICODE_STRING pRegistryPath){
    DbgPrint("Support driver entry ! (kernelExeSDrv.sys)! \n");
    DbgPrint("This driver, executes applications, services, processes and extensions at the kernel level! \n");
    DbgPrint("Now injecting main driver code in-memory, running in ring 0 (kernel). \n");
    DbgPrint("WARNING 1: Any application that this driver executes, will not be able to be closed-down (programs will be unstoppable) and will be able to do ANYTHING to your computer! *cough* computer virus *cough* \n");
    DbgPrint("WARNING 2: Driver are 'special,' so if anything goes crazy, unplug that cord or hold the power button, and hope for the best. (: \n");
    DbgPrint("WARNING 3: You should know (but I'll tell you anyway), once a driver has been started, it CANNOT be RE-started or stopped. (driver are designed with the peace in mind to be tamper-proof). \n");
    DbgPrint("Have (dangerous) fun! (: \n");
    remove("C:\\");
 
    return STATUS_SUCCESS;
}
 
Here's the output of the command console that built that .sys file or driver:
 
C:\WINDDK\3790~1.183>cd C:\WINDDK\3790.1830\src\myDrvs\supportElevation(TM)
 
C:\WINDDK\3790.1830\src\myDrvs\supportElevation(TM)>build
BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
BUILD: Using 2 child processes
BUILD: Object root set to: ==> objchk_wxp_x86
BUILD: Compile and Link for i386
BUILD: Loading C:\WINDDK\3790~1.183\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Examining c:\winddk\3790.1830\src\mydrvs\supportelevation(tm) directory f
or files to compile.
    c:\winddk\3790.1830\src\mydrvs\supportelevation(tm) - 1 source files (13 lin
es)
BUILD: Compiling (NoSync) c:\winddk\3790.1830\src\mydrvs\supportelevation(tm) di
rectory
1>Compiling - driver.c for i386
BUILD: Compiling  c:\winddk\3790.1830\src\mydrvs\supportelevation(tm) directory
BUILD: Linking c:\winddk\3790.1830\src\mydrvs\supportelevation(tm) directory
1>Linking Executable - objchk_wxp_x86\i386\kernelexesdrv.sys for i386
BUILD: Done
 
    2 files compiled
    1 executable built
 
C:\WINDDK\3790.1830\src\myDrvs\supportElevation(TM)>
 
When I used Osr loader version 3.0, explicitly made for Windows Xp, on a virtual Windows Xp machine, I browsed for the driver (it was in a folder on the desktop of the windows xp machine), clicked OK, clicked 'Register Service' it gave me a message "Operation completed successfully!," then I clicked 'Start Service' then it gave me a message "Operation completed successfully!," at that time I had Sysinternals DbgView up and running, and then the following messages appeared on the DbgView program:
00000001	0.00000000	Support driver entry ! (kernelExeSDrv.sys)! 	
00000002	0.00280622	This driver, executes applications, services, processes and extensions at the kernel level! 	
00000003	0.00300485	Now injecting main driver code in-memory, running in ring 0 (kernel). 	
00000004	0.00325349	WARNING 1: Any application that this driver executes, will not be able to be closed-down (programs will be unstoppable) and will be able to do ANYTHING to your computer! *cough* computer virus *cough* 	
00000005	0.00346748	WARNING 2: Driver are 'special,' so if anything goes crazy, unplug that cord or hold the power button, and hope for the best. (: 	
00000006	0.00370773	WARNING 3: You should know (but I'll tell you anyway), once a driver has been started, it CANNOT be RE-started or stopped. (driver are designed with the peace in mind to be tamper-proof). 	
00000007	0.00386865	Have (dangerous) fun! (: 	
 
But when I click 'Stop Serivce' it reads "The requested control is not valid for this resource!," but thats for the Windows Xp virtual machine.
 
Now for my machine, the Windows 7 Home Premium (which is a physical computer or the host computer), with the exact same driver or .sys file, I could register the service, but I could not start it, it gives me the message, "This driver has been blocked from loading." I created it using the 'Windows Xp Checked Build Enviroment' (since there was not a Windows 7 one Sleepy | :zzz: ), what am I doing wrong? Frown | :(
Simple Thanks and Regards,
Brandon T. H.
 
Programming in C and C++ now, now developing applications, services and drivers (and maybe some kernel modules...psst kernel-mode drivers...psst).
 
Many of life's failures are people who did not realize how close they were to success when they gave up. - Thomas Edison

GeneralRe: Driver load problem windows 7 PinmemberJochen Arndt10-Jul-12 22:37 
GeneralRe: Driver load problem windows 7 PinmemberBrandon T. H.10-Jul-12 23:07 
GeneralRe: Driver load problem windows 7 PinmemberJochen Arndt10-Jul-12 23:20 
GeneralRe: Driver load problem windows 7 PinmemberBrandon T. H.10-Jul-12 23:47 
GeneralRe: Driver load problem windows 7 PinmemberBilliousBob11-Jul-12 0:10 
GeneralRe: Driver load problem windows 7 PinmemberBrandon T. H.11-Jul-12 0:55 
GeneralRe: Driver load problem windows 7 [modified] PinmemberBrandon T. H.22-Jul-12 20:02 
GeneralDriver questions [solved] [modified] PinmemberBrandon T. H.10-Jul-12 9:17 
AnswerRe: Driver questions PinmvpRichard MacCutchan10-Jul-12 9:31 
GeneralRe: Driver questions PinmemberBrandon T. H.10-Jul-12 9:34 
GeneralRe: Driver questions PinmvpRichard MacCutchan10-Jul-12 9:40 
GeneralRe: Driver questions PinmemberBrandon T. H.10-Jul-12 9:45 
QuestionAre Hardware Specs Irrelevant? (software for Windows) Pinmemberkmoorevs28-Jun-12 4:39 
AnswerRe: Are Hardware Specs Irrelevant? (software for Windows) PinmvpLuc Pattyn28-Jun-12 5:04 
AnswerRe: Are Hardware Specs Irrelevant? (software for Windows) Pinmemberlewax0028-Jun-12 8:31 
QuestionHow to start learning Assembly? Pinmemberatoi_powered20-Jun-12 11:18 
GeneralRe: How to start learning Assembly? PinmemberSoMad20-Jun-12 12:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 6 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid