What does it mean?
vncDesktopThread.cpp line 676
switch (m_desktop->m_current_monitor)
{
case MULTI_MON_PRIMARY:
break;
case MULTI_MON_SECOND:
break;
case MULTI_MON_THIRD:
break;
}
Search found 3 matches
- 2020-07-07 23:15
- Forum: Developer discussions (mainly user-mode)
- Topic: Code quality
- Replies: 1
- Views: 47820
- 2020-07-06 17:01
- Forum: Developer discussions (mainly user-mode)
- Topic: Code quality
- Replies: 1
- Views: 51554
Code quality
Is there a reason to call GetDIBits twice in the vncdesktop.cpp file?
line 1118
result = ::GetDIBits(m_hmemdc, m_membitmap, 0, 1, NULL, &m_bminfo.bmi, DIB_RGB_COLORS);
if (result == 0) {
vnclog.Print(LL_INTERR, VNCLOG("unable to get display format\n"));
return ERROR_DESKTOP_NO_DISPLAYFORMAT ...
line 1118
result = ::GetDIBits(m_hmemdc, m_membitmap, 0, 1, NULL, &m_bminfo.bmi, DIB_RGB_COLORS);
if (result == 0) {
vnclog.Print(LL_INTERR, VNCLOG("unable to get display format\n"));
return ERROR_DESKTOP_NO_DISPLAYFORMAT ...
- 2020-07-03 19:46
- Forum: Developer discussions (mainly user-mode)
- Topic: LoadLibrary
- Replies: 1
- Views: 47002
LoadLibrary
Hi,
The user32.dll library is loaded twice in the constructor vncDesktopThread. What is a cause of it?
vncDesktopThread() {
m_returnsig = NULL;
user32 = LoadLibrary("user32.dll"); // here
MyGetCursorInfo=NULL;
if (user32) MyGetCursorInfo=(_GetCursorInfo )GetProcAddress(user32, "GetCursorInfo ...
The user32.dll library is loaded twice in the constructor vncDesktopThread. What is a cause of it?
vncDesktopThread() {
m_returnsig = NULL;
user32 = LoadLibrary("user32.dll"); // here
MyGetCursorInfo=NULL;
if (user32) MyGetCursorInfo=(_GetCursorInfo )GetProcAddress(user32, "GetCursorInfo ...