VirtualBox

Changeset 94778 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
May 2, 2022 10:51:48 AM (3 years ago)
Author:
vboxsync
Message:

Main/{DisplayUtils,MachineImpl}: Prepare the various screenshot getters to handle encrypted SSM streams when accessing the saved state file, bugref:9955

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/DisplayUtils.h

    r94773 r94778  
    2424#include "VBox/com/string.h"
    2525
     26#include "CryptoUtils.h"
     27
    2628using namespace com;
    2729
     
    3335#define sSSMDisplayVer5 0x00010005
    3436
    35 int readSavedGuestScreenInfo(const Utf8Str &strStateFilePath, uint32_t u32ScreenId,
    36                              uint32_t *pu32OriginX, uint32_t *pu32OriginY,
     37int readSavedGuestScreenInfo(SsmStream &ssmStream, const Utf8Str &strStateFilePath,
     38                             uint32_t u32ScreenId, uint32_t *pu32OriginX, uint32_t *pu32OriginY,
    3739                             uint32_t *pu32Width, uint32_t *pu32Height, uint16_t *pu16Flags);
    3840
    39 int readSavedDisplayScreenshot(const Utf8Str &strStateFilePath, uint32_t u32Type, uint8_t **ppu8Data,
    40                                uint32_t *pcbData, uint32_t *pu32Width, uint32_t *pu32Height);
     41int readSavedDisplayScreenshot(SsmStream &ssmStream, const Utf8Str &strStateFilePath,
     42                               uint32_t u32Type, uint8_t **ppu8Data, uint32_t *pcbData,
     43                               uint32_t *pu32Width, uint32_t *pu32Height);
    4144void freeSavedDisplayScreenshot(uint8_t *pu8Data);
    4245
Note: See TracChangeset for help on using the changeset viewer.

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