none
MessageBox IAT hook in WEC7 RRS feed

  • Question

  • Hi

    I'm trying to use a custom message box in my solution. So, I developed a IAT hook that perfectly in Windows Desktop, also works in WINCE 5 ARM, for that I used the following post:

    https://forum.xda-developers.com/showthread.php?t=372496

    But it does not work anymore for Wince 6 and WEC7, according with post due changes in memory architecture.

    Is there any way to make a iat hook for the messagebox function  in WEC7 ?

    I really appreciate any help.

    Thanks

    Wednesday, August 16, 2017 12:45 AM

Answers

  • Well, what can I say... You can't expect an unsupported hack to be supported or possible in future versions of the OS. Once you go hack, that's it, you're on your own. Not a very wise decision for a big software project that needs long-term support!

    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: https://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    NXP Proven Partner
    https://guruce.com
    Consultancy, training and development services.

    Interested in WEC on i.MX6?
    Get the only 100% stable and best performing i.MX6 BSP for WEC7 and WEC2013 here: https://guruce.com/imx6

    Wednesday, August 16, 2017 7:45 PM
    Moderator

All replies

  • Why go such a difficult route if all you want is a custom messagebox? Just use a resource template and DialogBox API.

    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: https://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    NXP Proven Partner
    https://guruce.com
    Consultancy, training and development services.

    Interested in WEC on i.MX6?
    Get the only 100% stable and best performing i.MX6 BSP for WEC7 and WEC2013 here: https://guruce.com/imx6

    Wednesday, August 16, 2017 3:24 PM
    Moderator
  • Thanks for the answer

    Unfortunately I can not change all messagebox / afxmesagebox calls in my code. It would be a very big change and I also have to give the user the option to use or not the custom messagebox.

    Wednesday, August 16, 2017 7:08 PM
  • Well, what can I say... You can't expect an unsupported hack to be supported or possible in future versions of the OS. Once you go hack, that's it, you're on your own. Not a very wise decision for a big software project that needs long-term support!

    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: https://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    NXP Proven Partner
    https://guruce.com
    Consultancy, training and development services.

    Interested in WEC on i.MX6?
    Get the only 100% stable and best performing i.MX6 BSP for WEC7 and WEC2013 here: https://guruce.com/imx6

    Wednesday, August 16, 2017 7:45 PM
    Moderator
  • Hmm, it is called search/replace.  You would replace your calls to MessageBox with a call to your own function, which can in turn do an if/else to determine which function to call based on the user's choice.


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman
    I work for Eurotech

    Friday, August 18, 2017 4:32 PM
    Moderator