$theTitle=wp_title(" - ", false); if($theTitle != "") { ?>
About Virtualization, VDI, SBC, Application Compatibility and anything else I feel like
3 Jan // php the_time('Y') ?>
Have you developed an application that accesses files and may stop because a file cannot be accessed but you need to?
Since Windows Vista it is possible to find out the name of the application which holds open a file.
And we have created a solution for you that doesn’t require a driver, nor does it need Administrator rights! Just plain user source code for you to use instantly.
We have developed a solution in Delphi that can show your user which application stalls your application. Look at these screenshots:
In fact, these dialogs are only for demonstration purposes. But you can get them in addition as a Delphi project!
The code itself is fairly easy to use. We have developed an extension to the official IFileIsInUse Interface from Microsoft.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | type IFileIsInUse = interface(IUnknown) ['{64a1cbf0-3a1a-4461-9158-376969693950}'] function GetAppName(out ppszName: LPWSTR) : HRESULT; stdcall; function GetUsage(out pfut : FILE_USAGE_TYPE) : HRESULT; stdcall; function GetCapabilities(out pdwCapFlags : DWORD) : HRESULT; stdcall; function GetSwitchToHWND(out phwnd : HWND) : HRESULT; stdcall; function CloseFile() : HRESULT; stdcall; end; IFileIsInUse2 = interface(IFileIsInUse) ['{C69C0E72-DCE2-474D-AC16-E31B77B526B3}'] function GetProcessID(out pdwProcessID : DWORD) : HRESULT; stdcall; end; |
All you have to do it to call this function provides by us:
1 | function GetFileInUseInfo(const FileName : WideString) : IFileIsInUse2; |
The name of the app is returned by the method GetAppName. And if the other application supports IFileIsInUse (call method GetCapabilities) interface you even can close the file or switch to the window.
You’ll see how it works in the demonstration project (images above) accompanied by the function GetFileInUseInfo.
Currently, we only offer a Delphi solution. C++ may available in future or when there’s enough demand for it.
Please use the Contact Form to get more information about how to obtain the solution and conditions.
1 Jan // php the_time('Y') ?>
I noticed that the monthly archives on my blog were not working. I first thought it was a problem with the .htaccess file but it was correct.
I also tried resetting the permalinks option in WordPress to default an back but that did help as well.
After some digging I was able to fix it by selecting an option in the Robots Meta plugin I use:
I selected the Disable the date-based archives option, saved settings and de-selected it again. I am not sure what it changes (the .htaccess file was not changed) nor did I check the code to see what it does but at least it’s working again!