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.

82 lines
1.7 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
  16. GetSystemDir(
  17. IN WCHAR ** ppwszSystemDir
  18. );
  19. HRESULT GetMachineName(
  20. WCHAR * pwszPath,
  21. WCHAR wszMachineName[MAX_COMPUTERNAME_LENGTH+1]
  22. #ifdef DFSACTIVATION
  23. ,BOOL bDoDfsConversion
  24. #endif
  25. );
  26. HRESULT GetPathForServer(
  27. WCHAR * pwszPath,
  28. WCHAR wszPathForServer[MAX_PATH+1],
  29. WCHAR ** ppwszPathForServer );
  30. BOOL
  31. FindExeComponent(
  32. IN WCHAR * pwszString,
  33. IN WCHAR * pwszDelimiters,
  34. OUT WCHAR ** ppwszStart,
  35. OUT WCHAR ** ppwszEnd
  36. );
  37. #if 1 // #ifndef _CHICAGO_
  38. BOOL HexStringToDword(
  39. LPCWSTR FAR& lpsz,
  40. DWORD FAR& Value,
  41. int cDigits,
  42. WCHAR chDelim);
  43. BOOL GUIDFromString(LPCWSTR lpsz, LPGUID pguid);
  44. #endif
  45. #ifdef _CHICAGO_
  46. BOOL GUIDFromString(LPCSTR lpsz, LPGUID pguid);
  47. #endif
  48. RPC_STATUS NegotiateDCOMVersion(COMVERSION *pVersion);
  49. //
  50. // These lock definitions are only used by the ROT code and should
  51. // be replaced with objex style locks.
  52. //
  53. #if 1 // #ifndef _CHICAGO_
  54. typedef class CLock2 CPortableLock;
  55. typedef class CMutexSem2 CDynamicPortableMutex;
  56. typedef class COleStaticMutexSem CStaticPortableMutex;
  57. typedef class COleStaticLock CStaticPortableLock;
  58. #else
  59. typedef class CLockSmMutex CPortableLock;
  60. class CDynamicPortableMutex : public CSmMutex
  61. {
  62. public:
  63. inline VOID Request()
  64. {
  65. Get();
  66. }
  67. };
  68. typedef CDynamicPortableMutex CStaticPortableMutex;
  69. #endif