diff options
Diffstat (limited to 'src/dutil/inc')
-rw-r--r-- | src/dutil/inc/conutil.h | 8 | ||||
-rw-r--r-- | src/dutil/inc/strutil.h | 5 | ||||
-rw-r--r-- | src/dutil/inc/wiutil.h | 7 |
3 files changed, 13 insertions, 7 deletions
diff --git a/src/dutil/inc/conutil.h b/src/dutil/inc/conutil.h index cfb65332..a098cd4c 100644 --- a/src/dutil/inc/conutil.h +++ b/src/dutil/inc/conutil.h | |||
@@ -9,12 +9,8 @@ extern "C" { | |||
9 | #define ConsoleExitOnFailure(x, c, f, ...) if (FAILED(x)) { ConsoleWriteError(x, c, f, __VA_ARGS__); ExitTrace(x, f, __VA_ARGS__); goto LExit; } | 9 | #define ConsoleExitOnFailure(x, c, f, ...) if (FAILED(x)) { ConsoleWriteError(x, c, f, __VA_ARGS__); ExitTrace(x, f, __VA_ARGS__); goto LExit; } |
10 | #define ConsoleExitOnLastError(x, c, f, ...) { x = ::GetLastError(); x = HRESULT_FROM_WIN32(x); if (FAILED(x)) { ConsoleWriteError(x, c, f, __VA_ARGS__); ExitTrace(x, f, __VA_ARGS__); goto LExit; } } | 10 | #define ConsoleExitOnLastError(x, c, f, ...) { x = ::GetLastError(); x = HRESULT_FROM_WIN32(x); if (FAILED(x)) { ConsoleWriteError(x, c, f, __VA_ARGS__); ExitTrace(x, f, __VA_ARGS__); goto LExit; } } |
11 | #define ConsoleExitOnNull(p, x, e, c, f, ...) if (NULL == p) { x = e; ConsoleWriteError(x, c, f, __VA_ARGS__); ExitTrace(x, f, __VA_ARGS__); goto LExit; } | 11 | #define ConsoleExitOnNull(p, x, e, c, f, ...) if (NULL == p) { x = e; ConsoleWriteError(x, c, f, __VA_ARGS__); ExitTrace(x, f, __VA_ARGS__); goto LExit; } |
12 | 12 | #define ConsoleExitOnNullWithLastError(p, x, c, f, ...) if (NULL == p) { DWORD Dutil_er = ::GetLastError(); x = HRESULT_FROM_WIN32(Dutil_er); if (!FAILED(x)) { x = E_FAIL; } ConsoleWriteError(x, c, f, __VA_ARGS__); ExitTrace(x, f, __VA_ARGS__); goto LExit; } | |
13 | 13 | #define ConsoleExitWithLastError(x, c, f, ...) { DWORD Dutil_er = ::GetLastError(); x = HRESULT_FROM_WIN32(Dutil_er); if (!FAILED(x)) { x = E_FAIL; } ConsoleWriteError(x, c, f, __VA_ARGS__); ExitTrace(x, f, __VA_ARGS__); goto LExit; } | |
14 | // the following macros need to go away | ||
15 | #define ConsoleTrace(l, f, ...) { ConsoleWriteLine(CONSOLE_COLOR_NORMAL, f, __VA_ARGS__); Trace(l, f, __VA_ARGS__); } | ||
16 | #define ConsoleWarning(f, ...) { ConsoleWriteLine(CONSOLE_COLOR_YELLOW, f, __VA_ARGS__); Trace(REPORT_STANDARD, f, __VA_ARGS__); } | ||
17 | #define ConsoleError(x, f, ...) { ConsoleWriteError(x, CONSOLE_COLOR_RED, f, __VA_ARGS__); TraceError(x, f, __VA_ARGS__); } | ||
18 | 14 | ||
19 | 15 | ||
20 | // enums | 16 | // enums |
diff --git a/src/dutil/inc/strutil.h b/src/dutil/inc/strutil.h index 1a2ed1d8..c73615aa 100644 --- a/src/dutil/inc/strutil.h +++ b/src/dutil/inc/strutil.h | |||
@@ -100,6 +100,11 @@ HRESULT __cdecl StrAllocConcatFormatted( | |||
100 | __in __format_string LPCWSTR wzFormat, | 100 | __in __format_string LPCWSTR wzFormat, |
101 | ... | 101 | ... |
102 | ); | 102 | ); |
103 | HRESULT __cdecl StrAllocConcatFormattedSecure( | ||
104 | __deref_out_z LPWSTR* ppwz, | ||
105 | __in __format_string LPCWSTR wzFormat, | ||
106 | ... | ||
107 | ); | ||
103 | HRESULT __cdecl StrAllocFormattedSecure( | 108 | HRESULT __cdecl StrAllocFormattedSecure( |
104 | __deref_out_z LPWSTR* ppwz, | 109 | __deref_out_z LPWSTR* ppwz, |
105 | __in __format_string LPCWSTR wzFormat, | 110 | __in __format_string LPCWSTR wzFormat, |
diff --git a/src/dutil/inc/wiutil.h b/src/dutil/inc/wiutil.h index 4264b815..07f6b56c 100644 --- a/src/dutil/inc/wiutil.h +++ b/src/dutil/inc/wiutil.h | |||
@@ -330,10 +330,15 @@ HRESULT DAPI WiuEnableLog( | |||
330 | __in_z LPCWSTR wzLogFile, | 330 | __in_z LPCWSTR wzLogFile, |
331 | __in DWORD dwLogAttributes | 331 | __in DWORD dwLogAttributes |
332 | ); | 332 | ); |
333 | HRESULT DAPI WiuInitializeInternalUI( | ||
334 | __in INSTALLUILEVEL internalUILevel, | ||
335 | __in_opt HWND hwndParent, | ||
336 | __in WIU_MSI_EXECUTE_CONTEXT* pExecuteContext | ||
337 | ); | ||
333 | HRESULT DAPI WiuInitializeExternalUI( | 338 | HRESULT DAPI WiuInitializeExternalUI( |
334 | __in PFN_MSIEXECUTEMESSAGEHANDLER pfnMessageHandler, | 339 | __in PFN_MSIEXECUTEMESSAGEHANDLER pfnMessageHandler, |
335 | __in INSTALLUILEVEL internalUILevel, | 340 | __in INSTALLUILEVEL internalUILevel, |
336 | __in HWND hwndParent, | 341 | __in_opt HWND hwndParent, |
337 | __in LPVOID pvContext, | 342 | __in LPVOID pvContext, |
338 | __in BOOL fRollback, | 343 | __in BOOL fRollback, |
339 | __in WIU_MSI_EXECUTE_CONTEXT* pExecuteContext | 344 | __in WIU_MSI_EXECUTE_CONTEXT* pExecuteContext |