Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
624 B

  1. #include <windows.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <tchar.h>
  5. VOID
  6. GetCommandLineArgs(
  7. LPDWORD NumberOfArguments,
  8. LPWSTR Arguments[]
  9. );
  10. //
  11. // API calls to create and query symbolic links and to create hard links.
  12. //
  13. BOOL
  14. CreateSymbolicLinkW(
  15. LPCWSTR lpFileName,
  16. LPCWSTR lpLinkValue,
  17. BOOLEAN IsMountPoint,
  18. LPSECURITY_ATTRIBUTES lpSecurityAttributes
  19. );
  20. BOOL
  21. SetSymbolicLinkW(
  22. LPCWSTR lpFileName,
  23. LPCWSTR lpLinkValue
  24. );
  25. DWORD
  26. QuerySymbolicLinkW(
  27. LPCWSTR lpExistingName,
  28. LPWSTR lpBuffer,
  29. DWORD nBufferLength
  30. );