(1) winvnc 下的 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
(2) 加载vnclang_server.dll
(3) 在myinit 函数里 设置SetOSVersion();
(4)调用VSocketSystem,初始化
VSocketSystem socksys;
if (!socksys.Initialised())
{
MessageBoxSecure(NULL, sz_ID_FAILED_INIT, szAppName, MB_OK);
return 0;
}
return 1;
界面文件在 winvnc.RC
响应 ultravnc Server Property Page 里面的Apply pushbutton ——IDC_APPLY:
在vncproperties.CPP ,里面有个
vncProperties::InitPortSettings(HWND hwnd),设置各种参数
BOOL CALLBACK vncProperties::DialogProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam ) 方法里面响应
还有个 vncServer *m_server;
m_server ,有各种函数 AddClient(),RequireMSLogon ,
_this->m_server->SetNewMSLogon(SendMessage(hNewMSLogon, BM_GETCHECK, 0, 0) == BST_CHECKED);
// Marscha@2004 - authSSP: end of change
,EnableDSMPlugin,SetQueryTimeout。SetHookings();