VirtualBox

Changeset 78698 in vbox for trunk/include/VBox


Ignore:
Timestamp:
May 23, 2019 4:44:05 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
130776
Message:

SharedFoldersSvc: Adding function that lets the guest set the error code style. The idea is that the host will do a some error code adjustments when the guest and host OSes differ, as this is much more effient than the guest doing it. The deman is chiefly for windows guests. bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/shflsvc.h

    r78479 r78698  
    152152 * @since VBox 6.0.8  */
    153153#define SHFL_FN_CLOSE_AND_REMOVE    (28)
     154/** Set the host error code style.
     155 * This is for more efficiently getting the correct error status when the host
     156 * and guest OS types differs and it won't happen naturally.
     157 * @since VBox 6.0.10  */
     158#define SHFL_FN_SET_ERROR_STYLE     (29)
    154159/** The last function number. */
    155 #define SHFL_FN_LAST                SHFL_FN_CLOSE_AND_REMOVE
     160#define SHFL_FN_LAST                SHFL_FN_SET_ERROR_STYLE
    156161/** @} */
    157162
     
    20472052 * @{ */
    20482053/** SHFL_FN_COPY_FILE_PART parameters. */
    2049 typedef struct VBoxSFParmCopyFilePar
     2054typedef struct VBoxSFParmCopyFilePart
    20502055{
    20512056    /** value32, in: SHFLROOT of the mapping the source handle belongs to. */
     
    20722077/** @} */
    20732078
     2079
     2080/** @name SHFL_FN_SET_ERROR_STYLE
     2081 * @{ */
     2082/** The defined error styles. */
     2083typedef enum SHFLERRORSTYLE
     2084{
     2085    kShflErrorStyle_Invalid = 0,
     2086    kShflErrorStyle_Windows,
     2087    kShflErrorStyle_Linux,
     2088    kShflErrorStyle_End,
     2089    kShflErrorStyle_32BitHack = 0x7fffffff
     2090} SHFLERRORSTYLE;
     2091/** The native error style. */
     2092#if defined(RT_OS_WINDOWS) || defined(RT_OS_OS2)
     2093# define SHFLERRORSTYLE_NATIVE      kShflErrorStyle_Windows
     2094#else
     2095# define SHFLERRORSTYLE_NATIVE      kShflErrorStyle_Linux
     2096#endif
     2097
     2098/** SHFL_FN_SET_ERROR_STYLE parameters. */
     2099typedef struct VBoxSFParmSetErrorStyle
     2100{
     2101    /** value32, in: The style, SHFLERRORSTYLE. */
     2102    HGCMFunctionParameter enm32Style;
     2103    /** value32, in: Reserved for the future, must be zero. */
     2104    HGCMFunctionParameter u32Reserved;
     2105} VBoxSFParmSetErrorStyle;
     2106/** Number of parameters for SHFL_FN_SET_ERROR_STYLE. */
     2107#define SHFL_CPARMS_SET_ERROR_STYLE (2)
     2108/** @} */
    20742109
    20752110
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette