Lines Matching refs:pDirImpl
512 Directory_Impl *pDirImpl; in osl_openLocalRoot() local
514 pDirImpl = reinterpret_cast<Directory_Impl*>(rtl_allocateMemory( sizeof(Directory_Impl))); in osl_openLocalRoot()
515 ZeroMemory( pDirImpl, sizeof(Directory_Impl) ); in osl_openLocalRoot()
516 rtl_uString_newFromString( &pDirImpl->m_pDirectoryPath, strSysPath ); in osl_openLocalRoot()
523 sal_uInt32 nLen = rtl_uString_getLength( pDirImpl->m_pDirectoryPath ); in osl_openLocalRoot()
524 if ( nLen && pDirImpl->m_pDirectoryPath->buffer[nLen - 1] != L'\\' ) in osl_openLocalRoot()
529 rtl_uString_assign( &pCurDir, pDirImpl->m_pDirectoryPath ); in osl_openLocalRoot()
531 rtl_uString_newConcat( &pDirImpl->m_pDirectoryPath, pCurDir, pBackSlash ); in osl_openLocalRoot()
536 pDirImpl->uType = DIRECTORYTYPE_LOCALROOT; in osl_openLocalRoot()
537 pDirImpl->hEnumDrives = OpenLogicalDrivesEnum(); in osl_openLocalRoot()
542 if ( pDirImpl->hEnumDrives != INVALID_HANDLE_VALUE ) in osl_openLocalRoot()
544 *pDirectory = (oslDirectory)pDirImpl; in osl_openLocalRoot()
549 if ( pDirImpl ) in osl_openLocalRoot()
551 if ( pDirImpl->m_pDirectoryPath ) in osl_openLocalRoot()
553 rtl_uString_release( pDirImpl->m_pDirectoryPath ); in osl_openLocalRoot()
554 pDirImpl->m_pDirectoryPath = 0; in osl_openLocalRoot()
557 rtl_freeMemory(pDirImpl); in osl_openLocalRoot()
558 pDirImpl = 0; in osl_openLocalRoot()
579 …Directory_Impl *pDirImpl = reinterpret_cast<Directory_Impl*>(rtl_allocateMemory(sizeof(Directory_I… in osl_openFileDirectory() local
580 ZeroMemory( pDirImpl, sizeof(Directory_Impl) ); in osl_openFileDirectory()
581 rtl_uString_newFromString( &pDirImpl->m_pDirectoryPath, strDirectoryPath ); in osl_openFileDirectory()
588 sal_uInt32 nLen = rtl_uString_getLength( pDirImpl->m_pDirectoryPath ); in osl_openFileDirectory()
589 if ( nLen && pDirImpl->m_pDirectoryPath->buffer[nLen - 1] != L'\\' ) in osl_openFileDirectory()
594 rtl_uString_assign( &pCurDir, pDirImpl->m_pDirectoryPath ); in osl_openFileDirectory()
596 rtl_uString_newConcat( &pDirImpl->m_pDirectoryPath, pCurDir, pBackSlash ); in osl_openFileDirectory()
602 pDirImpl->uType = DIRECTORYTYPE_FILESYSTEM; in osl_openFileDirectory()
603 pDirImpl->hDirectory = OpenDirectory( pDirImpl->m_pDirectoryPath ); in osl_openFileDirectory()
605 if ( !pDirImpl->hDirectory ) in osl_openFileDirectory()
609 if ( pDirImpl->m_pDirectoryPath ) in osl_openFileDirectory()
611 rtl_uString_release( pDirImpl->m_pDirectoryPath ); in osl_openFileDirectory()
612 pDirImpl->m_pDirectoryPath = 0; in osl_openFileDirectory()
615 rtl_freeMemory(pDirImpl), pDirImpl = 0; in osl_openFileDirectory()
618 *pDirectory = (oslDirectory)(pDirImpl); in osl_openFileDirectory()
643 Directory_Impl *pDirImpl; in osl_openNetworkServer() local
645 pDirImpl = reinterpret_cast<Directory_Impl*>(rtl_allocateMemory(sizeof(Directory_Impl))); in osl_openNetworkServer()
646 ZeroMemory( pDirImpl, sizeof(Directory_Impl) ); in osl_openNetworkServer()
647 pDirImpl->uType = DIRECTORYTYPE_NETROOT; in osl_openNetworkServer()
648 pDirImpl->hDirectory = hEnum; in osl_openNetworkServer()
649 *pDirectory = (oslDirectory)pDirImpl; in osl_openNetworkServer()
847 Directory_Impl *pDirImpl = (Directory_Impl *)Directory; in osl_getNextNetResource() local
859 if ( !pDirImpl ) in osl_getNextNetResource()
864 dwError = WNetEnumResource( pDirImpl->hDirectory, &dwCount, lpNetResource, &dwBufSize ); in osl_getNextNetResource()
895 Directory_Impl *pDirImpl = (Directory_Impl *)Directory; in osl_getNextDrive() local
905 if ( !pDirImpl ) in osl_getNextDrive()
915 fSuccess = EnumLogicalDrives( pDirImpl->hEnumDrives, pItemImpl->cDriveString ); in osl_getNextDrive()
939 Directory_Impl *pDirImpl = (Directory_Impl *)Directory; in osl_getNextFileItem() local
949 if ( !pDirImpl ) in osl_getNextFileItem()
957 fFound = EnumDirectory( pDirImpl->hDirectory, &pItemImpl->FindData ); in osl_getNextFileItem()
966 rtl_uString_newConcat( &pItemImpl->m_pFullPath, pDirImpl->m_pDirectoryPath, pTmpFileName ); in osl_getNextFileItem()
990 Directory_Impl *pDirImpl = (Directory_Impl *)Directory; in osl_getNextDirectoryItem() local
998 if ( !pDirImpl ) in osl_getNextDirectoryItem()
1001 switch ( pDirImpl->uType ) in osl_getNextDirectoryItem()
1017 Directory_Impl *pDirImpl = (Directory_Impl *)Directory; in osl_closeDirectory() local
1020 if ( pDirImpl ) in osl_closeDirectory()
1022 switch ( pDirImpl->uType ) in osl_closeDirectory()
1025 …eError = CloseDirectory( pDirImpl->hDirectory ) ? osl_File_E_None : oslTranslateFileError( GetLast… in osl_closeDirectory()
1028 …eError = CloseLogicalDrivesEnum( pDirImpl->hEnumDrives ) ? osl_File_E_None : oslTranslateFileError… in osl_closeDirectory()
1032 DWORD err = WNetCloseEnum(pDirImpl->hDirectory); in osl_closeDirectory()
1041 if ( pDirImpl->m_pDirectoryPath ) in osl_closeDirectory()
1043 rtl_uString_release( pDirImpl->m_pDirectoryPath ); in osl_closeDirectory()
1044 pDirImpl->m_pDirectoryPath = 0; in osl_closeDirectory()
1047 rtl_freeMemory(pDirImpl); in osl_closeDirectory()