1. The macros are defined in dutil.h

2. Typically, when dealing with Win32 APIs that return BOOL and set last
error, the pattern looks like this:

if (!::Win32ApiThatReturnsFalseOnError(param, param2))
{
    ExitWithLastError(hr, "Failed to do what Win32 API was supposed to
do.");
}
Actually, "dutil.lib" is our collection of helper functions that standardize
all APIs on HRESULTs. Typically, if there is a Win32 API and it's needed in
deployment "deployment utillity library" (dutil.lib) probably has it.
 On Sat, Dec 18, 2010 at 5:59 AM, Sean Farrow
<[email protected]>wrote:

> Hi:
> I'm currently writing a custom action that users a win32 api function that
> return a bool. I want to exit the Wix custom action when the value of the
> variable is falue.
> Currently I'm using GetLastError, and then converting this error to a
> HRESULT and using exitOnFailure.
> Firstly, Where is ExitOnFailure defined in wcautil/dutil? And more
> importantly, secondly, is there an ExitOnFalse function/macro?
> Any help appreciated.
> Cheers
> Sean.
>
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


-- 
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to