none
Query regarding Redemption MsRedemp22.MsMAPIUtils Usage RRS feed

  • Question

  • Just  wanted to check does Redemption poses any restriction while using MsRedemp22.MsMAPIUtils

    Type objclass=Type.GetTypeFromProgID("MsRedemp22.MsMAPIUtils")

    We have noticed that above code/line return null if user does not have admin rights on his machine. Is it some restriction from Redemption side or Outlook side? 


    kanagar

    Wednesday, February 22, 2012 12:12 PM

Answers

  • Redemption does not impose any restrictions, but if the dll is not registered at all or if it was registered in HKCU for a different user because that user did not have write access to the HKCR hive, you will see that behavior.

    Do you see the relevant registry keys?



    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.2 is now available!

    Wednesday, February 22, 2012 4:50 PM

All replies

  • Is the MAPIUtils object initialized correctly, how are you doing it? Are you setting the MAPIOBJECT for it to the NameSpace.MAPIOBJECT? My code almost never runs at elevates privileges and has never had a problem with MAPIUtils.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "kanagar" <=?utf-8?B?a2FuYWdhcg==?=> wrote in message news:41eebdce-9483-4b8a-9959-ff76b6914637...

    Just  wanted to check does Redemption poses any restriction while using MsRedemp22.MsMAPIUtils

    Type objclass=Type.GetTypeFromProgID("MsRedemp22.MsMAPIUtils")

    We have noticed that above code/line return null if user does not have admin rights on his machine. Is it some restriction from Redemption side or Outlook side? 


    kanagar


    Ken Slovak MVP - Outlook
    Wednesday, February 22, 2012 2:20 PM
    Moderator
  • Redemption does not impose any restrictions, but if the dll is not registered at all or if it was registered in HKCU for a different user because that user did not have write access to the HKCR hive, you will see that behavior.

    Do you see the relevant registry keys?



    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.2 is now available!

    Wednesday, February 22, 2012 4:50 PM