Lines Matching refs:pEnum
326 LPDRIVEENUM pEnum = (LPDRIVEENUM)HeapAlloc( GetProcessHeap(), 0, sizeof(DRIVEENUM) ); in OpenLogicalDrivesEnum() local
327 if ( pEnum ) in OpenLogicalDrivesEnum()
329 …DWORD dwNumCopied = GetLogicalDriveStrings( (sizeof(pEnum->cBuffer) - 1) / sizeof(TCHAR), pEnum->c… in OpenLogicalDrivesEnum()
331 if ( dwNumCopied && dwNumCopied < sizeof(pEnum->cBuffer) / sizeof(TCHAR) ) in OpenLogicalDrivesEnum()
333 pEnum->lpCurrent = pEnum->cBuffer; in OpenLogicalDrivesEnum()
334 pEnum->lpIdent = L"tagDRIVEENUM"; in OpenLogicalDrivesEnum()
338 HeapFree( GetProcessHeap(), 0, pEnum ); in OpenLogicalDrivesEnum()
339 pEnum = NULL; in OpenLogicalDrivesEnum()
342 return pEnum ? (HANDLE)pEnum : INVALID_HANDLE_VALUE; in OpenLogicalDrivesEnum()
349 LPDRIVEENUM pEnum = (LPDRIVEENUM)hEnum; in EnumLogicalDrives() local
351 if ( pEnum ) in EnumLogicalDrives()
353 int nLen = _tcslen( pEnum->lpCurrent ); in EnumLogicalDrives()
357 CopyMemory( lpBuffer, pEnum->lpCurrent, (nLen + 1) * sizeof(TCHAR) ); in EnumLogicalDrives()
358 pEnum->lpCurrent += nLen + 1; in EnumLogicalDrives()
374 LPDRIVEENUM pEnum = (LPDRIVEENUM)hEnum; in CloseLogicalDrivesEnum() local
376 if ( pEnum ) in CloseLogicalDrivesEnum()
378 HeapFree( GetProcessHeap(), 0, pEnum ); in CloseLogicalDrivesEnum()