Lines Matching refs:handle

65 static bool IsValidHandle( HANDLE handle )  in IsValidHandle()  argument
67 return NULL != handle && INVALID_HANDLE_VALUE != handle; in IsValidHandle()
70 static std::string GetMsiProperty(MSIHANDLE handle, const std::string& sProperty) in GetMsiProperty() argument
76 if (MsiGetProperty(handle, sProperty.c_str(), szDummy, &nChars) == ERROR_MORE_DATA) in GetMsiProperty()
81 MsiGetProperty(handle, sProperty.c_str(), buffer, &nChars); in GetMsiProperty()
125 static BOOL rebaseImagesInFolder( MSIHANDLE handle, const std::string& sPath, LPVOID address, Exclu… in rebaseImagesInFolder() argument
143 rebaseImage( handle, sLibFile, address ); in rebaseImagesInFolder()
160 static BOOL rebaseImages( MSIHANDLE handle, LPVOID pAddress, ExcludeLibsMap& rMap ) in rebaseImages() argument
162 std::string sInstallPath = GetMsiProperty(handle, TEXT("INSTALLLOCATION")); in rebaseImages()
168 BOOL bResult = rebaseImagesInFolder( handle, sBasisDir, pAddress, rMap ); in rebaseImages()
169 bResult &= rebaseImagesInFolder( handle, sOfficeDir, pAddress, rMap ); in rebaseImages()
170 bResult &= rebaseImagesInFolder( handle, sUreDir, pAddress, rMap ); in rebaseImages()
193 static void InitExcludeFromRebaseList( MSIHANDLE handle, ExcludeLibsMap& rMap ) in InitExcludeFromRebaseList() argument
197 std::string sLibsExcluded = GetMsiProperty(handle, TEXT("EXCLUDE_FROM_REBASE")); in InitExcludeFromRebaseList()
223 extern "C" BOOL __stdcall RebaseLibrariesOnProperties( MSIHANDLE handle ) in RebaseLibrariesOnProperties() argument
228 std::string sDontOptimizeLibs = GetMsiProperty(handle, TEXT("DONTOPTIMIZELIBS")); in RebaseLibrariesOnProperties()
235 if ( !IsServerSystem( handle )) in RebaseLibrariesOnProperties()
238 InitExcludeFromRebaseList( handle, aExcludeLibsMap ); in RebaseLibrariesOnProperties()
240 return rebaseImages( handle, pDefault, aExcludeLibsMap ); in RebaseLibrariesOnProperties()