Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error can find "CreateSymbolicLinkW" in windows xp sp2 #3316

Closed
xiaobingcaicai opened this issue Jun 17, 2021 · 4 comments
Closed

error can find "CreateSymbolicLinkW" in windows xp sp2 #3316

xiaobingcaicai opened this issue Jun 17, 2021 · 4 comments
Labels

Comments

@xiaobingcaicai
Copy link

i read the not from https://pocoproject.org/docs/99100-ReleaseNotes.html,that say can support xp sp2,
but when i run on xp sp2,there is a error "can not find application point CreateSymbolicLinkW",
and i read the code find
#if _WIN32_WINNT >= 0x0600 && defined(SYMBOLIC_LINK_FLAG_DIRECTORY) DWORD flags = 0; if (isDirectoryImpl()) flags |= SYMBOLIC_LINK_FLAG_DIRECTORY; #ifdef SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE flags |= SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE; #endif if (CreateSymbolicLinkW(upath.c_str(), _upath.c_str(), flags) == 0) handleLastErrorImpl(_path); #else throw Poco::NotImplementedException("Symbolic link support not available in used version of the Windows SDK"); #endif

@obiltschnig
Copy link
Member

Try an older version of Poco. Current versions no longer support WinXP.

@xiaobingcaicai
Copy link
Author

Try an older version of Poco. Current versions no longer support WinXP.

emmm..
which old version will be ok?if u dont know,i have to try one by one..

@obiltschnig
Copy link
Member

File::linkTo() was added in 1.8.1, so any version before that should work.

@xiaobingcaicai
Copy link
Author

File::linkTo() was added in 1.8.1, so any version before that should work.

ok tks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants