VirtualBox

Changeset 3585 in vbox


Ignore:
Timestamp:
Jul 12, 2007 2:12:55 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
22834
Message:

VRDP NO_COM code.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

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

    r3568 r3585  
    610610#define VBVA_VRDP_INDEX_TO_BIT(__index) (1 << (__index))
    611611
     612#ifndef VRDP_NO_COM
    612613/* 128 bit bitmap hash. */
    613614typedef uint8_t VRDPBITMAPHASH[16];
     
    771772    uint8_t restore;
    772773} VRDPORDERSAVESCREEN;
     774#endif /* VRDP_NO_COM */
    773775#pragma pack()
    774776
  • trunk/include/VBox/vrdpapi.h

    r3359 r3585  
    671671                                             uint32_t u32ClientId,
    672672                                             void *pvParm,
    673                                              uint32_t cbRarm);
     673                                             uint32_t cbParm);
    674674
    675675    /**
     
    689689     * @note Initialized to NULL when the application clipboard callbacks are NULL.
    690690     */
    691     DECLCALLBACKMEMBER(void, VRDPClipboard)(HVRDPSERVER hserver,
     691    DECLCALLBACKMEMBER(void, VRDPClipboard)(HVRDPSERVER hServer,
    692692                                            uint32_t u32Function,
    693693                                            uint32_t u32Format,
     
    699699     * Query various information from the VRDP server.
    700700     *
     701     * @param hServer   The VRDP server handle.
    701702     * @param index     VRDP_QI_* identifier of information to be returned.
    702703     * @param pvBuffer  Address of memory buffer to which the information must be written.
     
    719720#define VRDP_QP_NUMBER_MONITORS   (3)
    720721
     722#pragma pack(1)
     723/* A framebuffer description. */
     724typedef struct _VRDPFRAMEBUFFERINFO
     725{
     726    const uint8_t *pu8Bits;
     727    int            xOrigin;
     728    int            yOrigin;
     729    unsigned       cWidth;
     730    unsigned       cHeight;
     731    unsigned       cBitsPerPixel;
     732    unsigned       cbLine;
     733} VRDPFRAMEBUFFERINFO;
     734
     735#define VRDP_INPUT_SCANCODE 0
     736#define VRDP_INPUT_POINT    1
     737#define VRDP_INPUT_CAD      2
     738#define VRDP_INPUT_RESET    3
     739
     740typedef struct _VRDPINPUTSCANCODE
     741{
     742    unsigned uScancode;
     743} VRDPINPUTSCANCODE;
     744
     745#define VRDP_INPUT_POINT_BUTTON1    0x01
     746#define VRDP_INPUT_POINT_BUTTON2    0x02
     747#define VRDP_INPUT_POINT_BUTTON3    0x04
     748#define VRDP_INPUT_POINT_WHEEL_UP   0x08
     749#define VRDP_INPUT_POINT_WHEEL_DOWN 0x10
     750
     751typedef struct _VRDPINPUTPOINT
     752{
     753    int x;
     754    int y;
     755    unsigned uButtons;
     756} VRDPINPUTPOINT;
     757#pragma pack()
     758
    721759/** The VRDP server callbacks. Interface version 1. */
    722760typedef struct _VRDPCALLBACKS_1
     
    734772     * @param pcbOut      Size in bytes of returned information value.
    735773     *
    736      * @remark The VRDP server checks the *pcbOut. 0 there means no information was returned.
    737      *         A value greater than cbBuffer means that information is too big to fit in the
    738      *         buffer, in that case no information was placed to the buffer.
    739      */
    740     DECLCALLBACKMEMBER(void, VRDPQueryProperty)(void *pvCallback,
    741                                                 uint32_t index,
    742                                                 void *pvBuffer,
    743                                                 uint32_t cbBuffer,
    744                                                 uint32_t *pcbOut);
     774     * @return IPRT status code. VINF_BUFFER_OVERFLOW if the buffer is too small for the value.
     775     */
     776    DECLCALLBACKMEMBER(int, VRDPCallbackQueryProperty)(void *pvCallback,
     777                                                       uint32_t index,
     778                                                       void *pvBuffer,
     779                                                       uint32_t cbBuffer,
     780                                                       uint32_t *pcbOut);
    745781
    746782    /* A client is logging in, the application must decide whether
     
    834870                                                   const void *pvData,
    835871                                                   uint32_t cbData);
     872
     873    /* The framebuffer information is queried.
     874     *
     875     * @param pvCallback      The callback specific pointer.
     876     * @param uScreenId       The framebuffer index.
     877     * @param pInfo           The information structure to ber filled.
     878     *
     879     * @return Whether the framebuffer is available.
     880     */
     881    DECLCALLBACKMEMBER(bool, VRDPCallbackFramebufferQuery)(void *pvCallback,
     882                                                           unsigned uScreenId,
     883                                                           VRDPFRAMEBUFFERINFO *pInfo);
     884
     885    /* The framebuffer is locked.
     886     *
     887     * @param pvCallback      The callback specific pointer.
     888     * @param uScreenId       The framebuffer index.
     889     */
     890    DECLCALLBACKMEMBER(void, VRDPCallbackFramebufferLock)(void *pvCallback,
     891                                                          unsigned uScreenId);
     892
     893    /* The framebuffer is unlocked.
     894     *
     895     * @param pvCallback      The callback specific pointer.
     896     * @param uScreenId       The framebuffer index.
     897     */
     898    DECLCALLBACKMEMBER(void, VRDPCallbackFramebufferUnlock)(void *pvCallback,
     899                                                            unsigned uScreenId);
     900
     901    /* Input from the client.
     902     *
     903     * @param pvCallback      The callback specific pointer.
     904     * @param pvInput         The input information.
     905     * @param cbInput         The size of the input information.
     906     */
     907    DECLCALLBACKMEMBER(void, VRDPCallbackInput)(void *pvCallback,
     908                                                const void *pvInput,
     909                                                unsigned cbInput);
     910
     911    /* Video mode hint from the client.
     912     *
     913     * @param pvCallback      The callback specific pointer.
     914     * @param cWidth          Requested width.
     915     * @param cHeight         Requested height.
     916     * @param cBitsPerPixel   Requested color depth.
     917     * @param uScreenId       The framebuffer index.
     918     */
     919    DECLCALLBACKMEMBER(void, VRDPCallbackVideoModeHint)(void *pvCallback,
     920                                                        unsigned cWidth,
     921                                                        unsigned cHeight,
     922                                                        unsigned cBitsPerPixel,
     923                                                        unsigned uScreenId);
     924
    836925} VRDPCALLBACKS_1;
    837926
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