Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How can i present my new device to windows to recognise it?

How can i present my new device to windows to recognise it?

Scheduled Pinned Locked Moved C#
questioncsharpgame-devtutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    burhankaraman
    wrote on last edited by
    #1

    Nowadays , i am developing a device that uses force feed back effect of a game.i want to learn that after i created the device , how can windows will be recognize my device for example the engines etc.. A driver must be written for the device...I know c# language.Does c# has any compenant to use a device? can i write code for driver in c#?

    E L 2 Replies Last reply
    0
    • B burhankaraman

      Nowadays , i am developing a device that uses force feed back effect of a game.i want to learn that after i created the device , how can windows will be recognize my device for example the engines etc.. A driver must be written for the device...I know c# language.Does c# has any compenant to use a device? can i write code for driver in c#?

      E Offline
      E Offline
      Evan Gallup
      wrote on last edited by
      #2

      After a quick Google search, I've come to the conclusion that the answer to your question is both yes and no. You can write some drivers in C# (see User-Mode Driver Framework (UMDF)[^]), but kernel-mode drivers cannot be created with C# because it "produces intermediate language that is interpreted by a virtual machine (.NET)". The general consensus is to use C/C++ for drivers. Source: http://stackoverflow.com/questions/994600/writing-drivers-in-c[^]

      If I had a nickel for every time I tried to teach someone some programming, they didn't pay a cent of attention, then gave up, claiming it was too difficult - well, you know the rest... sadly, I'm just a programmer in an endless sea of cubes, typing my life away.

      1 Reply Last reply
      0
      • B burhankaraman

        Nowadays , i am developing a device that uses force feed back effect of a game.i want to learn that after i created the device , how can windows will be recognize my device for example the engines etc.. A driver must be written for the device...I know c# language.Does c# has any compenant to use a device? can i write code for driver in c#?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        burhankaraman wrote:

        can i write code for driver in c#?

        No. Start here[^].

        Bastard Programmer from Hell :suss:

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups