ReactOS 0.4.15-dev-5669-g09dde2c
activex.cpp File Reference
#include "stdafx.h"
#include "mstsclib_h.h"
#include "mstsclib_redist_i.c"
#include "rdesktop/rdesktop.h"
#include "rdesktop/proto.h"
Include dependency graph for activex.cpp:

Go to the source code of this file.

Classes

class  RdpClientUI
 
class  SEALED_
 
class  SEALED_::RdpClientInner
 
struct  SEALED_::EventArguments
 
struct  SEALED_::RedirectArguments
 
class  SEALED_::SEALED_
 
class  SEALED_::CEnumConnectionPoints
 
class  ClassFactory
 

Namespaces

namespace  MSTSCLib
 
namespace  MSTSCLib_Redist
 
namespace  anonymous_namespace{activex.cpp}
 

Macros

#define SEALED_
 

Functions

HMODULE anonymous_namespace{activex.cpp}::GetCurrentModule ()
 
void anonymous_namespace{activex.cpp}::lockServer ()
 
void anonymous_namespace{activex.cpp}::unlockServer ()
 
bool anonymous_namespace{activex.cpp}::canUnloadServer ()
 
void anonymous_namespace{activex.cpp}::FreeLpsz (LPSTR lpsz)
 
LPSTR anonymous_namespace{activex.cpp}::AllocLpsz (const CHAR *lpsz, size_t cb)
 
LPSTR anonymous_namespace{activex.cpp}::AllocLpsz (const WCHAR *lpwsz, int cchIn)
 
LPSTR anonymous_namespace{activex.cpp}::BstrToLpsz (BSTR bstr)
 
BSTR anonymous_namespace{activex.cpp}::LpszToBstr (LPSTR lpsz)
 
template<class T , class U >
T anonymous_namespace{activex.cpp}::aligndown (const T &X, const U &align)
 
template<class T , class U >
T anonymous_namespace{activex.cpp}::alignup (const T &X, const U &align)
 
uint8anonymous_namespace{activex.cpp}::win32_convert_scanlines (int width, int height, int bitcount, int fromalign, int toalign, const uint8 *data, uint8 **buffer)
 
HBITMAP anonymous_namespace{activex.cpp}::win32_create_dib (LONG width, LONG height, WORD bitcount, const BYTE *data)
 
HBRUSH anonymous_namespace{activex.cpp}::win32_create_brush (BRUSH *brush, COLORREF fgcolour)
 
void ui_begin_update (RDPCLIENT *This)
 
void ui_end_update (RDPCLIENT *This)
 
void ui_set_clip (RDPCLIENT *This, int x, int y, int cx, int cy)
 
void ui_reset_clip (RDPCLIENT *This)
 
void ui_destblt (RDPCLIENT *This, uint8 opcode, int x, int y, int cx, int cy)
 
void ui_memblt (RDPCLIENT *This, uint8 opcode, int x, int y, int cx, int cy, HBITMAP src, int srcx, int srcy)
 
void ui_patblt (RDPCLIENT *This, uint8 opcode, int x, int y, int cx, int cy, BRUSH *brush, int bgcolour, int fgcolour)
 
void ui_screenblt (RDPCLIENT *This, uint8 opcode, int x, int y, int cx, int cy, int srcx, int srcy)
 
void ui_triblt (RDPCLIENT *This, uint8 opcode, int x, int y, int cx, int cy, HBITMAP src, int srcx, int srcy, BRUSH *brush, int bgcolour, int fgcolour)
 
void ui_paint_bitmap (RDPCLIENT *This, int x, int y, int cx, int cy, int width, int height, uint8 *data)
 
void ui_ellipse (RDPCLIENT *This, uint8 opcode, uint8 fillmode, int x, int y, int cx, int cy, BRUSH *brush, int bgcolour, int fgcolour)
 
void ui_line (RDPCLIENT *This, uint8 opcode, int startx, int starty, int endx, int endy, PEN *pen)
 
void ui_polygon (RDPCLIENT *This, uint8 opcode, uint8 fillmode, POINT *point, int npoints, BRUSH *brush, int bgcolour, int fgcolour)
 
void ui_polyline (RDPCLIENT *This, uint8 opcode, POINT *points, int npoints, PEN *pen)
 
void ui_rect (RDPCLIENT *This, int x, int y, int cx, int cy, int colour)
 
void ui_draw_text (RDPCLIENT *This, uint8 font, uint8 flags, uint8 opcode, int mixmode, int x, int y, int clipx, int clipy, int clipcx, int clipcy, int boxx, int boxy, int boxcx, int boxcy, BRUSH *brush, int bgcolour, int fgcolour, uint8 *text, uint8 length)
 
void ui_desktop_save (RDPCLIENT *This, uint32 offset, int x, int y, int cx, int cy)
 
void ui_desktop_restore (RDPCLIENT *This, uint32 offset, int x, int y, int cx, int cy)
 
HBITMAP ui_create_bitmap (RDPCLIENT *This, int width, int height, uint8 *data)
 
void ui_destroy_bitmap (RDPCLIENT *, HBITMAP bmp)
 
HCOLOURMAP ui_create_colourmap (RDPCLIENT *, COLOURMAP *colours)
 
void ui_set_colourmap (RDPCLIENT *This, HCOLOURMAP map)
 
HCURSOR ui_create_cursor (RDPCLIENT *This, unsigned int x, unsigned int y, int width, int height, uint8 *andmask, uint8 *xormask)
 
void ui_destroy_cursor (RDPCLIENT *, HCURSOR cursor)
 
HGLYPH ui_create_glyph (RDPCLIENT *This, int width, int height, const uint8 *data)
 
void ui_destroy_glyph (RDPCLIENT *, HGLYPH glyph)
 
void ui_move_pointer (RDPCLIENT *This, int x, int y)
 
void ui_set_cursor (RDPCLIENT *This, HCURSOR cursor)
 
void ui_set_null_cursor (RDPCLIENT *This)
 
void ui_resize_window (RDPCLIENT *This)
 
void ui_bell (RDPCLIENT *)
 
int ui_select (RDPCLIENT *This, SOCKET rdp_socket)
 
BOOL event_pubkey (RDPCLIENT *This, unsigned char *key, unsigned int key_size)
 
void event_logon (RDPCLIENT *This)
 
BOOL event_redirect (RDPCLIENT *This, uint32 flags, uint32 server_len, wchar_t *server, uint32 cookie_len, char *cookie, uint32 username_len, wchar_t *username, uint32 domain_len, wchar_t *domain, uint32 password_len, wchar_t *password)
 
STDAPI DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv)
 
STDAPI DllCanUnloadNow (void)
 
 STDAPI_ (ULONG) DllGetTscCtlVer(void)
 
DWORD WINAPI DllMain (HINSTANCE hInstance, DWORD fdwReason, LPVOID lpvReserved)
 

Variables

LONG anonymous_namespace{activex.cpp}::g_moduleRefCount = 0
 

Macro Definition Documentation

◆ SEALED_

Definition at line 295 of file activex.cpp.

Function Documentation

◆ DllCanUnloadNow()

STDAPI DllCanUnloadNow ( void  )

Definition at line 6051 of file activex.cpp.

6052{
6053 return canUnloadServer() ? S_OK : S_FALSE;
6054}
#define S_OK
Definition: intsafe.h:52
#define S_FALSE
Definition: winerror.h:2357

◆ DllGetClassObject()

STDAPI DllGetClassObject ( REFCLSID  rclsid,
REFIID  riid,
LPVOID ppv 
)

Definition at line 6011 of file activex.cpp.

6012{
6013 unsigned libindex;
6014
6015 if
6016 (
6017 rclsid == MSTSCLib::CLSID_MsTscAx ||
6018 rclsid == MSTSCLib::CLSID_MsRdpClient ||
6019 rclsid == MSTSCLib::CLSID_MsRdpClient2 ||
6020 rclsid == MSTSCLib::CLSID_MsRdpClient3 ||
6021 rclsid == MSTSCLib::CLSID_MsRdpClient4
6022 )
6023 libindex = 1;
6024 else if
6025 (
6026 rclsid == MSTSCLib_Redist::CLSID_MsTscAx ||
6027 rclsid == MSTSCLib_Redist::CLSID_MsRdpClient ||
6028 rclsid == MSTSCLib_Redist::CLSID_MsRdpClient2 ||
6029 rclsid == MSTSCLib_Redist::CLSID_MsRdpClient3 // ||
6030 // rclsid != MSTSCLib::CLSID_MsRdpClient4
6031 )
6032 libindex = 2;
6033 else
6035
6036 ClassFactory * p = new ClassFactory(rclsid, libindex);
6037
6038 if(p == NULL)
6039 return E_OUTOFMEMORY;
6040
6042
6043 p->Release();
6044
6045 if(FAILED(hr))
6046 return hr;
6047
6048 return S_OK;
6049}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define NULL
Definition: types.h:112
GLfloat GLfloat p
Definition: glext.h:8902
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
ULONG Release()
#define FAILED(hr)
Definition: intsafe.h:51
HRESULT hr
Definition: shlfolder.c:183
#define CLASS_E_CLASSNOTAVAILABLE
Definition: winerror.h:2663

◆ DllMain()

DWORD WINAPI DllMain ( HINSTANCE  hInstance,
DWORD  fdwReason,
LPVOID  lpvReserved 
)

Definition at line 6062 of file activex.cpp.

6063{
6065
6066 switch(fdwReason)
6067 {
6068 case DLL_PROCESS_ATTACH:
6069 {
6071
6072 if(!RdpClient::Startup())
6073 return FALSE;
6074 }
6075
6076 break;
6077
6078 case DLL_PROCESS_DETACH:
6079 {
6080 // Process is terminating, no need to clean up
6081 if(lpvReserved)
6082 break;
6083
6084 RdpClient::Shutdown();
6085 }
6086
6087 break;
6088 }
6089
6090 return TRUE;
6091}
HINSTANCE hInstance
Definition: charmap.c:19
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define assert(x)
Definition: debug.h:53
static IN DWORD IN LPVOID lpvReserved

◆ event_logon()

void event_logon ( RDPCLIENT This)

Definition at line 5908 of file activex.cpp.

5909{
5910 RdpClient::OnLogon(This);
5911}

Referenced by process_data_pdu().

◆ event_pubkey()

BOOL event_pubkey ( RDPCLIENT This,
unsigned char key,
unsigned int  key_size 
)

Definition at line 5900 of file activex.cpp.

5901{
5902 if(!RdpClient::OnPublicKey(This, key, key_size))
5903 return FALSE;
5904 else
5905 return TRUE;
5906}
Definition: copy.c:22

◆ event_redirect()

BOOL event_redirect ( RDPCLIENT This,
uint32  flags,
uint32  server_len,
wchar_t server,
uint32  cookie_len,
char cookie,
uint32  username_len,
wchar_t username,
uint32  domain_len,
wchar_t domain,
uint32  password_len,
wchar_t password 
)

Definition at line 5913 of file activex.cpp.

5914{
5915 if
5916 (
5917 !RdpClient::OnRedirect
5918 (
5919 This,
5920 flags,
5921 server_len,
5922 server,
5923 cookie_len,
5924 cookie,
5925 username_len,
5926 username,
5927 domain_len,
5928 domain,
5929 password_len,
5930 password
5931 )
5932 )
5933 return FALSE;
5934 else
5935 return TRUE;
5936}
GLbitfield flags
Definition: glext.h:7161
static WCHAR password[]
Definition: url.c:33
static WCHAR username[]
Definition: url.c:32
Definition: cookie.c:34
Definition: cookie.c:42
static rfbScreenInfoPtr server
Definition: vnc.c:74

Referenced by process_redirect_pdu().

◆ STDAPI_()

STDAPI_ ( ULONG  )

Definition at line 6056 of file activex.cpp.

6057{
6058 // BUGBUG: don't hardcode this
6059 return 0x05020ECE; // 5.2.3790
6060}

◆ ui_begin_update()

void ui_begin_update ( RDPCLIENT This)

Definition at line 5622 of file activex.cpp.

5623{
5624 RdpClient::InnerToOuter(This)->GetUI()->Display_BeginUpdate();
5625}

◆ ui_bell()

void ui_bell ( RDPCLIENT This)

Definition at line 5889 of file activex.cpp.

5890{
5891 MessageBeep(0);
5892}
BOOL WINAPI MessageBeep(_In_ UINT uType)

◆ ui_create_bitmap()

HBITMAP ui_create_bitmap ( RDPCLIENT This,
int  width,
int  height,
uint8 data 
)

Definition at line 5762 of file activex.cpp.

5763{
5764 return win32_create_dib(width, height, This->server_depth, data);
5765}
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
GLint GLint GLsizei width
Definition: gl.h:1546
HBITMAP win32_create_dib(LONG width, LONG height, WORD bitcount, const BYTE *data)
Definition: activex.cpp:192

◆ ui_create_colourmap()

HCOLOURMAP ui_create_colourmap ( RDPCLIENT This,
COLOURMAP colours 
)

Definition at line 5773 of file activex.cpp.

5774{
5775 return NULL;
5776}

◆ ui_create_cursor()

HCURSOR ui_create_cursor ( RDPCLIENT This,
unsigned int  x,
unsigned int  y,
int  width,
int  height,
uint8 andmask,
uint8 xormask 
)

Definition at line 5784 of file activex.cpp.

5785{
5786 uint8 * andbuf = NULL;
5787 uint8 * xorbuf = NULL;
5788
5789 uint8 * andbits = win32_convert_scanlines(width, - height, 1, 2, 4, andmask, &andbuf);
5790 uint8 * xorbits = win32_convert_scanlines(width, height, 24, 2, 4, xormask, &xorbuf);
5791
5792 HBITMAP hbmMask = CreateBitmap(width, height, 1, 1, andbits);
5793 HBITMAP hbmColor = win32_create_dib(width, height, 24, xorbits);
5794
5795 ICONINFO iconinfo;
5796 iconinfo.fIcon = FALSE;
5797 iconinfo.xHotspot = x;
5798 iconinfo.yHotspot = y;
5799 iconinfo.hbmMask = hbmMask;
5800 iconinfo.hbmColor = hbmColor;
5801
5802 HICON icon = CreateIconIndirect(&iconinfo);
5803
5804 if(icon == NULL)
5805 error("CreateIconIndirect %dx%d failed\n", width, height);
5806
5807 if(andbuf)
5808 delete[] andbuf;
5809
5810 if(xorbuf)
5811 delete[] xorbuf;
5812
5813 DeleteObject(hbmMask);
5814 DeleteObject(hbmColor);
5815
5816 return icon;
5817}
unsigned char uint8
Definition: types.h:28
pKey DeleteObject()
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
#define error(str)
Definition: mkdosfs.c:1605
static HBITMAP
Definition: button.c:44
static HICON
Definition: imagelist.c:84
uint8 * win32_convert_scanlines(int width, int height, int bitcount, int fromalign, int toalign, const uint8 *data, uint8 **buffer)
Definition: activex.cpp:141
DWORD yHotspot
Definition: winuser.h:3115
BOOL fIcon
Definition: winuser.h:3113
DWORD xHotspot
Definition: winuser.h:3114
HBITMAP hbmColor
Definition: winuser.h:3117
HBITMAP hbmMask
Definition: winuser.h:3116
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
HICON WINAPI CreateIconIndirect(_In_ PICONINFO)
Definition: cursoricon.c:2550

◆ ui_create_glyph()

HGLYPH ui_create_glyph ( RDPCLIENT This,
int  width,
int  height,
const uint8 data 
)

Definition at line 5825 of file activex.cpp.

5826{
5827 uint8 * databuf = NULL;
5828 uint8 * databits = win32_convert_scanlines(width, height, 1, 1, 2, data, &databuf);
5829
5830 HBITMAP hbm = CreateBitmap(width, height, 1, 1, databits);
5831
5832 if(databuf)
5833 delete[] databuf;
5834
5835 const uint8 * p = data;
5836 int stride = alignup(alignup(width, 8) / 8, 1);
5837
5838#ifdef _DEBUG
5839 printf("glyph %p\n", hbm);
5840
5841 for(int i = 0; i < height; ++ i, p += stride)
5842 {
5843 for(int j = 0; j < width; ++ j)
5844 {
5845 int B = p[j / 8];
5846 int b = 8 - j % 8 - 1;
5847
5848 if(B & (1 << b))
5849 fputs("##", stdout);
5850 else
5851 fputs("..", stdout);
5852 }
5853
5854 fputc('\n', stdout);
5855 }
5856
5857 fputc('\n', stdout);
5858#endif
5859
5860 return hbm;
5861}
Definition: ehthrow.cxx:54
#define printf
Definition: freeldr.h:94
GLsizei stride
Definition: glext.h:5848
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
Definition: glfuncs.h:250
#define stdout
Definition: stdio.h:99
_Check_return_opt_ _CRTIMP int __cdecl fputs(_In_z_ const char *_Str, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl fputc(_In_ int _Ch, _Inout_ FILE *_File)
T alignup(const T &X, const U &align)
Definition: activex.cpp:135
_In_ HBITMAP hbm
Definition: ntgdi.h:2776

◆ ui_desktop_restore()

void ui_desktop_restore ( RDPCLIENT This,
uint32  offset,
int  x,
int  y,
int  cx,
int  cy 
)

Definition at line 5755 of file activex.cpp.

5756{
5757 RdpClient::InnerToOuter(This)->GetUI()->Display_RestoreDesktop(offset, x, y, cx, cy);
5758}
GLintptr offset
Definition: glext.h:5920
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:586
_Out_opt_ int * cx
Definition: commctrl.h:585

◆ ui_desktop_save()

void ui_desktop_save ( RDPCLIENT This,
uint32  offset,
int  x,
int  y,
int  cx,
int  cy 
)

Definition at line 5750 of file activex.cpp.

5751{
5752 RdpClient::InnerToOuter(This)->GetUI()->Display_SaveDesktop(offset, x, y, cx, cy);
5753}

◆ ui_destblt()

void ui_destblt ( RDPCLIENT This,
uint8  opcode,
int  x,
int  y,
int  cx,
int  cy 
)

Definition at line 5643 of file activex.cpp.

5644{
5645 RdpClient::InnerToOuter(This)->GetUI()->Display_DestBlt(opcode, x, y, cx, cy);
5646}

◆ ui_destroy_bitmap()

void ui_destroy_bitmap ( RDPCLIENT This,
HBITMAP  bmp 
)

Definition at line 5767 of file activex.cpp.

5768{
5770}
BITMAP bmp
Definition: alphablend.c:62

◆ ui_destroy_cursor()

void ui_destroy_cursor ( RDPCLIENT This,
HCURSOR  cursor 
)

Definition at line 5819 of file activex.cpp.

5820{
5822}
const char cursor[]
Definition: icontest.c:13
BOOL WINAPI DestroyIcon(_In_ HICON)
Definition: cursoricon.c:2022

◆ ui_destroy_glyph()

void ui_destroy_glyph ( RDPCLIENT This,
HGLYPH  glyph 
)

Definition at line 5863 of file activex.cpp.

5864{
5865 DeleteObject(glyph);
5866}

◆ ui_draw_text()

void ui_draw_text ( RDPCLIENT This,
uint8  font,
uint8  flags,
uint8  opcode,
int  mixmode,
int  x,
int  y,
int  clipx,
int  clipy,
int  clipcx,
int  clipcy,
int  boxx,
int  boxy,
int  boxcx,
int  boxcy,
BRUSH brush,
int  bgcolour,
int  fgcolour,
uint8 text,
uint8  length 
)

Definition at line 5701 of file activex.cpp.

5724{
5725 RdpClient::InnerToOuter(This)->GetUI()->Display_DrawText
5726 (
5727 font,
5728 flags,
5729 opcode,
5730 mixmode,
5731 x,
5732 y,
5733 clipx,
5734 clipy,
5735 clipcx,
5736 clipcy,
5737 boxx,
5738 boxy,
5739 boxcx,
5740 boxcy,
5741 brush,
5742 bgcolour,
5743 fgcolour,
5744 text,
5745 length
5746 );
5747}
const WCHAR * text
Definition: package.c:1799
GLuint GLsizei GLsizei * length
Definition: glext.h:6040
Definition: mk_font.cpp:20

◆ ui_ellipse()

void ui_ellipse ( RDPCLIENT This,
uint8  opcode,
uint8  fillmode,
int  x,
int  y,
int  cx,
int  cy,
BRUSH brush,
int  bgcolour,
int  fgcolour 
)

Definition at line 5674 of file activex.cpp.

5675{
5676 // TODO
5677// RdpClient::InnerToOuter(This)->GetUI()->Display_Ellipse(opcode, fillmode, x, y, cx, cy, brush, bgcolour, fgcolour);
5678}

◆ ui_end_update()

void ui_end_update ( RDPCLIENT This)

Definition at line 5627 of file activex.cpp.

5628{
5629 RdpClient::InnerToOuter(This)->GetUI()->Display_EndUpdate();
5630}

◆ ui_line()

void ui_line ( RDPCLIENT This,
uint8  opcode,
int  startx,
int  starty,
int  endx,
int  endy,
PEN pen 
)

Definition at line 5680 of file activex.cpp.

5681{
5682 RdpClient::InnerToOuter(This)->GetUI()->Display_Line(opcode, startx, starty, endx, endy, pen);
5683}

◆ ui_memblt()

void ui_memblt ( RDPCLIENT This,
uint8  opcode,
int  x,
int  y,
int  cx,
int  cy,
HBITMAP  src,
int  srcx,
int  srcy 
)

Definition at line 5648 of file activex.cpp.

5649{
5650 RdpClient::InnerToOuter(This)->GetUI()->Display_MemBlt(opcode, x, y, cx, cy, src, srcx, srcy);
5651}
GLenum src
Definition: glext.h:6340

◆ ui_move_pointer()

void ui_move_pointer ( RDPCLIENT This,
int  x,
int  y 
)

Definition at line 5869 of file activex.cpp.

5870{
5871 // TODO
5872}

◆ ui_paint_bitmap()

void ui_paint_bitmap ( RDPCLIENT This,
int  x,
int  y,
int  cx,
int  cy,
int  width,
int  height,
uint8 data 
)

Definition at line 5668 of file activex.cpp.

5669{
5670 RdpClient::InnerToOuter(This)->GetUI()->Display_PaintBitmap(x, y, cx, cy, width, height, data);
5671}

◆ ui_patblt()

void ui_patblt ( RDPCLIENT This,
uint8  opcode,
int  x,
int  y,
int  cx,
int  cy,
BRUSH brush,
int  bgcolour,
int  fgcolour 
)

Definition at line 5653 of file activex.cpp.

5654{
5655 RdpClient::InnerToOuter(This)->GetUI()->Display_PatBlt(opcode, x, y, cx, cy, brush, bgcolour, fgcolour);
5656}

◆ ui_polygon()

void ui_polygon ( RDPCLIENT This,
uint8  opcode,
uint8  fillmode,
POINT point,
int  npoints,
BRUSH brush,
int  bgcolour,
int  fgcolour 
)

Definition at line 5685 of file activex.cpp.

5686{
5687 RdpClient::InnerToOuter(This)->GetUI()->Display_Polygon(opcode, fillmode, point, npoints, brush, bgcolour, fgcolour);
5688}
POINTL point
Definition: edittest.c:50

◆ ui_polyline()

void ui_polyline ( RDPCLIENT This,
uint8  opcode,
POINT points,
int  npoints,
PEN pen 
)

Definition at line 5690 of file activex.cpp.

5691{
5692 RdpClient::InnerToOuter(This)->GetUI()->Display_Polyline(opcode, points, npoints, pen);
5693}
GLsizei const GLfloat * points
Definition: glext.h:8112

◆ ui_rect()

void ui_rect ( RDPCLIENT This,
int  x,
int  y,
int  cx,
int  cy,
int  colour 
)

Definition at line 5695 of file activex.cpp.

5696{
5697 RdpClient::InnerToOuter(This)->GetUI()->Display_Rect(x, y, cx, cy, colour);
5698}

◆ ui_reset_clip()

void ui_reset_clip ( RDPCLIENT This)

Definition at line 5637 of file activex.cpp.

5638{
5639 RdpClient::InnerToOuter(This)->GetUI()->Display_ResetClip();
5640}

◆ ui_resize_window()

void ui_resize_window ( RDPCLIENT This)

Definition at line 5885 of file activex.cpp.

5886{
5887}

◆ ui_screenblt()

void ui_screenblt ( RDPCLIENT This,
uint8  opcode,
int  x,
int  y,
int  cx,
int  cy,
int  srcx,
int  srcy 
)

Definition at line 5658 of file activex.cpp.

5659{
5660 RdpClient::InnerToOuter(This)->GetUI()->Display_ScreenBlt(opcode, x, y, cx, cy, srcx, srcy);
5661}

◆ ui_select()

int ui_select ( RDPCLIENT This,
SOCKET  rdp_socket 
)

Definition at line 5894 of file activex.cpp.

5895{
5896 return SleepEx(0, TRUE) == WAIT_IO_COMPLETION;
5897}
DWORD WINAPI SleepEx(IN DWORD dwMilliseconds, IN BOOL bAlertable)
Definition: synch.c:802
#define WAIT_IO_COMPLETION
Definition: winbase.h:411

◆ ui_set_clip()

void ui_set_clip ( RDPCLIENT This,
int  x,
int  y,
int  cx,
int  cy 
)

Definition at line 5632 of file activex.cpp.

5633{
5634 RdpClient::InnerToOuter(This)->GetUI()->Display_SetClip(x, y, cx, cy);
5635}

◆ ui_set_colourmap()

void ui_set_colourmap ( RDPCLIENT This,
HCOLOURMAP  map 
)

Definition at line 5778 of file activex.cpp.

5779{
5780 // TODO
5781}

◆ ui_set_cursor()

void ui_set_cursor ( RDPCLIENT This,
HCURSOR  cursor 
)

Definition at line 5874 of file activex.cpp.

5875{
5876 // TODO
5877}

◆ ui_set_null_cursor()

void ui_set_null_cursor ( RDPCLIENT This)

Definition at line 5879 of file activex.cpp.

5880{
5881 // TODO
5882}

◆ ui_triblt()

void ui_triblt ( RDPCLIENT This,
uint8  opcode,
int  x,
int  y,
int  cx,
int  cy,
HBITMAP  src,
int  srcx,
int  srcy,
BRUSH brush,
int  bgcolour,
int  fgcolour 
)

Definition at line 5663 of file activex.cpp.

5664{
5665 RdpClient::InnerToOuter(This)->GetUI()->Display_TriBlt(opcode, x, y, cx, cy, src, srcx, srcy, brush, bgcolour, fgcolour);
5666}