1. 아래의 URL을 통하여 Driver Develop Kit를 다운로드 받는다.
http://www.microsoft.com/whdc/devtools/ddk/default.mspx
다운로드한 DDK ISO 이미지를 이용해서 설치한 후 [내컴퓨터]- [속성] – [고급] – [환경변수]에서
사용자 변수를 추가하도록 한다. 설정 후 재부팅을 해주어야지 적용이 된다.
변수 이름에 대한 것은 아래의 내용을 참고.
For the W2K DDK the environment variable is W2KBASE, and the flag is -W2K.
For the XP DDK the environment variable is XPBASE, and the flag is -XP.
For the Windows 2003 Server  and W2K3SP1 DDK the environment variable is WNETBASE, and the flag is -WNET.
For the LDK (Longhorn Beta build 4051) the environment variable is WLHBASE and the flag is -WLH2. VC++ 디렉토리 경로
– 포함파일에서(include)  DDK 설치폴더의 inc\wxp 와 inc\ddk\wxp 추가3. 그외 필요한 파일.
– DbgView.exe : 디버그 출력 DbgPrint 를 보기위한 파일
– EnumService.exe : 빌드한 *.sys 를 서비스등록 시작을 간편하게 하기 위한 파일
– MAKEFILE : 빌드시 필요한 파일
– SOURCES : 빌드시 수정해야 하는 파일 파일의 명과 파일 경로를 알려준다.!

<MAKEFILE>

  1. #
    # DO NOT EDIT THIS FILE!!!  Edit .\sources. if you want to add a new source
    # file to this component.  This file merely indirects to the real make file
    # that is shared by all the driver components of the Windows NT DDK
    #
  2. !INCLUDE $(NTMAKEENV)\makefile.def

<SOURCES>

  1. TARGETNAME=HelloWorld
    TARGETPATH=obj
    TARGETTYPE=DRIVER
    SOURCES=HelloDriver.c
빌드)
1. 설치된 DDK의 Windows XP Checked Build Environment 프롬프트를 사용하여 빌드한다.
2. MakeFile 과 Sources 파일이 필요하며 Sources만 편집하여 빌드 ‘build’ 하면 된다.
3. 주의 해야 할점은 소스는 .c 로 되어야 하며 한글경로가 포함 되어 있으면 build가 되지 않는다.

Related Posts

답글 남기기

이메일 주소는 공개되지 않습니다.