Lines Matching refs:nRet
268 DWORD nRet = GetPrivateProfileSection( pSection, *pRetBuf, rSize, pFileName ); in GetProfileSection() local
270 if ( nRet && ( nRet + 2 > rSize ) ) // buffer was too small, retry with bigger one in GetProfileSection()
272 if ( nRet < 32767 - 2 ) in GetProfileSection()
275 rSize = nRet + 2; in GetProfileSection()
278 nRet = GetPrivateProfileSection( pSection, *pRetBuf, rSize, pFileName ); in GetProfileSection()
282 if ( !nRet ) in GetProfileSection()
291 else if ( nRet + 2 > rSize ) in GetProfileSection()
574 int nRet = lstrlen( pLine ) + 1; in GetNameValue() local
577 if ( nRet == 1 ) in GetNameValue()
578 return nRet; in GetNameValue()
595 return nRet; in GetNameValue()
612 return nRet; in GetNameValue()
710 long nRet = ERROR_SUCCESS; in LoadMsiLibrary() local
715 if ( ERROR_MORE_DATA == ( nRet = RegQueryValueEx( hInstKey, sInstLocValue, NULL, in LoadMsiLibrary()
722 nRet = RegQueryValueEx( hInstKey, sInstLocValue, NULL, &dwType, in LoadMsiLibrary()
726 if ( ERROR_SUCCESS == nRet && dwType == REG_SZ && dwMsiFolderSize > 0 ) in LoadMsiLibrary()
761 LONG nRet = ERROR_SUCCESS; in GetPathToMSI() local
764 if ( ERROR_MORE_DATA == ( nRet = RegQueryValueEx( hInstKey, sInstLocValue, NULL, in GetPathToMSI()
771 nRet = RegQueryValueEx( hInstKey, sInstLocValue, NULL, &dwType, in GetPathToMSI()
775 if ( ERROR_SUCCESS != nRet || dwType != REG_SZ || nMsiFolderSize == 0 ) in GetPathToMSI()
783 DWORD nRet = WIN::GetSystemDirectory( sMsiFolder, nMsiFolderSize ); in GetPathToMSI() local
784 if ( nRet > nMsiFolderSize ) in GetPathToMSI()
787 sMsiFolder = new TCHAR[ nRet ]; in GetPathToMSI()
788 nMsiFolderSize = nRet; in GetPathToMSI()
790 nRet = WIN::GetSystemDirectory( sMsiFolder, nMsiFolderSize ); in GetPathToMSI()
792 if ( 0 == nRet ) in GetPathToMSI()
797 nMsiFolderSize = nRet; in GetPathToMSI()
1478 int nRet = ERROR_SUCCESS; in GetCmdLineParameters() local
1509 nRet = ERROR_INVALID_PARAMETER; in GetCmdLineParameters()
1534 nRet = ERROR_INVALID_PARAMETER; in GetCmdLineParameters()
1540 nRet = ERROR_OUTOFMEMORY; in GetCmdLineParameters()
1546 nRet = ERROR_OUTOFMEMORY; in GetCmdLineParameters()
1553 nRet = ERROR_OUTOFMEMORY; in GetCmdLineParameters()
1574 nRet = ERROR_OUTOFMEMORY; in GetCmdLineParameters()
1595 nRet = ERROR_INVALID_PARAMETER; in GetCmdLineParameters()
1610 nRet = ERROR_SHOW_USAGE; in GetCmdLineParameters()
1618 nRet = ERROR_OUTOFMEMORY; in GetCmdLineParameters()
1628 nRet = ERROR_OUTOFMEMORY; in GetCmdLineParameters()
1641 if ( nRet != ERROR_SUCCESS ) in GetCmdLineParameters()
1643 SetError( nRet ); in GetCmdLineParameters()
1855 UINT nRet = MsiGetSummaryInformation( NULL, szDatabasePath, 0, &hSummaryInfo ); in IsPatchInstalled() local
1857 if ( nRet != ERROR_SUCCESS ) in IsPatchInstalled()
1859 …intf( sBuf, 80, TEXT("ERROR: IsPatchInstalled: MsiGetSummaryInformation returned %u.\r\n"), nRet ); in IsPatchInstalled()
1867 …nRet = MsiSummaryInfoGetProperty( hSummaryInfo, PID_REVNUMBER, &uiDataType, NULL, NULL, szPatchID,… in IsPatchInstalled()
1869 if ( nRet != ERROR_SUCCESS ) in IsPatchInstalled()
1871 …ntf( sBuf, 80, TEXT("ERROR: IsPatchInstalled: MsiSummaryInfoGetProperty returned %u.\r\n"), nRet ); in IsPatchInstalled()
1876 nRet = MsiGetPatchInfo( szPatchID, INSTALLPROPERTY_LOCALPACKAGE, NULL, NULL ); in IsPatchInstalled()
1878 StringCchPrintf( sBuf, 80, TEXT(" GetPatchInfo for (%s) returned (%u)\r\n"), szPatchID, nRet ); in IsPatchInstalled()
1883 if ( nRet == ERROR_BAD_CONFIGURATION ) in IsPatchInstalled()
1885 else if ( nRet == ERROR_INVALID_PARAMETER ) in IsPatchInstalled()
1887 else if ( nRet == ERROR_MORE_DATA ) in IsPatchInstalled()
1889 else if ( nRet == ERROR_SUCCESS ) in IsPatchInstalled()
1891 else if ( nRet == ERROR_UNKNOWN_PRODUCT ) in IsPatchInstalled()
1893 else if ( nRet == ERROR_UNKNOWN_PROPERTY ) in IsPatchInstalled()
1903 INSTALLSTATE nRet = MsiQueryProductState( sProductCode ); in InstallRuntimes() local
1904 OutputDebugStringFormat( TEXT( "MsiQueryProductState returned <%d>\r\n" ), nRet ); in InstallRuntimes()
1905 if ( nRet == INSTALLSTATE_DEFAULT ) in InstallRuntimes()