GetRawInputDeviceList / GetRawInputDeviceInfo return zero for hid.usUsage and hid.usUsagePage _

GetRawInputDeviceList call (.) / GetRawInputDeviceInfo works great on Windows Vista and Windows 7, but running the same code on a PC running Windows XP, returns RID_DEVICE_INFO structures where the fiedls. hid.usUsage and. hid.usUsagePage are filled with zeros.

This is not implemented on Windows XP?

UINT nDevices;
UINT uiCount = GetRawInputDeviceList (NULL, & nDevices,

sizeof (RAWINPUTDEVICELIST));
If (-1! = uiCount & nDevices > 0)
{
RAWINPUTDEVICELIST * pRawInputDeviceList = new RAWINPUTDEVICELIST [nDevices];
If (pRawInputDeviceList)
{
uiCount = GetRawInputDeviceList (pRawInputDeviceList & nDevices, sizeof (RAWINPUTDEVICELIST));
Di RID_DEVICE_INFO = {0};
for (unsignedint iNdx = 0; iNdx)< ndevices;="" indx++="">
{
Memset (& di, 0, sizeof (di));
UINT uiSizeOfDI = sizeof (di);
UINT uiDI = GetRawInputDeviceInfo (pRawInputDeviceList [iNdx] .hDevice, & RIDI_DEVICEINFO, & uiSizeOfDI);

di.hid.usUsage & di.hid.usUsagePage are on XP always 0.

We use this function to find the correct values for the busy and usUsagePage of a scanner barcode for our call to RegisterRawInputDevices (.)
I couldn't find any documentation on the correct values. The values returned on a Windows 7 PC dosometimes work on Windows XP.

/ * static * /.

bool CBarcodeScanner_RawInput::RegisterForRawInput (HWND hWnd)
{
RAWINPUTDEVICE rid = {0};
rid.dwFlags = RIDEV_INPUTSINK;
rid.hwndTarget = hWnd;
rid.usUsage = 0x4A00;
rid.usUsagePage = 0xFF45;
UINT uiRegCount = RegisterRawInputDevices (& RID, 1, sizeof (RAWINPUTDEVICE));
Return uiRegCount > 0;
}

Is there a universal approach to solve this problem?

Kind regards

Jan Oudkerk

Hey Jan Oudkerk,

Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the MSDN Web site. Please post your question in the MSDN forum. Link: http://social.msdn.microsoft.com/Forums/en/categories

With regard to:

Samhrutha G S - Microsoft technical support.

Visit ourMicrosoft answers feedback Forum and let us know what you think.

Tags: Windows

Similar Questions

  • And how does one remove Christmas lights that have been offered as a decoration for the top and shifts of the screen. They tend to hide the navigation bar.

    And how one removes the Christmas lights that have been offered as a decoration for the top and bottom of the screen. They tend to hide the navigation bar. Several days ago Firefox gave the 'dress-up' in a message.

    It seems that https://addons.mozilla.org/firefox/addon/christmas-lights/ is added as an extension, but is categorized as a character (lightweight themes). Go to tools > Modules then check extensions and themes, and then uninstall it.

    Now that the status bar is now the toolbar addons that I see those that are listed are all personas and they do not affect the toolbar addons you would also find a theme, and think that it must be very confused now that I no longer able to filter topics with a Google addons research - phooey.

    Extensions can be identified with intitle: Add - ons and have changed my research of extension add-ons accordingly.

  • end of my trial period for 2015 indesign and illustrator and my previous versions disappeared, and when I click to see older versions of platforms is not there, how do they return?

    end of my trial period for 2015 indesign and illustrator and my previous versions disappeared, and when I click to see older versions of platforms is not there, how do they return?

    I paid for a 12 month license, if that's what you're asking.

  • I installed a game for windows XP and then used the troubleshooting tool to convert so that I can play in 7.__it still doesn't react. What should I do? Please answer__

    I installed a game for windows XP and then used the troubleshooting tool to convert so that I can play at 7.
    It still fails. What should I do? Please answer

    Hello

    a. what game do you have installed?
    b. do you get errors trying to run the game in compatibility mode?

    Look for error messages in the event viewer. If you find error messages after return the exact error message so that we can help you better.

    Measures to check the application event log:

    1. click on start.
    2. in the search box type eventvwr.msc, and then on enter.
    3. now, click Application in the event viewer (local).
    4. now locate the event log on the right side of the event viewer window.

    http://Windows.Microsoft.com/en-us/Windows7/open-Event-Viewer 
    http://Windows.Microsoft.com/en-us/Windows7/what-information-appears-in-event-logs-Event-Viewer

    You can try to perform the clean boot on your computer and check if that helps.

    From your computer by using a minimal set of drivers and startup programs so that you can determine if a background program is interfering with your game or program. This type of boot is known as a "clean boot".

    To perform a clean boot on a computer, follow these steps.
    1. click on start, type msconfig in the search box and press ENTER.

    If you are prompted for an administrator password or a confirmation, type the password, or click on continue.

    2. in the general tab, click Selective startup.
    3. under Selective startup, clear the check box load startup items.
    4. click on the Services tab, select the hide all Microsoft Services check box, and then click Disable all.
    5. click on OK.
    6. When you are prompted, click on restart.
    7. after the computer starts, check if the problem is resolved.

    Please follow the system in the boot environment. If the problem does not occur, it indicates that the problem is related to an application or a service, we have disabled. You can use the MSCONFIG tool again to reactivate the disabled one by one element to find the culprit.

    If your issue is resolved, follow the how to determine what is causing the problem section in KB article to narrow down the exact source.
    For more information visit: http://support.microsoft.com/kb/331796

    After you determine the startup item or the service that is causing the problem, contact the manufacturer of the program to determine if the problem can be solved. Or, run the System Configuration utility, and then click to clear the check box of the element of the problem.

    To restore your computer to a Normal startup mode, follow these steps:

    1. click on start in the box start the search.
    2. type msconfig and press ENTER.

    If you are prompted for an administrator password or a confirmation, type the password, or provide confirmation.

    3. on the general tab, click Normal Startup - load all device drivers and services and then click OK.
    4. When prompted, click on restart.

    You can check its compatibility with windows 7 in the Compatibility Center.
    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx

    Hope this information is useful.

  • Table of index always returns zero when reading the table 3D

    I have a 9 x 2000 x 5 table table 3D diamension.  I have this table filled with data and when I try to read a data point unique on the table the function Index Array always reads zero. I place a probe on the 3D input array and when I put in the index of the probe to the same data point the probe shows the value stored in the table. I also have an indicator showing the 3D table and it displays data in all locations. For example if I try to read the location 0, 144.0 in 3D it array always return zero. Yet I know that the value of this element is 6.8616E - 5. Each item I try to retreave table gives zero.

    Anyone saw the Index room table this kind of behavior?

    Problem solved. As usual, it was pilot error on my part had knocked down the lines of lines and columns.

  • Return policy for the laptop. 2 questions please.

    Hello world!

    I bought some computers laptops and desktops from HP over the years but never had back none of them until my recent order.  I recently placed an order on the laptop but I found a better computer hp laptop at bestbuy, so I called and cancelled the order (only after 15 hours of the order) but HP CS rep would not let me Cancel.  She told me to just leave it delivered and return it once I received the laptop.  HP will pay for return shipping charges and give me a FULL REFUND; which means that they don't give me the refund less shipping fees.  I asked to confirm what she has told me that I will receive my full refund for my order and HP will send me a return shipping label at their cost.  If this is true what she told me, then HP has the best customer service out there.

    My question to anyone who has purchased and returned HP stuff is it is true about what the CS rep tells me?  Moreover, I get free shipping on my order if it makes a difference.  I pray for your opinion on this please.

    Thank you all for your time and happy thanksgiving to all!

    Micca1234

    See the following page HP Shopping "Returns and exchanges" on their return policy / exchange:

    Return exchange

    Exchange & return policy

    Return period

    We encourage you to try your products immediately so that if there is a problem, you can return them before the return deadline. We accept returns and exchanges up to 21 days after childbirth, except on open software box, printers Designjet Z2100 series, HP Color LaserJet CP6015dn printer, and gift cards (except where required by law). After the period of 21 days, you can get support for questions of HP customer service product.

    Credits

    Credit for Returns or exchanges is given when confirm us the receipt of the goods. Please be aware that your financial institution may take 5 to 7 business days to process your credit and let the account in your account.

    Refunds

    Tax (if any) is refunded with returns.

    Original shipping and handling are not refundable.

    When you return the items in a group of items purchased, the remaining amount spent maybe is more eligible for a discount, you may have received (for example, for gifts with purchase, free gift, purchase in quantity). If this is the case, the discount is subtracted the price paid for the returned item. To receive a full refund, all items in the original purchase must be returned.

  • I use 'best home Ever' and itwent too large for the screen and my firefox too bar isn't there?

    I use a Best Ever home page to my home page and my son was using the computer while I wasn't there and it changed somethings. The 'homepage' is giant size now and I don't know how do it as if it was. Also the toolbar file, bookmarks, etc. is gone.
    I'm not the best to try to figure out what to do with the computer!
    I have no idea how some of the 'installed plugins' (belo) got there?

    Try to press and hold CTRL on the keyboard and press 0
    the control key is on the left background (& right)
    0 is the digit zero

    Using Ctrl + 0 to reset the zoom, it is fixed for each site, note.

    To get your toolbar back, try pressing the Alt Key keyboard (it's probably next to the space bar) and may temporarily cause the menu bar to display, pressing V then T should give you options to set the toolbars you want to display for example, the bookmarks toolbar. Note your sone may well make use of the firefox button, which also provide similar access to features

    Be in full-screen mode, which also causes the menu bars disappear, display, try pressing the F11 key on the keyboard (wait a few seconds as the screen to redraw) should switch you to the full screen in.

    One thing you can in view of the future is implemented on your Vista operating system separate accounts for your self and your son, so that way everyone can to some extent make changes the way they like without unduly harming the other.

    When Setup like that each user has their own profiles for firefox and once again the changes can be made separately.

    There could be other reasons for your problems, but I assume that your son has just forgotten to redefine the parameters on those that you had used.

  • ActiveX ADODB LAST_INSERT_ID() returns zero

    Hey everybody,

    I connect to a MySQL database using Microsoft ActiveX ADODB (ADOBD.recordset) classes. This works very well for select, INSERT and UPDATE MySQL base, and I'm sure that others that I have not yet tried. The table has a unique identifier column named 'id' auto-increment, and I would like to return the last value inserted into the table. However, the execution of SELECT LAST_INSERT_ID() returns 0.

    I looked into it, and some people mentioned that the TEEN can not handle BIGINT, so I added "Option = 16384" my connection string (FLAG_NO_BIGINT) and still no luck. Others have mentioned that the AUTO_IS_NULL database option is at the origin of the questions, so I tried that too and it does not always work.

    I also tried the command 'SELECT LAST_INSERT_ID() FROM table', and which returns an array of 0s, with a length equal to the length of the table. It is closer, but because the items can be removed from the table, I can't use it for my purposes.

    Does anyone have information on this?

    On a related, but much less important topic, ADODB.recordset can execute multiple queries or commands in a single call? For example, sending multiple INSERT commands.

    Have you tried something like:

    Select max (my_id_field)
    From my_table;

    In turn mySQL supports the new standard SQL 'back' clause in inserts?

    On your related question, you don't need a recordset to send a command. Use the execute method connection when you're not going to be return data. What about queries, the answer is Yes, but with caveats.

    Mike...

  • I have a PC brand new - HP and played Chess Titans. Now all of a sudden it says it cannot find the texture, but he said no zero the reference count and then could not find device 3D.

    original title: Chess Titans

    I have a PC brand new - HP and played Chess Titans.  Now all of a sudden it says it cannot find the texture, but he said no zero the reference count and then could not find device 3D.  What's past and how to fix this.  Thank you.

    These error messages can occur if you (or software) also disabled Aero. Aero must be on (and supported by the video card) to play Chess Titans. "192GO should be enough for everyone." (of the miniseries "Next generation jokes")

  • Updates for Visual C++ and Visual Studio

    I don't know where to post this question.

    Secunia PSI identified of the updates that I need to Microsoft Visual Studio and Microsoft Visual C++. Some of them are for the 2003 and 2005 versions:

    Visual Studio .NET 2003 Service Pack 1 ATL Security Update

    Visual Studio 2005 Service Pack 1 ATL security update
    Visual Studio 2005 Service Pack 1 ATL for Smart Security Update type devices

    A security update ATL 2005 Service Pack 1 64-bit hosted Visual C++ Visual Studio Tools

    Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package ATL Security Update

    I use Visual Studio or Visual C++. I don't know what they're doing. Maybe ther are used by other programs. There are four Visual studio 2008 updates and two updates for Visual C++ 2008

    Can I uninstall programs in 2003 and 2005 and just update the programs of 2008?

    Thank you

    Frank GC

    Win vista Ultimate 64 bit SP2

    Hi, Frank C.

    Visual studio updates will be offered if you have visual studio installed on the computer.

    First of all, I'd say you check in the programs and features to see if visual studio or visual C++ is installed on the computer.

    (a) by clicking on the Start button, click Control Panel, clicking programs, and then clicking programs and features, open programs and features.

    These services are offered through optional updates in Windows update.

    If you do not either of the program installed on the computer, or you don't want these updates, you can hide it on windows update so that it is not available again.

    (a) open Windows Update by clicking Start , all programsand then click Windows Update.

    (b) in the left pane, click check for updates , and then, when Windows finds updates for your computer, click view available updates.

    (c) with the right button the update, you do not want to install, and then click hide update. The next time you check the updates, the update will not be automatically selected or installed. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    The problems with the removal of updates

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-removing-updates

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Something is blocking some games and I get an embarrassing box and it says windows is looking for a solution and I have never one, I can not also close the programs it goes well.

    Also told me that I have to install a new version of silverlight, what I've done three times and he always tells me to install a new version of silverlight, I clicked also paper painted Steves and blinds to watch something my sister wanted to, I think that is where my problem started because I never had ads for this before and now the games I can't play on pogo have an announcement of Steves blinds and wallpaper and when it counts up to game it stops in 18 seconds or goes to zero hour, but never loads.  Please help me.

    Hello

    Which browser is installed on the computer?

    Perform the steps from the link mentioned below if you have Internet Explorer installed on the computer.

    The problems of games online using Internet Explorer

    Hope this information helps.

  • Unable to get the windows updates, it returns an error (often 0x8007043c and other similar)

    Original title: can't get windows updates

    I was unable to get the updates of windows - via the feature of automatic update, or through the manual method to access microsoft.com.  When I go to the microsoft update Web site, and it starts to scan my PC, it returns an error (often 0x8007043c and similar).  I tried to run Microsoft FixIt.  It tells me that windows up-to-date devices require to be repaired, but when I run the repair (problem-solving), he continues to run for hours and hours and doesn't do a thing.  How can I remove the software from the Windows Update Agent from my PC and reinstall a new version?

    Hi JosephGPhD,

    ·         Did you do changes on the computer before the show?

    Follow the suggestions below for a possible solution:

    Method 1: I suggest you to follow the steps in the Microsoft Knowledge Base article and check.

    You receive an error message "0x800A01AE" or a "0 x 080070570" error message when you try to connect to the Windows Update Web page or to the Microsoft Update Web page in Windows Server 2003 or Windows XP

    http://support.Microsoft.com/kb/910359

     

    Method 2: If the method above does not help then you can see the article mentioned below and check.

     

    You cannot install some programs or updates

    http://support.Microsoft.com/kb/822798

    Let us know if that helps.

  • ? Primary Master Hard Disk S.M.A.R.T. Bad Status. WARNING: Return immediately-up your data and replace your hard drive.

    When I start my computer, an error page appears. At the bottom of the page it says, "Primary Master Hard Disk S.M.A.R.T. Status Bad." WARNING: Return immediately-up your data and replace your hard drive. Press F1 for Setup, F2 to continue"I was just pressing F2 and then it starts normally, but whenever I start my computer, the same page comes up.

    Is this serious or it could be something minor? Do you have any suggestions? What does that mean? What should I do? I followed some information in the forums of someone who has had the same problem and finally, they fixed them, they said that when they made a prior microsoft update what they where missing a Parcer.

    Note: I tried to save my data before, but something goes wrong and the backup will not be completed.

    You can download the program for diagnotics HUtil Samsung http://www.samsung.com/global/business/hdd/support/downloads/Hutil210_iso_for_CDROM_drive.zip

    It's an ISO image then unzip the file and write the ISO image to a CD.

    Then restart the PC and booting with the CD. To do this, you must change the priority/boot order in the BIOS to boot from the CD first.

    Once you have started the program HUtil it will detect your hard drive Samsung. Select the hard disk.

    Enter the main Menu on the tool. Go into the menu of the tool and enter Auto diagnosis. Enable diagnostics to run, once done it will ask you if you want to perform a surface analysis - enter Yes. The analysis of surface will take some time to complete. If errors are found, it reported.

    Once more I recommend you backup your data as soon as possible, preferably before executing HUtil program.

    For more information on the program of HUtil you can go here: http://www.samsung.com/global/business/hdd/support/utilities/Support_HUTIL.html

    Write when the cache is enabled: when data are written back to the hard drive, it is written in the cache that is much faster to actually write to the hard drive. An acknowledgement of receipt is then sent by saying that the data has been written on the hard disk, when in fact it does not. In this way so that the data is actually being written to the hard drive to the rest of the system can continue to work. However memory cache is volatile, if the power goes off, the data in the cache is destroyed and if it has not been written to disk hard and yet he's lost.

    If your settings are correct. Usually the drives are configured for performance and the write cache is enabled. While flash drives and memory cards are configured for the fast-moving and write cache is disabled.

    If you want to learn more about this: http://www.pcguide.com/ref/hdd/op/cacheWrite-c.html

  • I am the owner of everything on my pc I do not have the special permissions for individual files and I am denied access

    permissions of origin title: special

    I am the owner of everything on my pc I don't have special permissions for some individual files that I find quite strange. It also means that I can't delete some files. I tried to access the files when I started from a different hard drive, but still can not remove. While I followed all procedures to address this issue, I still do not end with special permissions. Is it possible to modify or delete the files from the MS DOS window or is there something that I am missing. I also found it seems to be an 'unknown user' in the permissions area, and when I try to delete or change this 'unknown user' and a second show. 1 then said who is denied access, but the other has access. No matter what I have I can not get rid of it! And file sharing is disabled disabled! Help, please

    In Vista, many files can not even to administrators. Some are to protect the user from making mistakes (like many in the Windows directory and in your personal profile).  Some are points of junctionhttp://msdn.microsoft.com/en-us/library/bb968829 (VS.85) .aspx which are there for backwards compatibility and should not be modified in any way (and certainly not deleted) or you may not be able to use your programs or may even damage the system to the point where it will need to be reinstalled).  You shouldn't need special permits to delete a file if you have all the rights, but special permissions can block access and that's sometimes how it blocks even administrators.  Keep in mind that XP administrators had access more than them in Vista - blocked is not necessarily a problem, but intentionally by developers of Vista.

    However, if you're talking about files that you devriez have permission, then the following information about the ownership and permissions can help you.

    To view your permissions, right-click on the file/folder, click Properties, and check the Security tab.  Check the permissions you have by clicking on your user name (or group of users).  Here are the types of permissions, you may have:http://windows.microsoft.com/en-US/windows-vista/What-are-permissions.  You must be an administrator or owner to change the permissions (and sometimes, being an administrator or even an owner is not sufficient - there are ways to block access (even if a smart administrator knows these ways and can move them - but usually should not because they did not have access, usually for a very good reason).)  Here's how to change the permissions of folder under Vista:http://www.online-tech-tips.com/windows-vista/set-file-folder-permissions-vista/. To add take and the issuance of right of permissions and ownership in the right click menu (which will make it faster to get once it is configured), see the following article:http://www.mydigitallife.info/2009/05/21/take-and-grant-full-control-permissions-and-ownership-in-windows-7-or-vista-right-click-menu/.

    To solve this problem with folders, folders takeownership or the reader (as an administrator) and give you all the rights.  Right-click on the folder/drive, click Properties, click the Security tab and click on advanced and then click the owner tab.  Click on edit, and then click the name of the person you want to give to the property (you may need to add if it is not there--or maybe yourself). If you want that it applies to subfolders and files in this folder/drive, then check the box to replace the owner of subcontainers and objects, and click OK.  Back and now there is a new owner for files and folders/player who can change the required permissions.  Here is more information on the ownership of a file or a folder:http://www.vistax64.com/tutorials/67717-take-ownership-file.html. To add take ownership in the menu of the right click (which will make it faster to get once it is configured), see the following article:http://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/.

    I hope this helps.  If this isn't the case, after return and we'll get the exact path of these files to make sure that you really can visit his profile and try adding special permissions.  I suspect that the problem is that everyone is denied access and blocking everyone - but we'll check (if necessary).

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • updates Windows returns to the start-up and restart the portable computer

    I put a clean image of windows 7 on my laptop and started running the updates of windows. There were 200 +. They download and restarted the computer and start the installation. The problem is now that he gets so far installs it fails and he returned to the starting point and then restart the laptop and the process begins again. They only way I can get back to my computer through safe mode. Any suggestions?

    Try excluding upgrades recommended to install important updates and only load the Important updates first which should be updated about 159 200 not.

    If you get hung up refer to the latter.

    It is expected by M$, we must now jump through hoops to clean install.

    http://www.ZDNet.com/article/sticking-with-Windows-7-the-forecast-calls-for-pain/

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-update/Windows-Update-remains-at-checking-for-updates/ff3c442e-79a6-40d3-AC35-29e130cebef1

    If looking for updates to hang on a current installation,

    Switch your windows update setting to never check the updates temporarily

    Restart the machine

    Then you download this from your download folder run from there.

    https://TechNet.Microsoft.com/library/security/MS16-039?f=255&MSPPError=-2147217396

    Download the x 86 for 32-bit or x 64 for 64-bit

    Install it and restart when prompted too after he did a search of stand-alone for updates that should not

    take too long, it took all of 5 seconds, '' If '' windows update settings are turned on forever check

    updates before running from the downloads folder.

    Once it installs and restarts

    You can reset your updates affecting everything you had before default =...

    Then check the updates manually.

    I think that the solution came from Softpedia and Joel_CS posted on this thread,

    http://News.Softpedia.com/news/Windows-Update-hanging-when-downloading-April-12-patches-502886.shtml

    You must scroll down for Joel SC post threads, it is the last answer on this page,

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-update/Windows-Update-hangs/dbd539c3-bfc6-42DF-a6ff-0e55ef7938eb?page=6

Maybe you are looking for