Tech Support > Microsoft Windows > Development Resources > _WIN32_WINNT define WTS function
_WIN32_WINNT define WTS function
Posted by TheOne on May 7th, 2008


I should use WTS function in my code.
To use this function, I need to define _WIN32_WINNT as 0x501.

However, my app should also work on win 2k which is older than the
specified minimum version.
On 2k, my code won't call that function.

How should I write my code?
1. Even though the app should work on 2k, specify _WIN32_WINNT as
0x501. Then test intensively.
2. Seperate the WTS part in another dll, and call the dll.
3. Any other clever way?

TIA

--
Daewon YOON

Posted by Christian ASTOR on May 7th, 2008


TheOne wrote:

You can use dynamic calls (LoadLibrary()-GetProcAddress())

Posted by TheOne on May 8th, 2008


On 5¿ù7ÀÏ, ¿ÀÈÄ10½Ã57ºÐ, Christian ASTOR <casto...@club-internet.fr> wrote:
Many thanks (for this answer and for previous answers).That was
actually my solution no. 2. I tried that and it worked fine. Is that
the general solution for such occasions? Is there other way to solve
this kind of problem?

--
Daewon YOON