Ignore:
Timestamp:
Jul 4, 2000, 10:41:13 AM (25 years ago)
Author:
sandervl
Message:

CopyFileExA/W, CreateDirectoryExA/W unstubbed, GetShortPathNameA/W fixes

File:
1 edited

Legend:

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

    r3483 r3799  
    1 /* $Id: stubs.cpp,v 1.22 2000-05-02 20:53:13 sandervl Exp $ */
     1/* $Id: stubs.cpp,v 1.23 2000-07-04 08:41:13 sandervl Exp $ */
    22
    33/*
     
    530530
    531531  return (Locale);
    532 }
    533 
    534 /*****************************************************************************
    535  * Name      : BOOL WIN32API CopyFileExA
    536  * Purpose   : The CopyFileExA function copies an existing file to a new file.
    537  *             This function preserves extended attributes, OLE structured
    538  *             storage, NTFS alternate data streams, and file attributes.
    539  *             Security attributes for the existing file are not copied to
    540  *             the new file.
    541  * Parameters: LPCSTR lpExistingFileName   pointer to name of an existing file
    542  *             LPCSTR lpNewFileName        pointer to filename to copy to
    543  *             LPPROGRESS_ROUTINE lpProgressRoutine  pointer to the callback function
    544  *             LPVOID lpData               to be passed to the callback function
    545  *             LPBOOL pbCancel     flag that can be used to cancel the operation
    546  *             DWORD dwCopyFlags   flags that specify how the file is copied
    547  * Variables :
    548  * Result    : f the function succeeds, the return value is nonzero.
    549  *             If the function fails, the return value is zero.
    550  *             To get extended error information call GetLastError.
    551  * Remark    :
    552  * Status    : UNTESTED STUB
    553  *
    554  * Author    : Markus Montkowski [Thu, 1998/05/19 11:46]
    555  *****************************************************************************/
    556 
    557 BOOL WIN32API CopyFileExA( LPCSTR             lpExistingFileName,
    558                               LPCSTR             lpNewFileName,
    559                               LPPROGRESS_ROUTINE lpProgressRoutine,
    560                               LPVOID             lpData,
    561                               LPBOOL             pbCancel,
    562                               DWORD              dwCopyFlags)
    563 {
    564 
    565   dprintf(("KERNEL32: CopyFileExA(%08x,%08x,%08x,%08x,%08x,%08x) not implemented\n",
    566            lpExistingFileName,
    567            lpNewFileName,
    568            lpProgressRoutine,
    569            lpData,
    570            pbCancel,
    571            dwCopyFlags
    572           ));
    573 
    574   return (FALSE);
    575 }
    576 
    577 
    578 /*****************************************************************************
    579  * Name      : BOOL WIN32API CopyFileExW
    580  * Purpose   : The CopyFileExW function copies an existing file to a new file.
    581  *             This function preserves extended attributes, OLE structured
    582  *             storage, NTFS alternate data streams, and file attributes.
    583  *             Security attributes for the existing file are not copied to
    584  *             the new file.
    585  * Parameters: LPCWSTR lpExistingFileName   pointer to name of an existing file
    586  *             LPCWSTR lpNewFileName        pointer to filename to copy to
    587  *             LPPROGRESS_ROUTINE lpProgressRoutine  pointer to the callback function
    588  *             LPVOID lpData               to be passed to the callback function
    589  *             LPBOOL pbCancel     flag that can be used to cancel the operation
    590  *             DWORD dwCopyFlags   flags that specify how the file is copied
    591  * Variables :
    592  * Result    : f the function succeeds, the return value is nonzero.
    593  *             If the function fails, the return value is zero.
    594  *             To get extended error information call GetLastError.
    595  * Remark    :
    596  * Status    : UNTESTED STUB
    597  *
    598  * Author    : Markus Montkowski [Thu, 1998/05/19 11:46]
    599  *****************************************************************************/
    600 
    601 BOOL WIN32API CopyFileExW( LPCWSTR            lpExistingFileName,
    602                               LPCWSTR            lpNewFileName,
    603                               LPPROGRESS_ROUTINE lpProgressRoutine,
    604                               LPVOID             lpData,
    605                               LPBOOL             pbCancel,
    606                               DWORD              dwCopyFlags)
    607 {
    608 
    609   dprintf(("KERNEL32: CopyFileExW(%08x,%08x,%08x,%08x,%08x,%08x) not implemented\n",
    610            lpExistingFileName,
    611            lpNewFileName,
    612            lpProgressRoutine,
    613            lpData,
    614            pbCancel,
    615            dwCopyFlags
    616           ));
    617 
    618   return (FALSE);
    619 }
    620 
    621 /*****************************************************************************
    622  * Name      : BOOL WIN32API CreateDirectoryExA
    623  * Purpose   : The CreateDirectoryExA function creates a new directory with a
    624  *             specified path that retains the attributes of a specified
    625  *             template directory. If the underlying file system supports
    626  *             security on files and directories, the function applies a
    627  *             specified security descriptor to the new directory.
    628  *             The new directory retains the other attributes of the specified
    629  *             template directory. Note that CreateDirectoryEx has a template
    630  *             parameter, while CreateDirectory does not.
    631  * Parameters: LPCSTR lpTemplateDirectory  pointer to path string of template
    632  *                                         directory
    633  *             LPCSTR lpNewDirectory      pointer to path string of directory
    634  *                                         to create
    635  *             LPSECURITY_ATTRIBUTES lpSecurityAttributes  pointer to security
    636  *                                                         descriptor
    637  *
    638  * Variables :
    639  * Result    : If the function succeeds, the return value is nonzero.
    640  *             If the function fails, the return value is zero.
    641  *             To get extended error information, call GetLastError.
    642  * Remark    :
    643  * Status    : UNTESTED STUB
    644  *
    645  * Author    : Markus Montkowski [Tha, 1998/05/21 17:46]
    646  *****************************************************************************/
    647 
    648 BOOL WIN32API CreateDirectoryExA( LPCSTR lpTemplateDirectory,
    649                                      LPCSTR lpNewDirectory,
    650                                      LPSECURITY_ATTRIBUTES lpSecurityAttributes)
    651 {
    652 
    653   dprintf(("KERNEL32:CreateDirectoryExA(%08x,%08x,%08x) not implemented\n",
    654            lpTemplateDirectory,lpNewDirectory,lpSecurityAttributes
    655           ));
    656 
    657   return (FALSE);
    658 }
    659 
    660 /*****************************************************************************
    661  * Name      : BOOL WIN32API CreateDirectoryExW
    662  * Purpose   : The CreateDirectoryExW function creates a new directory with a
    663  *             specified path that retains the attributes of a specified
    664  *             template directory. If the underlying file system supports
    665  *             security on files and directories, the function applies a
    666  *             specified security descriptor to the new directory.
    667  *             The new directory retains the other attributes of the specified
    668  *             template directory. Note that CreateDirectoryEx has a template
    669  *             parameter, while CreateDirectory does not.
    670  * Parameters: LPCWSTR lpTemplateDirectory  pointer to path string of template
    671  *                                          directory
    672  *             LPCWSTR lpNewDirectory      pointer to path string of directory
    673  *                                         to create
    674  *             LPSECURITY_ATTRIBUTES lpSecurityAttributes  pointer to security
    675  *                                                         descriptor
    676  *
    677  * Variables :
    678  * Result    : If the function succeeds, the return value is nonzero.
    679  *             If the function fails, the return value is zero.
    680  *             To get extended error information, call GetLastError.
    681  * Remark    :
    682  * Status    : UNTESTED STUB
    683  *
    684  * Author    : Markus Montkowski [Tha, 1998/05/21 17:46]
    685  *****************************************************************************/
    686 
    687 BOOL WIN32API CreateDirectoryExW( LPCWSTR lpTemplateDirectory,
    688                                      LPCWSTR lpNewDirectory,
    689                                      LPSECURITY_ATTRIBUTES lpSecurityAttributes)
    690 {
    691 
    692   dprintf(("KERNEL32:CreateDirectoryExW(%08x,%08x,%08x) not implemented\n",
    693            lpTemplateDirectory,lpNewDirectory,lpSecurityAttributes
    694           ));
    695 
    696   return (FALSE);
    697532}
    698533
Note: See TracChangeset for help on using the changeset viewer.