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
1.4 KiB

  1. // StdUtils.h
  2. #ifndef __STDUTILS_H_INCLUDED__
  3. #define __STDUTILS_H_INCLUDED__
  4. // returns -1, 0, +1
  5. int CompareMachineNames(LPCTSTR pszMachineName1, LPCTSTR pszMachineName2);
  6. HRESULT HrLoadOleString(UINT uStringId, OUT LPOLESTR * ppaszOleString);
  7. // Nodetype utility routines
  8. int CheckObjectTypeGUID( const GUID* pguid );
  9. int CheckObjectTypeGUID( const BSTR lpszGUID );
  10. int FilemgmtCheckObjectTypeGUID(const GUID* pguid );
  11. const GUID* GetObjectTypeGUID( int objecttype );
  12. const BSTR GetObjectTypeString( int objecttype );
  13. struct NODETYPE_GUID_ARRAYSTRUCT
  14. {
  15. GUID guid;
  16. BSTR bstr;
  17. };
  18. // You must define this struct for the ObjectType utility routines
  19. extern const
  20. struct NODETYPE_GUID_ARRAYSTRUCT* g_aNodetypeGuids;
  21. extern const int g_cNumNodetypeGuids;
  22. /* not working yet
  23. typedef VOID (*SynchronousProcessCompletionRoutine)(PVOID);
  24. HRESULT SynchronousCreateProcess(LPCTSTR cpszCommandLine,
  25. SynchronousProcessCompletionRoutine pfunc = NULL,
  26. PVOID pvFuncParams = NULL);
  27. */
  28. HRESULT SynchronousCreateProcess(
  29. HWND hWnd,
  30. LPCTSTR pszAppName,
  31. LPCTSTR pszCommandLine,
  32. LPDWORD lpdwExitCode
  33. );
  34. // allocate copy using CoTaskMemAlloc
  35. LPOLESTR CoTaskAllocString( LPCOLESTR psz );
  36. // allocate copy loaded from resource
  37. LPOLESTR CoTaskLoadString( UINT nResourceID );
  38. BOOL
  39. IsLocalComputername( IN LPCTSTR pszMachineName );
  40. #endif // ~__STDUTILS_H_INCLUDED__