virtual joystick devices

Hi all.
I want to create a virtual joystick as Vjoy device. (don't want to use the dll, etc...)

So I just started to learn how to write a driver:

NTSTATUS DriverEntry (PDRIVER_OBJECT IN pDriverObject, IN PUNICODE_STRING pRegistryPath)
{
NtStatus = STATUS_SUCCESS;
uiIndex = 0;
pDeviceObject = NULL;
DbgPrint ("[DRIVER] DriverEntry called!");

NtStatus = RtlUnicodeStringInit (& usDriverName, L "\\Device\\Example0");
NtStatus = RtlUnicodeStringInit (& usDosDeviceName, L "\\DosDevice\\ExampleDevice0");
NtStatus = IoCreateDevice (pDriverObject, 0, & usDriverName, FILE_DEVICE_CONTROLLER, 0, FALSE, & pDeviceObject);

if(NTSTATUS == STATUS_SUCCESS)
{
DbgPrint ("[DRIVER] IoCreateDevice success!");
for (uiIndex = 0; uiIndex)< irp_mj_maximum_function;="">
pDriverObject-> MajorFunction [uiIndex] is Example_UnSupportedFunction;.
}
If (NtStatus! = STATUS_SUCCESS) {}
DbgPrint ("[DRIVER] Example_UnSupportedFunction failed!");
return NtStatus ;}

pDriverObject-> MajorFunction [IRP_MJ_CLOSE] = Example_Close;
pDriverObject-> MajorFunction [IRP_MJ_CREATE] = Example_Create;
pDriverObject-> MajorFunction [IRP_MJ_DEVICE_CONTROL] = Example_IoControl;
pDriverObject-> MajorFunction [IRP_MJ_READ] = Example_Read;
pDriverObject-> MajorFunction [IRP_MJ_WRITE] = USE_WRITE_FUNCTION;
pDeviceObject-> flags | = IO_TYPE;
pDeviceObject-> flags & = (~ DO_DEVICE_INITIALIZING);
IoCreateSymbolicLink (& usDosDeviceName, & usDriverName);
DbgPrint ("[PILOT] EVERYTHING is OK" "");
}
return NtStatus;
}

The code works, I can show messages in DebugView.But I'm stuck, searched all over the internet to see what to do next.
If anyone has any info on 'faking', say windows new device usb (stick). I'm going to thank.

I'm on Window7 - visual studio 2008 - WinDDK 7600.16385.1

Hi Cindy,.

Thank you for visiting Microsoft Community.

I suggest you to send your query to Microsoft® TechNet Forums where we have experts who can help you in the field and the development of pilot and sharing.

https://social.msdn.Microsoft.com/forums/Windowsdesktop/en-us/home?Forum=WDK

I hope this helps.

Tags: Windows

Similar Questions

  • Virtual joystick for Toshiba Libretto W100

    Hi friends,
    There's a virtual joystick for Toshiba Libretto?
    It should be indicated? on the second screen to control a game on the main screen.
    Thank you. Rgds.

    Hello

    Well, it would be a good idea to have something like that for the control of game but I think that this should be a part of the game.
    If the game would be developed for device with a double screen this gamepad should appear automatically.

  • Problem with Avnex Virtual Audio Device

    My sound has stopped working, the computer indicates that the sound plays but Avnex Virtual Audio Device says Windows cannot load the device of this material. The driver may be corrupted or missing (Code 39). I pressed, check for solutions, but nothing, how to fix this?

    Hello

    ·         You have made no changes to the computer until the problem occurred?

    I suggest to visit the link below and follow the steps provided:

    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows

    You can also check:

    http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-fixing-common-sound-problems

  • "Unable to create the virtual SCSI device to the scsi: 0:0" import *. EGGS in ESXi 5.1u2

    Hi, I need to deploy a VM of *.ova in my cluster with 5.1 ESXi hosts u2 (1900470), but when I try to run it I get this error:

    Unable to start the virtual machine.

    Power DevicePowerOn module has failed.

    Unable to create the virtual SCSI device for scsi0:0, ' / vmfs/volumes/51e7fc6b-85806744-fb38-0021286bb22a/xxx.vmdk'

    Unable to create the virtual device. Stack 16 or 255 sectors per track is not supported.


    The same deployment works in another cluster with 5.1 ESXi hosts (700733) and on my vmware workstation 10.

    I have tryied compatibility material upgrade\downgrade with wmware workstation and download directly to my host but still do not

    I formatted the hard drive hard by ssh and readded to the inventory, I tried to convert vm to work cluster... nothing to see...

    Any suggestions? Thank you

    Solved! I don't know why but the import of virtual machines with 5.1u2 ESXi, heads, and sectors in *.vmdk file are reversed:

    BEFORE:

    ddb.geometry.biosHeads = "16".

    ddb.geometry.biosSectors = "255".

    DDB. Geometry.Heads = "16".

    DDB. Geometry.sectors = "255".

    AFTER:

    ddb.geometry.biosHeads = "255".

    ddb.geometry.biosSectors = "16".

    DDB. Geometry.Heads = "255".

    DDB. Geometry.sectors = "16".

    Connect to a host with SSH and editing *.vmdk file with VI will be the virtual machine starts without problems!

  • Virtual Raw Device Mapping

    Can someone explain to me the difference between a regular virtual disk and a virtual raw device mapping? When I create the RDM I am just creating a file pointer to the correct virtual file? If yes why anyone would use virtual raw device instead of just mapping to create a typical virtual drive? I understand the benefits and limitations of the physical RDM I just do not understand the goal of the RDMS virtual.

    Well, even if a RDM in virtual mode allows you to use the tricks and VMware snapshots is not always the same thing as VMFS datastore.   As stated previously, you can easily remove this ROW and the provision of a physical server without losing a bit of data or to copy.

    If you have found this device or any other useful post please consider the use of buttons useful/correct to award points

  • The network for ZFS supports "virtual storage device.

    Hello

    I'll put up a 5.1 ESXI machine to test the performance / proof of concept with a "storage device" in a virtual machine on a host computer.

    Right now I use a version of solaris (community edition of nexenta) to test.

    With success, I was able to set up the machine with through disk controllers and add a vswitch initial with a configured vmkernel port and a group of ports for virtual machines. -J' was able to set up comments solaris vm with two adapters e1000 in the vswitch, to be used for the management and the other configured with an address within the same private network that the port on the management... network vmkernel and things seem to work well.

    I wanted to test if there is no improvement in performance using the vmxnet3 adapter and have a completely 'virtual network' dedicated solely to the nfs traffic.

    So I created an additional vswitch without adapters attached to it, with an another vmkernel port and a second virtual machine portgroup and added a vmxnet3 adapter to my "vm storage" to go on this vswitch.

    Before I do, I was wondering if VMCI or anything else already going to do what I want (i.e. ESXi allow communicate with the computer in virtual storage on nfs with speeds above that the limitation of the e1000 adapter would provide by default)

    I say this because my initial test with iozone gave me numbers that seemed beyond 1 GB...

    So, to summarize, the e1000 would be made generally better than 1 Gbit of networking 'local' (in the same host); and (assuming that the handles of the tcp/ip stack of the guest OS UI VMXNET3 well - IE drivers, configuration, the efficiency of the OS.)  the VMXNET3 adapter would be even better.

    It can even better if the uplink to the physical network is faster.  The rate of 1GBit 'link' basically means nothing.

    If someone could point me to a 'best practice' guide or the discussion about setting up isolated networks 'private host' for best performance with NFS virtualized shared storage, I'd appreciate it. My plan is to implement three hosts, with the majority of local data stores to the same host, with little nfs traffic going to each box...

    Well, there's really only 1 way to set up a network of 'host-only', so I don't think you will find a guide BP.

    Also the terminology escapes me a bit, because 'virtual private network', 'private network' have other meanings in other contexts. Don't know what to call a network which has not set the physical network adapters and is localized to a single ESXi host...

    Most called it a network invited only.

  • How to install virtual SCSI device drivers?

    Hello

    The start or resumption of my recently updated VM Pro updated to XP (from Win2k Pro) I get a message stating that I need to install a SCSI device driver virtual for XP as such devices are not natively supported in XP (despite my not being not unaware of these devices on my system). So - I ended up finding the relevant download (one provided in the message is not incorrect) and is in the form of a folder compressed containing two .flp files. I can extract each of these files, but when I try & expand / extract the archive as a whole, I am invited to a password. I don't know what to do with these .flp files. Research on the extension, I find these are floppy disk for VMWare Fusion image files, but do not have a floppy drive on my machine. I hope that you do not have , but we still don't know what I would do with them.

    What should I do with these files? My VM seems to work very well at the moment, but I don't want to deal with those pesky startup messages correctly & not just check her "tell me again" checkbox, which is sweeping some question merger think I have with XP under the proverbial rug.

    Fusion 2.0.3 Mac OSX 10.5.6 Win XP Pro

    Kind regards

    DA.

    If your virtual machine has been configured with a floppy drive, then just change the parameters, change and to use an image, navigate to the .flp file that you downloaded.

    If your VM has not been configured with a floppy drive, then shut down/put off the power of the guest.  Change settings, add a floppy drive, and then follow the directions above.

    Now inside your comments with connected floppy image, you should be able to open Explorer, locate the drive A:.  Right-click the .inf file, and then choose install.

  • Core upgraded to 4.0 on Centos 7 VMWare Workstation 11 won't build the virtual network device

    As shown in the topic, I have manually compiled kernel 4.0 for my installation of CentOS 7. After the installation of the kernel (in rpm mode, followed the instructions here: How to compile a Kernel - The Way CentOS ) installed all 3 rpm, kernel, kernel-headers and kernel-devel and then tried to start my installation of workstation with it leads to having to re - build the components (as usual)

    It does not, when it came to the compilation of the network management module. See attached log file that it generated.

    I also tried to uninstall, downloaded VMware-Workstation-Full - 11.1.0 - 2496824.x86_64.bundle and re-installed with the same result.

    Any help would be appreciated!

    aaand..., I fixed my only problem!

    Credit:

    https://wiki.archlinux.org/index.php/VMware

    just applied the 3.19 patch and He-voila!

  • No virtual USB port printer and device option think its an IEEE 1284.4 print media device

    I read a number of threads and can still not my problem fixed.  I have a Dell box running Windows XP SP3 and tries to connect to a printer of labels Zebra GX420t via a USB connection.  He was not to recognize the printer and I think I inadvertently he associated with the generic IEEE 1284.4 printing support driver.  I really need a usbprint driver.  Now, whenever I connect the printer, I get the yellow symbol in the Device Manager and I do not know how to change the driver to a USB driver.  I plug the printer even in my Windows 7 box and it uses a virtual USB port and the same thing happens when I plug it into my laptop running XP SP3.  No virtual USB port is an option on my desk.  Any thoughts?

    Just to close this thread...

    I ended up using the original XP Pro disc to 'fix' the corrupted files.  It was a disc of SP2, so I had to make all the updates to get back to where I was.  NA not losing all the data (which was nice).  Once all updates have been made, I plugged the printer without loading all the drivers and loaded.  Looked in Device Manager and it was listed as a USB Printer Support under USB device.  When I looked in the server properties/Ports, there was my virtual USB device I was hoping.

    I finished loading the drivers updated from a 3rd party (Seagull Scientific... well known for printer drivers label for most of the large manufacturers) and then deleted the old set to the top.  Once again, everything is good.

    Other corrupted files, I can't explain it all.  I had already reloaded the USBPRINT.sys and the USBMON. DLL and that didn't fix it.  Glad everything is good.  All else fails, start over.

    Thanks for the help.

  • Help: problem with playback device

    Hello

    My dell latitude e7240

    and my headset logitech g150

    does not connect it says: problem with playback device

    It calls for 1 second then ends

    and when my friends try to call the said

    contact can only receive instant messages

    Help, please

    and fast

    Thank you very much

    I did a diagnostic test and other results are here

    https://www.dropbox.com/s/ipvyg52xhfwjrly/Dxdiag.txt?DL=0

    and Skype is the last

    Thank you

    answer soon

    Morgan

    Topic/title edited for clarity.

    Still no trace of your helmet and Avnex Virtual Audio Device is always installed.

    The specified Audio Capture Source only is Avnex Virtual Audio Device

    audio Capture Sources :

    Microphone (Avnex Virtual Audio Device), 0 x 00200000, 0, 0, qcap.dll, 6.06.9600.16384

    Open the Windows Device Manager. Are there looking for this virtual audio capture device, then uninstall it.

  • Can I tie mulitple USB devices on my router now that Cloud Connect installed VUSB?

    Part of the Cisco Cloud Connect adds a program (Cisco VUSB) to your system when you add a USB printer. In the past, you could not put mulitple devices to the USB port on the router. This new software allows you to put more than one USB device to the USB port on the EA... routers?

    I don't think that there is an update for this one. I checked the release notes for the latest firmware (that of cisco connect cloud). It's always a usb for virtual USB device. Nothing new on the usb part. It will only be a printer OR a storage device, and not two or more.

  • Update DRAC Firmware 5 1,40 to 1,60 - virtual Flash is formatted how can you "UN-format" it?

    Hey there,

    I have two Dell R900, and I did the DRAC 5 update on them, on the update went very well. However, on the other hand, someone had formatted the Flash virtual device in the FAT. So unfortunately I can't do the update. The server running server 2k8R2, and in the Storage Manager, I can't delete the volume.

    Everyone fell on this? I know what I have to do is destroy this volume and then the update would work.

    I tried to disable the virtual device and then add again what and who did not solve it.

    Thank you!

    Hello, geekmaster64,

    If you reset the DRAC to its default values, it must wipe the virtual Flash Device (VFD) as well.

    Let us know if it works for you.

    Kind regards

  • List of device/drive I don't remember me

    Hello, community.

    I guess I should start by setting up the premises of my problem/question: Win7 SP1 and I think that it is worth noting that I have Daemon tools installed, I use sometimes, but usually when I'm done using virtual drives, I make a point of removing these drives.

    I have questions, which I think can be attributed to the same root, so I post together here; If this is not the case, I apologize in advance.

    1. I opened the interface devices and printers, and I saw a device that I did not recognize among the list. I'm assuming that the optical drive named DTSOFT Virtual CdRom Device is Daemon tools, but I see another optical drive, named TQZKH ZCP6FCXIB SCSI CdRom Device in the list. What is this device and should I worry?
    2. Device Manager displays a bunch of discs that I've never connected to my computer. Other than the hard disk, partitioned into C: and D:, physical drive, only I have is a DVD rom to E:. The Device Manager seems to detect five portable drives (from f to j). When I click on it, a window tells me to insert a disc, which is obviously not possible. Why is this happening?

    Thanks for your support! :)

    Hello

    Welcome to the Microsoft community forums. Let me help you with your concern.

    You are facing this problem because of the demon tool that you have installed on the computer.  They can be listed as a SATA/SCSI or another name associated with the hard disk drivers.

    I suggest to uninstall Daemon Tools completely and restart the computer and check read this.

    Uninstall, change or repair a program

    http://Windows.Microsoft.com/en-us/Windows/uninstall-change-program#uninstall-change-program=Windows-7

    I hope this helps. If you need help with Windows, let us know and will be happy to help you.

  • I installed Virtual PC with XP Mode on Windows 7 but I can't access the network from XP Mode.

    Network with virtual xp problem

    I installed virtual xp on Windows 7. but I can't access the virtual xp network. My LAN card manufacturer is realtek but virtual xp Device Manager indicates a intel NIC

    First, know what kind of NIC with your computer:

    1. click on Start > Control Panel > System > Device Manager .
    2. double-click on network adapters .

    Then, adjust the virtual machine:

    1. click on Start > all programs > Windows Virtual PC .
    2. right click Windows XP Mode and click settings .
    3. click on the network .
    4. Select the network card in the computer in the menu 1 adapter on the right side of the window.
    5. click on OK .

  • Cannot create a virtual machine with a vmdk file copied from another location, please find the attached error

    Hi all

    I copied a file from one place vmdk and try to make a new virtual machine with this vmdk file. But when I turn on after the creation of vm error is coming. Error in the text and the image below

    Power on the virtual machine: cannot open scsi0:0 disc: disc not supported or not valid type 7. Ensure that the disk has been imported.

    See the error of the stack for more details on the cause of this problem.

    Time: 31/03/2015-14:40:05

    Target: DBServer

    vCenter Server: vcsa

    Error stack

    An error was received from the ESX host turning on DBServer VM.

    Unable to start the virtual machine.

    Power DevicePowerOn module has failed.

    Unable to create the virtual SCSI device for scsi0:0, ' / vmfs/volumes/543d140b-feb33d52-7640-90b11c9796c3/vmdk/kapuatdb.vmdk'

    Could not open scsi0:0 disc: disc not supported or not valid type 7. Ensure that the disk has been imported.

    This error message generally if the hard files have been copied hosted as VMware Workstation product, which uses a format of sparse file that is not supported on an ESXi host. Instead of the hard copy, you can use VMware Converter, or - if you prefer - you can convert the hard using vmware-vdiskmanager (before transfer) or vmkfstools (after downloading). I deal to use vmkfstools you will need to load the mutliextent module (see for example "Clone or migration operations involving virtual discs non-VMFS on ESXi fail with an error" vSphere 5.1 Release Notes)

    André

Maybe you are looking for