BOOL WINAPI CreateHardLink(
__in LPCTSTR lpFileName,
__in LPCTSTR lpExistingFileName,
__reserved LPSECURITY_ATTRIBUTES lpSecurityAttributes
);
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
CreateHardLink((LPCTSTR)_T("123hd.txt"), (LPCTSTR)_T("123.txt"), NULL);
return 0;
}
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |