| View previous topic :: View next topic |
| Author |
Message |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Mon Aug 25, 2008 7:02 pm Post subject: Driver Development |
|
|
| Okay, i have WinDDK, how do i start a Driver Project? o.o
|
|
| Back to top |
|
 |
Zand Master Cheater
Reputation: 0
Joined: 21 Jul 2006 Posts: 424
|
Posted: Tue Aug 26, 2008 12:19 am Post subject: |
|
|
| No fancy IDE for this. Create a file named "Driver.c" - theres your project.
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Tue Aug 26, 2008 4:42 am Post subject: |
|
|
Here's my 3 files that i use
hello.c
| Code: | #include <ntddk.h>
void DriverUnload(PDRIVER_OBJECT pDriverObject)
{
DbgPrint("Driver 2 unloading\n");
}
NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
{
DriverObject->DriverUnload = DriverUnload;
DbgPrint("Driver 2");
return STATUS_SUCCESS;
}
|
sources (should be a FILE so no ext)
| Code: | TARGETNAME = hello
TARGETPATH = obj
TARGETTYPE = DRIVER
INCLUDES = %BUILD%\inc
LIBS = %BUILD%\lib
SOURCES = hello.c |
TARGETNAME = dirver name
PATH AND TYPE should be obj and DRIVER
includes and LIBS go to your inc and lib folder
SOURCES is source files (hello.c)
makefile (file type no ext)
| Code: | | !INCLUDE $(NTMAKEENV)\makefile.def |
Then i go and run the Start menu and
Windows DDK -> DDK Version xxxx -> Windows XP -> CHECKED BUILD ENVIRONMENT
This will take the cmd prompt to your files ready to build.
Then i navigate to the folder i need. So cd hello for example and type lowercase build.
Walla, in the objchk_wxp_x86 there will be more folders and eventually a .sys
_________________
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
|
| Back to top |
|
 |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Tue Aug 26, 2008 9:57 am Post subject: |
|
|
Lol, code it better or use a VM
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Tue Aug 26, 2008 10:12 am Post subject: |
|
|
| VM Ware costs alot. O.o
|
|
| Back to top |
|
 |
rapion124 Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Mar 2007 Posts: 1095
|
Posted: Tue Aug 26, 2008 10:55 am Post subject: |
|
|
It's REMOVED!...
edited: warez, keep it clean please.
|
|
| Back to top |
|
 |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Tue Aug 26, 2008 12:35 pm Post subject: |
|
|
| dnsi0 wrote: | | VM Ware costs alot. O.o |
Virtual PC is freeware...
|
|
| Back to top |
|
 |
jackyyll Expert Cheater
Reputation: 0
Joined: 28 Jan 2008 Posts: 143 Location: here
|
Posted: Tue Aug 26, 2008 1:54 pm Post subject: |
|
|
| dnsi0 wrote: | | VM Ware costs alot. O.o |
Come on please. Like anyone on here pays for software...
|
|
| Back to top |
|
 |
the_undead Expert Cheater
Reputation: 1
Joined: 12 Nov 2006 Posts: 235 Location: Johannesburg, South Africa
|
Posted: Thu Aug 28, 2008 10:22 am Post subject: |
|
|
| noz3001 wrote: |
Lol, code it better or use a VM |
I think code it better is better advice.
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
|
| Back to top |
|
 |
|