diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-06-24 12:26:27 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-06-27 11:14:21 -0500 |
commit | 78b5daf01555d86293c1012ed3de704752880a6a (patch) | |
tree | 45524478c868cf63042a5e2ad78cfcd15aac43d6 /src/libs/dutil/WixToolset.DUtil/inc | |
parent | 4f41db7eaa48b0e061a68fd5fc70ce6d127d9039 (diff) | |
download | wix-78b5daf01555d86293c1012ed3de704752880a6a.tar.gz wix-78b5daf01555d86293c1012ed3de704752880a6a.tar.bz2 wix-78b5daf01555d86293c1012ed3de704752880a6a.zip |
Move LoadSystemLibrary and LoadSystemLibraryWithPath into apputil.
Diffstat (limited to 'src/libs/dutil/WixToolset.DUtil/inc')
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/inc/apputil.h | 5 | ||||
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/inc/dutil.h | 30 |
2 files changed, 33 insertions, 2 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/inc/apputil.h b/src/libs/dutil/WixToolset.DUtil/inc/apputil.h index 11280102..95a98e73 100644 --- a/src/libs/dutil/WixToolset.DUtil/inc/apputil.h +++ b/src/libs/dutil/WixToolset.DUtil/inc/apputil.h | |||
@@ -16,6 +16,11 @@ void DAPI AppFreeCommandLineArgs( | |||
16 | __in LPWSTR* argv | 16 | __in LPWSTR* argv |
17 | ); | 17 | ); |
18 | 18 | ||
19 | /******************************************************************** | ||
20 | AppInitialize - initializes the standard safety precautions for an | ||
21 | installation application. | ||
22 | |||
23 | ********************************************************************/ | ||
19 | void DAPI AppInitialize( | 24 | void DAPI AppInitialize( |
20 | __in_ecount(cSafelyLoadSystemDlls) LPCWSTR rgsczSafelyLoadSystemDlls[], | 25 | __in_ecount(cSafelyLoadSystemDlls) LPCWSTR rgsczSafelyLoadSystemDlls[], |
21 | __in DWORD cSafelyLoadSystemDlls | 26 | __in DWORD cSafelyLoadSystemDlls |
diff --git a/src/libs/dutil/WixToolset.DUtil/inc/dutil.h b/src/libs/dutil/WixToolset.DUtil/inc/dutil.h index 618349da..4a29b66b 100644 --- a/src/libs/dutil/WixToolset.DUtil/inc/dutil.h +++ b/src/libs/dutil/WixToolset.DUtil/inc/dutil.h | |||
@@ -205,8 +205,34 @@ extern "C" { | |||
205 | #endif | 205 | #endif |
206 | 206 | ||
207 | // other functions | 207 | // other functions |
208 | HRESULT DAPI LoadSystemLibrary(__in_z LPCWSTR wzModuleName, __out HMODULE *phModule); | 208 | |
209 | HRESULT DAPI LoadSystemLibraryWithPath(__in_z LPCWSTR wzModuleName, __out HMODULE *phModule, __deref_out_z_opt LPWSTR* psczPath); | 209 | /******************************************************************* |
210 | LoadSystemLibrary - Fully qualifies the path to a module in the | ||
211 | Windows system directory and loads it. | ||
212 | |||
213 | Returns | ||
214 | E_MODNOTFOUND - The module could not be found. | ||
215 | * - Another error occured. | ||
216 | ********************************************************************/ | ||
217 | HRESULT DAPI LoadSystemLibrary( | ||
218 | __in_z LPCWSTR wzModuleName, | ||
219 | __out HMODULE* phModule | ||
220 | ); | ||
221 | |||
222 | /******************************************************************* | ||
223 | LoadSystemLibraryWithPath - Fully qualifies the path to a module in | ||
224 | the Windows system directory and loads it | ||
225 | and returns the path | ||
226 | |||
227 | Returns | ||
228 | E_MODNOTFOUND - The module could not be found. | ||
229 | * - Another error occured. | ||
230 | ********************************************************************/ | ||
231 | HRESULT DAPI LoadSystemLibraryWithPath( | ||
232 | __in_z LPCWSTR wzModuleName, | ||
233 | __out HMODULE* phModule, | ||
234 | __deref_out_z_opt LPWSTR* psczPath | ||
235 | ); | ||
210 | 236 | ||
211 | #ifdef __cplusplus | 237 | #ifdef __cplusplus |
212 | } | 238 | } |