Source code of Windows XP (NT5)
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.

50 lines
989 B

  1. #include <stdinc.h>
  2. BOOL
  3. W32::CreateDirectoryW(
  4. PCWSTR lpPathName,
  5. LPSECURITY_ATTRIBUTES lpSecurityAttributes,
  6. DWORD &rdwWin32Error,
  7. ULONG cELEV,
  8. va_list ap
  9. )
  10. {
  11. rdwWin32Error = ERROR_SUCCESS;
  12. BOOL fSuccess = ::CreateDirectoryW(lpPathName, lpSecurityAttributes);
  13. if ((!fSuccess) && (cELEV != 0))
  14. {
  15. if (::IsLastErrorInList(cELEV, ap, rdwWin32Error))
  16. fSuccess = TRUE;
  17. }
  18. return fSuccess;
  19. }
  20. BOOL
  21. W32::CreateDirectoryW(
  22. PCWSTR lpPathName,
  23. LPSECURITY_ATTRIBUTES lpSecurityAttributes,
  24. DWORD &rdwWin32Error,
  25. ULONG cELEV,
  26. ...
  27. )
  28. {
  29. va_list ap;
  30. BOOL f;
  31. va_start(ap, cELEV);
  32. f = W32::CreateDirectoryW(lpPathName, lpSecurityAttributes, rdwWin32Error, cELEV, ap);
  33. va_end(ap);
  34. return f;
  35. }
  36. BOOL
  37. W32::CreateDirectoryW(
  38. PCWSTR lpPathName,
  39. LPSECURITY_ATTRIBUTES lpSecurityAttributes
  40. )
  41. {
  42. DWORD x;
  43. return W32::CreateDirectoryW(lpPathName, lpSecurityAttributes, x, 0);
  44. }