Click here to Skip to main content
       

Hardware & Devices

 
GeneralRe: Can I replace Windows 7 with XP on Dell's Inspiron One ? PinmemberVaclav_Sal20-Jul-12 4:59 
GeneralRe: Can I replace Windows 7 with XP on Dell's Inspiron One ? PinmvpRichard MacCutchan20-Jul-12 6:10 
AnswerRe: Can I replace Windows 7 with XP on Dell's Inspiron One ? PinmemberBrandon T. H.24-Jul-12 21:17 
GeneralRe: Can I replace Windows 7 with XP on Dell's Inspiron One ? PinmvpRichard MacCutchan24-Jul-12 23:34 
GeneralRe: Can I replace Windows 7 with XP on Dell's Inspiron One ? PinmemberBrandon T. H.25-Jul-12 5:36 
GeneralRe: Can I replace Windows 7 with XP on Dell's Inspiron One ? PinmemberVaclav_Sal25-Jul-12 4:07 
GeneralRe: Can I replace Windows 7 with XP on Dell's Inspiron One ? PinmvpRichard MacCutchan25-Jul-12 5:44 
GeneralRe: Can I replace Windows 7 with XP on Dell's Inspiron One ? PinmemberBrandon T. H.25-Jul-12 5:47 
Questionwhere to get wddebug_gui.exe Pinmember__John_19-Jul-12 1:20 
AnswerRe: where to get wddebug_gui.exe PinmemberEddy Vluggen19-Jul-12 1:36 
QuestionGetting a driver to work in a managed environment PinmemberMarkBrock16-Jul-12 1:05 
AnswerRe: Getting a driver to work in a managed environment PinmvpRichard MacCutchan16-Jul-12 1:39 
GeneralRe: Getting a driver to work in a managed environment PinmemberMarkBrock16-Jul-12 12:19 
QuestionDriver load problem windows 7 PinmemberBrandon T. H.10-Jul-12 10: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 23:37 
GeneralRe: Driver load problem windows 7 PinmemberBrandon T. H.11-Jul-12 0:07 
GeneralRe: Driver load problem windows 7 PinmemberJochen Arndt11-Jul-12 0:20 
GeneralRe: Driver load problem windows 7 PinmemberBrandon T. H.11-Jul-12 0:47 
GeneralRe: Driver load problem windows 7 PinmemberBilliousBob11-Jul-12 1:10 
GeneralRe: Driver load problem windows 7 PinmemberBrandon T. H.11-Jul-12 1:55 
GeneralRe: Driver load problem windows 7 [modified] PinmemberBrandon T. H.22-Jul-12 21:02 
GeneralDriver questions [solved] [modified] PinmemberBrandon T. H.10-Jul-12 10:17 
AnswerRe: Driver questions PinmvpRichard MacCutchan10-Jul-12 10:31 
GeneralRe: Driver questions PinmemberBrandon T. H.10-Jul-12 10:34 
GeneralRe: Driver questions PinmvpRichard MacCutchan10-Jul-12 10:40 
GeneralRe: Driver questions PinmemberBrandon T. H.10-Jul-12 10:45 
QuestionAre Hardware Specs Irrelevant? (software for Windows) Pinmemberkmoorevs28-Jun-12 5:39 
AnswerRe: Are Hardware Specs Irrelevant? (software for Windows) PinmvpLuc Pattyn28-Jun-12 6:04 
AnswerRe: Are Hardware Specs Irrelevant? (software for Windows) Pinmemberlewax0028-Jun-12 9:31 
QuestionHow to start learning Assembly? Pinmemberatoi_powered20-Jun-12 12:18 
GeneralRe: How to start learning Assembly? PinmemberSoMad20-Jun-12 13:28 
GeneralRe: How to start learning Assembly? Pinmemberatoi_powered21-Jun-12 1:00 
GeneralRe: How to start learning Assembly? Pinmemberfat_boy21-Jun-12 4:51 
AnswerRe: How to start learning Assembly? PinmvpDave Kreskowiak21-Jun-12 2:26 
GeneralRe: How to start learning Assembly? Pinmemberatoi_powered21-Jun-12 2:40 
GeneralRe: How to start learning Assembly? PinmvpDave Kreskowiak21-Jun-12 4:37 
GeneralRe: How to start learning Assembly? Pinmemberatoi_powered21-Jun-12 13:10 
AnswerRe: How to start learning Assembly? Pinmemberfat_boy21-Jun-12 6:38 
GeneralRe: How to start learning Assembly? Pinmemberatoi_powered21-Jun-12 13:30 
GeneralRe: How to start learning Assembly? PinmemberRoger Wright21-Jun-12 13:45 
GeneralRe: How to start learning Assembly? Pinmemberatoi_powered21-Jun-12 21:08 
Generaliron carbon Pinmembermarkx819-Jun-12 4:46 
GeneralRe: iron carbon PinmemberRoger Wright20-Jun-12 11:21 
GeneralRe: iron carbon Pinmemberfat_boy21-Jun-12 6:36 
GeneralExecute driver help PinmemberBrandon T. H.18-Jun-12 13:15 
GeneralRe: Execute driver help PinmvpRichard MacCutchan18-Jun-12 22:23 
GeneralRe: Execute driver help PinmemberBrandon T. H.20-Jun-12 10:53 
GeneralRe: Execute driver help PinmvpRichard MacCutchan20-Jun-12 11:02 
GeneralRe: Execute driver help PinmvpRichard MacCutchan20-Jun-12 22:18 
GeneralRe: Execute driver help PinmemberBrandon T. H.21-Jun-12 6:39 

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
Web01 | 2.8.141220.1 | Last Updated 8 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid