Make a .sys File

This is a discussion on Make a .sys File within the Windows Programming forums, part of the Platform Specific Boards category; I want to make a sys file. I dont have any objective in particular, just that i need to make ...

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    19

    Make a .sys File

    I want to make a sys file. I dont have any objective in particular, just that i need to make a sys file.
    One of my techers told me to use Microsoft Driver Development Kit, but i dont know what to do. I have programmed in C++, but am more comfortable with C#.
    I would be really thankful, if some one could give me some tips and/or point me to some tutorial. I am ready to put in effort and would be really happy if it could be done with VS.net and C#.

  2. #2
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Welcome to the boards doom!

    When using CreateFile(), the file name can be anything you want it to be, even the extention is at your choice. So just end your file name with ".sys". And to give your system file the system attribute just use FILE_ATTRIBUTE_SYSTEM.
    Last edited by Queatrix; 09-05-2005 at 11:04 AM.

  3. #3
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,259
    If you've been asked to make an actual NT device driver (Not a task written as vaguely as "make a .sys file"), then you're in deep d'oh. Strictly speaking, device drivers are written in plain C. This is mainly to prevent any sort of dependency on massive amounts of runtime code, which programming in C# (requires .NET Framework), and to a lesser extent C++, would achieve.

    I've tried using the Microsoft DDK, it's hard work to set up. Writing a device driver is radically different to application development.

    You're up to your head in it, I'm afraid.

  4. #4
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    Your teacher is correct. For windows XP you need the Windows 2003 DDK. As far as I know, there is no place to download the DDK on the net. In order to get my copy, I ordered it from MSDN (I only had to pay for shipping).

    SMurf is right, drivers are written in C only. Drivers are very tough to write at first, and I strongly suggest you buy a book to get you started. Most driver writing tutorials on the net are poorly written or outdated.

  5. #5
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    Any suggestions for a good book to start with?
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  6. #6
    Dump Truck Internet valis's Avatar
    Join Date
    Jul 2005
    Posts
    357
    Device Driver development is just awesome.
    Useful site: http://www.osronline.com/
    As for books: Windows NT Device Driver Development, by Peter Viscarola, W. Anthony Mason is a great starter

  7. #7
    Registered User
    Join Date
    Sep 2005
    Posts
    19
    No i dont need to develop a Driver (Thankfully, from what i have heard from you people). The thing is really weird and vague. If some one had asked me a similar question i would have echoed the same sentiments. But our teacher insists on seeing the code (so no renaming) and suggested we use the device driver.
    This is very stupid and i dont think i would learn much this way. So i thought about using C# and VS.net as i use am already comfortable with that.
    What kind of code automatically generates a .sys file automatically in VS like a MS DDK automatically generates one.

  8. #8
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    If your teacher told you to go ahead and create a device driver (which a sys file usually is on modern windows systems) without teaching it specifically, then he needs to be carted off to the local nut-house!

    I'd go back and ask him specifically what he wants.

  9. #9
    Registered User
    Join Date
    Sep 2005
    Posts
    19
    I agree with you. Whats even shocking is that its a networking class. Most of my friends are making a simple program for implementing a client server thing, but due to special enimity towards me, he asked me to do this.
    He said that read the DDK and stuff and do it. I am fuming coz i dont know what i have to do, how i have to it and why in the whole world do i have to do it!!!!

  10. #10
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    he obviously wants you to write a driver. the question is what does your driver drive? Without complete hardware specifications for the piece you are writing the driver for you might as well not start because you wont get anywhere.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  11. #11
    Registered User
    Join Date
    Sep 2005
    Posts
    19
    Ya rite. So basically i need to write some code, that would ape a driver? I saw the samples with DDK, but couldnt understand much.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  3. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM
  4. what does this mean to you?
    By pkananen in forum C++ Programming
    Replies: 8
    Last Post: 02-04-2002, 02:58 PM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 01:58 AM

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