Ignore:
Timestamp:
May 22, 2000, 9:08:01 PM (25 years ago)
Author:
sandervl
Message:

GetFileTime bugfix + FindResource(Ex)A/W changes + setup thread security objects during creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/HandleManager.cpp

    r3234 r3588  
    1 /* $Id: HandleManager.cpp,v 1.38 2000-03-24 23:14:59 sandervl Exp $ */
     1/* $Id: HandleManager.cpp,v 1.39 2000-05-22 19:07:52 sandervl Exp $ */
    22
    33/*
     
    13461346}
    13471347
     1348/*****************************************************************************
     1349 * Name      : HMDeviceHandler::GetFileTime
     1350 * Purpose   : router function for SetFileTime
     1351 * Parameters:
     1352 * Variables :
     1353 * Result    :
     1354 * Remark    :
     1355 * Status    :
     1356 *
     1357 * Author    : SvL
     1358 *****************************************************************************/
     1359
     1360BOOL HMGetFileTime (HANDLE         hFile,
     1361                    const FILETIME *pFT1,
     1362                    const FILETIME *pFT2,
     1363                    const FILETIME *pFT3)
     1364{
     1365  int       iIndex;                           /* index into the handle table */
     1366  BOOL      bResult;                 /* result from the device handler's API */
     1367  PHMHANDLE pHMHandle;       /* pointer to the handle structure in the table */
     1368
     1369                                                          /* validate handle */
     1370  iIndex = _HMHandleQuery(hFile);                           /* get the index */
     1371  if (-1 == iIndex)                                               /* error ? */
     1372  {
     1373    SetLastError(ERROR_INVALID_HANDLE);       /* set win32 error information */
     1374    return FALSE;                         /* signal failure */
     1375  }
     1376
     1377  pHMHandle = &TabWin32Handles[iIndex];               /* call device handler */
     1378  bResult = pHMHandle->pDeviceHandler->GetFileTime(&pHMHandle->hmHandleData,
     1379                                                   (LPFILETIME)pFT1,
     1380                                                   (LPFILETIME)pFT2,
     1381                                                   (LPFILETIME)pFT3);
     1382
     1383  return (bResult);                                   /* deliver return code */
     1384}
     1385
    13481386
    13491387/*****************************************************************************
Note: See TracChangeset for help on using the changeset viewer.