I don't know that you can do that with VFP. Vague recollection is that it needs a callback function to complete the process. One needs to impersonate an account to get it to work.
What I've done in the past is launched a new program forcing the escalation.
HTH, Tracy
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Fred Taylor Sent: Tuesday, October 27, 2020 6:45 PM To: profoxtech@leafe.com Subject: Need way to change user to access protected folder
Anybody have a way to change the user while an app is running so I can access a protected folder? Haven't done much Windows API in quite some time.
Fred
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
[excessive quoting removed by server]