/*********************************************************** This program tries to prevent doomed update attempts on windows by testing whether all files concerned can be opened with exclusive read/write access. This file is written in 2022 by Siep Kroonenberg and is placed in the Public Domain. ***********************************************************/ #include #include int main( int argc, char *argv[] ) { HANDLE hf; char buf[MAX_PATH]; int ok = 1; int chatty = 0; int i; if( argc > 1 ) { for( i=1;i