Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.

This commit is contained in:
Colin Finck 2017-10-03 07:45:34 +00:00
parent b94e2d8ca0
commit c2c66aff7d
24198 changed files with 0 additions and 37285 deletions

View file

@ -0,0 +1,5 @@
list(APPEND SOURCE movefile.c movefile.rc)
add_executable(movefile ${SOURCE})
set_module_type(movefile win32cui UNICODE)
add_importlibs(movefile msvcrt kernel32 ntdll)
add_cd_file(TARGET movefile DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,32 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS pending moves operations interactions tool
* FILE: cmdutils/movefile/movefile.c
* PURPOSE: Queue move operations for next reboot
* PROGRAMMERS: Pierre Schweitzer <pierre@reactos.org>
*/
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
int
__cdecl
_tmain(int argc, const TCHAR *argv[])
{
/* We need source + target */
if (argc < 3)
{
_ftprintf(stderr, _T("Missing arguments\nUsage: %s source target\nUse \"\" as target is you want deletion\n"), argv[0]);
return 1;
}
/* If target is empty, it means deletion, so provide null pointer */
if (!MoveFileEx(argv[1], (argv[2][0] == 0 ? NULL : argv[2]), MOVEFILE_DELAY_UNTIL_REBOOT))
{
_ftprintf(stderr, _T("Error: %d\n"), GetLastError());
return 1;
}
return 0;
}

View file

@ -0,0 +1,4 @@
#define REACTOS_STR_FILE_DESCRIPTION "Queue move operations for next reboot\0"
#define REACTOS_STR_INTERNAL_NAME "movefile\0"
#define REACTOS_STR_ORIGINAL_FILENAME "movefile.exe\0"
#include <reactos/version.rc>