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.

76 lines
1.9 KiB

  1. /**********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1990 **/
  4. /**********************************************************************/
  5. /*
  6. * History
  7. * jonn 9/16/92 Created
  8. *
  9. * lmow32.hxx : wrappers for Win32 primitives
  10. */
  11. #ifndef _LMOW32_HXX_
  12. #define _LMOW32_HXX_
  13. /**********************************************************\
  14. NAME: ::GetW32ComputerName
  15. SYNOPSIS: loads ::GetComputerName into an NLS_STR
  16. RETURNS: APIERR
  17. HISTORY:
  18. jonn 9/16/92 Created
  19. \**********************************************************/
  20. APIERR GetW32ComputerName( NLS_STR & nls );
  21. /**********************************************************\
  22. NAME: ::GetW32UserName
  23. SYNOPSIS: loads ::GetUserName into an NLS_STR
  24. RETURNS: APIERR
  25. NOTES: Note that, contrary to the documentation, this will
  26. always get the username and never the fullname.
  27. HISTORY:
  28. jonn 9/16/92 Created
  29. \**********************************************************/
  30. APIERR GetW32UserName( NLS_STR & nls );
  31. /**********************************************************\
  32. NAME: ::GetW32UserAndDomainName
  33. SYNOPSIS: loads username and domain name into two NLS_STRs
  34. RETURNS: APIERR
  35. NOTES: Note that, contrary to the documentation, this will
  36. always get the username and never the fullname.
  37. Unlike ::GetUserName, this information is always for
  38. the calling process, and does not take impersonation
  39. into account.
  40. HISTORY:
  41. jonn 9/17/92 Created
  42. \**********************************************************/
  43. APIERR GetW32UserAndDomainName( NLS_STR & nlsUserName,
  44. NLS_STR & nlsDomainName );
  45. #endif // _LMOW32_HXX_