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.

50 lines
998 B

  1. #include "termsrvpch.h"
  2. #pragma hdrstop
  3. static
  4. void
  5. WINAPI
  6. CachedGetUserFromSid(
  7. PSID pSid, PWCHAR pUserName, PULONG cbUserName
  8. )
  9. {
  10. // We should properly return the string "(unknown)" but that's
  11. // kept in utildll.dll, and we're here because utildll failed to load...
  12. //
  13. // Original function assumes that *cbUserName > 0 too
  14. pUserName[*cbUserName-1] = L'\0';
  15. }
  16. static
  17. void
  18. WINAPI
  19. CurrentDateTimeString(
  20. LPWSTR pString
  21. )
  22. {
  23. // original function doesn't check for NULL pointer either
  24. pString[0] = L'\0';
  25. }
  26. static
  27. LPWSTR
  28. WINAPI
  29. EnumerateMultiUserServers(
  30. LPWSTR pDomain
  31. )
  32. {
  33. return NULL;
  34. }
  35. //
  36. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  37. //
  38. DEFINE_PROCNAME_ENTRIES(utildll)
  39. {
  40. DLPENTRY(CachedGetUserFromSid)
  41. DLPENTRY(CurrentDateTimeString)
  42. DLPENTRY(EnumerateMultiUserServers)
  43. };
  44. DEFINE_PROCNAME_MAP(utildll)