locked
can GetTempPath be called in a COM dll which will be used in a web service RRS feed

  • Question

  • I'm developing a C++ COM dll which will be used by a web service. Somewhere in my code, I need to get windows temp path and generate some temp file there. I decided to use GetTempPath function to retrieve the path, but in the help page of this function it is mentioned that it applies to desktop apps only. I'm not sure whether I can use the function or not and if I should not use it, what's the alternative way for me to get windows temp folder path?

    Regards,

    Hamidreza Ghader

    Saturday, May 5, 2012 7:56 AM

Answers

  • yes, you can use it.

    "Desktop apps" means it's not intended for WinRT applications in Windows 8.

    As usual, the Requirements section gives more hints as to what OS supports each API.

    • Marked as answer by Hamidreza G Saturday, May 5, 2012 10:41 AM
    Saturday, May 5, 2012 10:03 AM