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.

54 lines
1.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996.
  5. //
  6. // File: actmisc.hxx
  7. //
  8. // Contents: Miscellaneous functions.
  9. //
  10. // Functions:
  11. //
  12. // History:
  13. //
  14. //--------------------------------------------------------------------------
  15. HRESULT GetMachineName(
  16. WCHAR * pwszPath,
  17. WCHAR wszMachineName[MAX_COMPUTERNAME_LENGTH+1]
  18. #ifdef DFSACTIVATION
  19. ,BOOL bDoDfsConversion
  20. #endif
  21. );
  22. HRESULT GetPathForServer(
  23. WCHAR * pwszPath,
  24. WCHAR wszPathForServer[MAX_PATH+1],
  25. WCHAR ** ppwszPathForServer );
  26. BOOL
  27. FindExeComponent(
  28. IN WCHAR * pwszString,
  29. IN WCHAR * pwszDelimiters,
  30. OUT WCHAR ** ppwszStart,
  31. OUT WCHAR ** ppwszEnd
  32. );
  33. BOOL HexStringToDword(
  34. LPCWSTR FAR& lpsz,
  35. DWORD FAR& Value,
  36. int cDigits,
  37. WCHAR chDelim);
  38. BOOL GUIDFromString(LPCWSTR lpsz, LPGUID pguid);
  39. RPC_STATUS NegotiateDCOMVersion(COMVERSION *pVersion);
  40. //
  41. // These lock definitions are only used by the ROT code and should
  42. // be replaced with objex style locks.
  43. //
  44. typedef class CLock2 CPortableLock;
  45. typedef class CMutexSem2 CDynamicPortableMutex;
  46. typedef class COleStaticMutexSem CStaticPortableMutex;
  47. typedef class COleStaticLock CStaticPortableLock;