Relative Content

Tag Archive for c++windowswinapi

Windows force MoveFile

I’ve got a similar problem to Windows API MoveFile() not working for running exe. How can I force MoveFile regardless of whether it’s used by another program or not?

Long path aware manifest opt in on older versions of Windows

I have a c++ program for which i created manifest file and set long path aware to true. On newer versions of windows it works as expected.
But what will happen if i launch my app on older versions of windows, where long path aware is not supported. It will launch and will work as expected like there is no long paths, or it will not launch at all, or will launch and throw exception when using affected api?
Is there any problems i should be aware of?
My program doesnt use constants bigger than 260 for filesystem api and doesnt assume that long path aware should be true. My program just iterates through files using recursive_directory_iterator.

Get visited web site url’s from a PC

I am looking for a way to get web site URL’s regardless of web browser (chrome, edge etc..) with an external C# forms, windows service or console application without capturing network traffic. I tried WinPCAP, it does the job. I wonder if there is a way to do that without it.
Thanks.