Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: 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
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Enhancing strategy for finding the "rc4.key" in noreg?

Should you have problems with the DSM plugin, here's the place to look for help or report issues
Post Reply
Atze

Enhancing strategy for finding the "rc4.key" in no

Post by Atze »

Wouldn't it be seriously better not only to search the 'current-directory' but also the 'execution-directory' of the noreg-plugin-file?
That means, that the keyfile should also be searched exactly in the folder where the DSM-plugin is saved.

This couldbe done simple with the "GetModuleFileName"-api.

That would make it really easier for server- and client-search-strategy.

Regards,
Atze
scovel
100
100
Posts: 307
Joined: 2004-07-12 11:56
Location: CT, USA
Contact:

Post by scovel »

Atze,

Thanks for the info! I'll give it a look.

Sean
scovel
100
100
Posts: 307
Joined: 2004-07-12 11:56
Location: CT, USA
Contact:

Post by scovel »

Combined with GetModuleHandle it works great!

hModule = GetModuleHandle(pDSMName);
rc = GetModuleFileName(hModule, (LPSTR) pFilename, nSize);

Next version will include this code.

Thanks!

Sean
Atze

Post by Atze »

Thanks for implementing it!

Looking forward to it.

Regards,
Atze
scovel
100
100
Posts: 307
Joined: 2004-07-12 11:56
Location: CT, USA
Contact:

Post by scovel »

Atze,

I've implemented it and I'm in the process of testing. I should have new release candidates out this week.

Sean
Atze

Post by Atze »

Wonderful.

:wink:
Post Reply