Celebrating the 22th anniversary of the UltraVNC: https://forum.uvnc.com/viewtopic.php?t=38031
Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864
Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc
Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864
Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc
Error: Can't locate WTSGetActiveConsoleSessionId in kernel32
Error: Can't locate WTSGetActiveConsoleSessionId in kernel32
The latest version of the UtraVnc can't be started under my Win2k Pro. The error is the following:
Error: Can't locate WTSGetActiveConsoleSessionId in kernel32.dll.
Error: Can't locate WTSGetActiveConsoleSessionId in kernel32.dll.
- Rudi De Vos
- Admin & Developer
- Posts: 6883
- Joined: 2004-04-23 10:21
- Contact:
- Rudi De Vos
- Admin & Developer
- Posts: 6883
- Joined: 2004-04-23 10:21
- Contact:
loadlibrary and getprocadress does not find the function
in kernel32.dll
All other wts functions can be loaded dynamic, this one failes.
Are you sure the function is in kernel32, MS doc says, but it just doen't work.
Spend last weeks more then time on it, and finaly made a dubble compile.
If you can find the correct syntax, please share.
in kernel32.dll
All other wts functions can be loaded dynamic, this one failes.
Are you sure the function is in kernel32, MS doc says, but it just doen't work.
Spend last weeks more then time on it, and finaly made a dubble compile.
If you can find the correct syntax, please share.
Maybe my proposal is stupid, but why not replace the compile time with a runtime check for XP?
Code: Select all
#ifdef _XP
Code: Select all
if (isXP())
- Rudi De Vos
- Admin & Developer
- Posts: 6883
- Joined: 2004-04-23 10:21
- Contact:
2 Rudi De Vos
Hmm... The standard code works fine for me (at least in one XP box I've founded for testing). Here is the code:
At least the _imp_WTSGetActiveConsoleSessionId is not NULL (and callable) after GetProcAddress.
May be it's a security issue? Have you checked the code from under Admin account?
Hmm... The standard code works fine for me (at least in one XP box I've founded for testing). Here is the code:
Code: Select all
hLib = LoadLibrary("kernel32.dll");
if (NULL == hLib)
{
MessageBox(NULL, "Can't load kernel32.dll", "Error", MB_OK | MB_ICONERROR);
}
else
{
MessageBox(NULL, "kernel32.dll is loaded ok", "Info", MB_OK | MB_ICONEXCLAMATION);
PVOID _imp_WTSGetActiveConsoleSessionId = GetProcAddress(hLib, "WTSGetActiveConsoleSessionId");
if (NULL == _imp_WTSGetActiveConsoleSessionId)
{
MessageBox(NULL, "Can't load WTSGetActiveConsoleSessionId from kernel32.dll", "Error", MB_OK | MB_ICONERROR);
}
else
{
MessageBox(NULL, "WTSGetActiveConsoleSessionId is loaded from kernel32.dll ok", "Info", MB_OK | MB_ICONEXCLAMATION);
}
May be it's a security issue? Have you checked the code from under Admin account?
- Rudi De Vos
- Admin & Developer
- Posts: 6883
- Joined: 2004-04-23 10:21
- Contact:
- Rudi De Vos
- Admin & Developer
- Posts: 6883
- Joined: 2004-04-23 10:21
- Contact: