SetWindowsHookEx(WH_JOURNALRECORD) is hanging the system on Windows 7 and Windows 8

I'm in the process of porting an old application that uses the Journal Record Hooks to record macros to Windows 7/8. I've done everything that needs to be done to make this works, that is :
set uiAccess=true in the manifest
sign the application with a valid certificate
execute the application from the Program Files folder
After doing all this, the hook install correctly and it works. However, sometimes, for no apparent reason, the system freeze in a weird way : my keyboard and mouse inputs doesn't reach any application and the only thing I can do is ctrl-alt-del or ctrl-esc,
which uninstalls all system wide hooks and thus, unfreeze the system.
I've added some trace logs and I've discovered that when it happens, the SetWindowsHook function returns a valid hook handler, my hook function is called, but only once and then the system freezes. I've actually cleaned up my hook function and the only thing
I'm doing is return 0.
Is this a known issue or am I doing something wrong?
Thanks

Hello subbtract,
>> the SetWindowsHook function returns a valid hook handler, my hook function is called, but only once and then the system freezes.
Will your tested machines be fresh which I means there is other application installed except yours? If possible, I suggest you could make a test with conditions above, if the system is still frozen, this should a issue of system about the SetWindowsHook
function. You could post it to:
https://connect.microsoft.com/VisualStudio
While if it works with a fresh machine, this issue could be caused by features of installed applications. You could then compare worked and not worked to check the difference.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Hard drive works, but when plugged in hangs the system

    First of all, since this is not a Linux-specific problem I'm not sure this is the right place for this post.
    Anyway, for the past few years I've been using a 250GB IDE hard drive mostly to store backups on.  For quite a while it worked fine, but when  plugged in again after being removed so I could clean out the dust in my PC it didn't work quite right anymore.  It caused the system to hang and gave error messages remniscent of those detailed on this page.  After some fiddling it worked OK for a while, and then one day it randomly did this again.  I took the ribbon cable out, then the hard drive, and realized one of the pins was pushed in (at the time I thought it was broken).  After some reading I decided to sacrifice a ribbon cable.  What I did was yank a pin off of an old DVD drive that doesn't work and shoved it in the cable where the short pin was.  I made sure it was seated well, plugged in in, and hoped for the best.  To my delight it worked without a hitch for maybe a year or more.
    And then a little more than a month ago we had lightning strike a power line outside of our house and it fried my motherboard.  I now have a replacement board, but after all of the taking apart and moving around and stuff, the hard drive is back to its old antics.  The pin-in-the-cable trick wasn't working anymore.  After I realized that the pin wasn't broken half-way but rather pushed in, I grabbed some needlenose pliers and pulled it out.  It now will plug into any ribbon cable just fine and the computer recognizes it, but it's slow at POST and hangs the system when booting the OS, whether it be Linux or Windows.  Knoppix CDs boot just fine, although slower.  S.M.A.R.T. sees no problems.
    Basically I'm wondering 2 things.  First of all, is there anything I can do to get around the hangs?  And second, I'm considering buying an external hard drive enclosure for regular 3.5 inch hard drives and using it as an external USB drive.  Since the drive does still work and I can add/remove stuff while booted in Knoppix, and the main issue seems to be my system hanging, I figure, maybe, I can just plug in the drive when I need it after the computer is already booted up and it will work fine.  Does this sound like a reasonable expectation?

    What you hear may sound like it's the hard drive, but it's really an electronic type of noise. Same with my PB. Try what BGreg said, and wait for the drive to spin down - you'll still hear the noise.
    There was a thread about this issue several months ago, and IIRC the conclusion was that it's a normal noise, and that you should just ignore it if possible.
    If you must make it quieter, set processor performance to the lowest setting in Energy Saver preferences. But it's not going away completely.

  • My Windows 7 Professional desktop system hard disk got corrupted and I took the opportunity to install an SSD for a new system disk and reinstall Windows.  The system is up and running on the SSD, with my old system disk now used for storage as it is stil

    My Windows 7 Professional desktop system hard disk got corrupted and I took the opportunity to install an SSD for a new system disk and reinstall Windows.  The system is up and running on the SSD, with my old system disk now used for storage as it is still readable.  The only Adobe product I have reinstalled so far is Reader XI but I would like to reinstall Elements 8 and Acrobat 9 without taking up more licences as both are also installed on my laptop.  Can you point me to the best way to do this?  - Thanks

    If you have the two allotted activations already and one was lost on the hard drive that failed then you need to contact Adobe Support thru chat and ask them to reset your activations.
    For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • Printing TIFF files hangs the system, is there a workaround?

    When printing large tiff files (e.g., exported layout images from CAD) the system becomes unresponsive and it takes time to print. Even after the image is printed, the system works very slowly.
    It seems to be a bug, or is there any workaround to prevent the system to hang?
    Thank you, Jan

    There are two similar bugs:
    The LPC+crop bug started with ACR 6.1 and was fixed in 8.2.
    The LPC mystery bug started with ACR 7.3 and was fixed in 8.6.
    Both bugs cause repeated thumbnail extractions in Bridge on some images with Lens Profile Corrections enabled.
    As you are on ACR 6.7 it can only be the first bug. The only workaround I know is to ensure that the crop does not touch the edge of the corrected image. A few pixels gap will do it. Also, it helps to keep less images in a folder--but this can't be avoided when using Collections or Finds.
    I'd imagine that Adobe won't fix CS5 just for this. Presumably there's something in the smallprint which admonishes them from responsibility after the shelf life of the product ends. To be fair, it's not like they fixed it straight away in CS6, unlike the Bridge CS5 database bug (thanks, Adobe). They were only able to reproduce the fault in summer 2013.

  • I'm trying to get a public link to my pdf file? I tried the system's process and the links don't work

    I'm trying to get a public link to my pdf file? I tried the system's process and the links don't work. I can't even copy the links I have to write them down and then enter them. Is anyone else having this problem. I've seen this question a couple times with no replies.

    Hi mariondouglas,
    Do I understand correctly that you've used Send to send a file that you've uploaded to Acrobat.com? What happens when you send to your own email address? Are you able to click the link in that email, and access the file that way?
    If you're unable to copy the email in the browser window after you've generated a public link, please clear the browser cache, and try again. Or, use a different web browser (for a list of supported browsers, see System requirements | Acrobat.com).
    Please let us know how it goes.
    Best,
    Sara

  • I looked at system.log in the system profiler today and see lots of activity at 2 a.m. when I was fast asleep, should I worry? It seems to reset hostname and mentions frequent transitions for interface, looks weird to me (I'm not a teckie!)

    I looked at system.log in the system profiler today and see lots of activity at 2 a.m. when I was fast asleep, should I worry? It seems to reset hostname and mentions frequent transitions for interface, looks weird to me (I'm not a teckie!)
    This is a section:
    May 12 02:05:10 wendy-drapers-macbook configd[14]: setting hostname to "wendy-drapers-macbook.local"
    May 12 02:05:29 wendy-drapers-macbook kernel[0]: Auth result for: 00:26:44:14:17:a3 MAC AUTH succeeded
    May 12 02:05:29 wendy-drapers-macbook kernel[0]: AirPort: Link Up on en1
    May 12 02:05:29 wendy-drapers-macbook mDNSResponder[16]: Note: Frequent transitions for interface en1 (192.168.1.92); network traffic reduction measures in effect
    May 12 02:05:29 macbook configd[14]: setting hostname to "macbook.lan"
    May 12 02:05:31 macbook mDNSResponder[16]: Note: Frequent transitions for interface en1 (FE80:0000:0000:0000:021E:C2FF:FEB3:1A3E); network traffic reduction measures in effect
    May 12 02:05:34 macbook com.apple.launchd[1] (org.samba.nmbd): Throttling respawn: Will start in 5 seconds

    I've been seeing messages exactly like that (and many, many other kinds) in the Console since the first version of OS X.  They look menacing but are harmless.
    You don't need any kind of security software.
    Just surf the web carefully, pay attention to where you're going and don't install anything that you don't recognize.  If you are asked to enter an admin user name and password, DON'T.  Unless you know for sure that you initiated the installation from a known and reliable source (like Apple).
    Mac malware relies on social engineering.  No amount of security/anti-virus, blah, blah, blah software is going to help.

  • My IPhone is set up with an internet  downloaded firmware of ios7 because my phone would not restore, the system has failed and I had to do a manual erase fro  within the phone. My computer will not accept the phone because they say it's a "Developer?"

    My IPhone is set up with an internet  downloaded firmware of ios7 because my phone would not restore, the system has failed and I had to do a manual erase fro  within the phone. My computer will not accept the phone because they say it's a "Developer?" Help. I cannot not even get passed the activation step on the computer or phone because it will not activate the device.

    Hello buddyacw
    You would have to restore the iPhone. Download the latest version of iTunes and then follow the steps in the article below to get it working again.
    iOS: Unable to update or restore
    http://support.apple.com/kb/HT1808
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • HT4818 I want to have an exFAT parition in addition to the Mac OS X and Windows partition.  If I create it before running BootCamp, it wants me to delete it.  If I create it in either Windows or Mac OS X afterwards, I can no longer dual boot.

    I want to have an exFAT parition in addition to the Mac OS X and Windows partition.  If I create it before running BootCamp, BootCamp wants me to delete it before continuing.  If I create it in either Windows or Mac OS X after running BootCamp and installing both OSes, I can no longer dual boot.  What is the magic sequence to get this to work?

    I've got the same quandary.
    After upgrading my hard drive to a Momentus XT Hybrid and doing a clean install of Mountain Lion, I was surprised that I couldn't format partitions separately and then restore from my clone of the old Windows 7 Partition. I found that I had to use the BootCamp Assistant to manage it all, which essentially meant getting rid of the partitions and starting again...   
    I now can't get my Windows / BootCamp partition to boot, after adding a 3rd, ExFat, partition, when it was working perfectly fine before. I just get a lot of dos booting failures and a final message that "No boot device is available, press Enter to continue".  
    See the attached message, that I get when trying to boot the bootcamp partition, through Parallels 7; which also worked perfectly fine before.
    Be good to know if there is a work around this in Mountain Lion as, if not, I'm thinking I might skip Bootcamp altogether and just install a machine drive via Parallels. As suggested here:
    http://forums.macrumors.com/showthread.php?t=1420754
    I might even keep the virtual windows machine on a separate hard drive and then I'll have no need for the ExFat partitions altogether as that was designated for  sharing between Windows  and Mac.

  • After Upgrading Acrobat Reader XI to Acrobat XI Pro the previewer in Outlook and Windows Explorer doesn't work.  I have to set the default program for .pdf's to Acrobat Reader inorder for the previewer to work.

    After Upgrading Acrobat Reader XI to Acrobat XI Pro the previewer in Outlook and Windows Explorer doesn't work.  I have to set the default program for .pdf's to Acrobat Reader in order for the previewer to work.
    Can anyone recommend a solution?

    If I set the default program for viewing PDF as Acrobat XI Pro the a PDF file will open with Acrobat XI Pro, but in Outlook I will get a white screen and the information bubble "This file cannot be previewed because there is no previewer installed for it" and in Windows Explorer I get a white screen in the preview pane.
    My Acrobat version is 11.0.10
    I am running Windows 7 Professional with Service Pack 1
    My Internet Explorer is Version 11.0.9600.17691
    Update Versions 11.0.17 (KB3032359)
    I am running Microsoft Office 2013

  • How to find the system default scripts and prompts in UCCX 8.0

    Hello everyone,
    I have a bit of experience in UCCX 6.0 and just began to use UCCX 8.0. There's a question that where can I find the system default scripts and prompts in 8.0? In 6.0, I can find them in installing directory, but 8.0 is linux based so I can not do that in same way.
    Thanks.

    You can Login to CLI with either root access or remote user access and get default scripts by going to
    CD /opt/cisco/uccx/Scripts/system/default
    At this point you have to connect to ftp server and move these default script to yoru FTP server.
    I hope this helps

  • Reg: Simulate the system i/0 and user i/o

    Hi all,
    Currently am in the process of testing the database perfomance. As per , want to simulate the system i/o and user i/o upto 30ms.
    Please let me know the ways. your early will be highly appreciated.
    Thank you
    Regards
    Krishnan

    Hi,
    system and User i/o are not different.
    But single block read ('sequential read') and multiblock read ('scattered read') are different (difference is the size of i/o)
    On unix, you can use dd (blocksize is your oracle blocksize for single block reads)
    Regards,
    Franck.

  • Msg KH206 In element "" the system adds quantities and values or diff.curr.

    Dears,
    In report painter KE35, i've add an formula
    Planned sales profit = Planned sales rev - expense
    but sales rev. is made of the other formula
    Planned sales rev = Planned sales price * sales QTY
    So, an error "Msg KH206 In element "sales profit" the system adds quantities and values or diff.curr."
    Then i use KER1 to achieve above formula for COPA layout use, but same error occured.
    Msg KH212_ For key figure  "Planned sales profit", quantities and values or different currencies were added.
    Any method can solve this question?
    Thanks in advance.
    BR,
    Emma

    Hi,
    For the transaction KE35 you can use the no dimension function (NDI), like this:
    NDI (Planned sales price)  * NDI (sales QTY)
    I have this problem in the KER1 too, but on this transaction we do not have this NDI option.
    Best Regards,
    Daniel Scoz.

  • Keep getting a pop up at the top of many websites I visit 'firefox security error content at *web address* may not load" I am using the most recent firefox and windows 7.

    Keep getting a pop up at the top of many websites I visit 'firefox security error content at *web address* may not load" I am using the most recent firefox and windows 7. This is happening at many sites, such as hotmail, google reader, and many others.

    Sorry, I don't think that is a message from inside Firefox, the wording doesn't sound correct - at least the beginning of that message. My "gut" thinks that is a MSN Live message to explain and compensate for their lack of security with a re-direct from a secure domain to an un-secure domain. ''(the end of that message)''
    {Ctrl + Shft + J} will open the Firefox Error Console - I'm curious what Firefox has to say about that situation. If you find the error message for that domain, you can right-click the message to '''copy''' it and then paste that error message here.
    Maybe '''TonyE''' or '''cor-el''' will be more familiar with the situation at Live and maybe at Google Reader, I don't use either of those services and have never seen a message like that myself.

  • HT204266 The APP update request came for 4 apps.  I submitted update all, but the system is stuck and will not update. Further, I cannot use those apps.  How do I fix this?

    The APP update request came for 4 apps.  I submitted update all, but the system is stuck and will not update. Further, I cannot use those apps.  How do I fix this?

    Two other things to try -
    Power your iPad off for a minute and then back on again.
    Double tap the Home button, locate the updating apps (one by one) in the bottom task bar, press on it until the red minus sign comes up and click it. Repeat for the remaining apps. Try the updates again but do them one by one rather than Update All.

  • Pop up window, and window.opener function using workshop?

    hi,
    pop up window, and window.opener function using workshop?
    hi,
    i am having two folders.
    one folder having
    abc.jpf file,
    test1.jsp
    second folder having
    xyz.jpf
    test2.jsp
    i am using weblogic workshop8.1
    i need to call test2.jsp as pop up window
    from test1.jsp.
    i need to pass value from test1.jsp to test2.jsp
    again i need pass value from test2.jsp to test1.jap
    normal jsp programming we can use window opener
    javascipt function to do above.
    same thing how to us in weblogic workshop?
    any can help?
    thanks,
    jp reddy

    Hi,
    assuming action.do is the action method of ....../folder1/abc.jpf you can try out this in the test1.jsp,
    function openNameHistory(url) {
    var args = "<%= request.getContextPath() %>/folder1/"+url;
         window.showModalDialog(args,'','dialogHeight:320px;dialogWidth:600px;scroll:yes;status:no');
    <netui:anchor href="javascript:openNameHistory('action.do')">Name History</netui:anchor>
    u need not specify the abc.jpf in the url because , workshop allows only one jpf per folder
    hope this helps...
    regards
    shakan

Maybe you are looking for

  • Year-at-a-glance View in iCal

    Once again, I am filling out next year's year-at-a-glance wall calendar and wish I had this view in iCal. With today's screens, a year-at-a-glance view shouldn't be difficult to implement and would be very useful. My favorite layout has 12 rows (one

  • Migration from exchange SBS 2008 to Microsoft exchange 20013

    i have started an upgrade of an SBS 2008 to an exchange 2013  i installed the 2 server in coexistence and moved all mailboxes as well as all public folders  what should i do next to be able to decommission the SBS and turn it off completely PS: our c

  • Unable to create Business Service "Web Engine Interface" (sbl-dat-00227)

    Does anybody know about this issue? I can't test my workflows because of the same message please it is urgent fix it. Regards.

  • Sort order by variable?

    Hi all, Am wondering how to sort my results on a page by a variable. My sql code now is this: mysql_select_db($database_broker, $broker); $query_brokers = "SELECT * FROM brokers"; $query_limit_brokers = sprintf("%s LIMIT %d, %d", $query_brokers, $sta

  • Assignment feild (ZUONR) for MIGO Transaction

    Dear All, While posting MIGO & MIRO, the assignment field (ZUONR) is not updating in GR/IR Clearing Accounting. Previously  it was updated properly..... But now it is not updated. I have checked in GR/IR Clearing A/c GL master, there also, 102 - Orig