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.

52 lines
1.7 KiB

  1. // File: util.h
  2. #ifndef _UTIL_H_
  3. #define _UTIL_H_
  4. #include "SDKInternal.h"
  5. #include "confutil.h"
  6. int FindSzCombo(HWND hwnd, LPCTSTR pszSrc, LPTSTR pszResult);
  7. VOID AutoCompleteCombo(HWND hwnd, LPCTSTR psz);
  8. VOID AutoCompleteEdit(HWND hwnd, LPCTSTR psz);
  9. int DisplayMsg(HWND hwndParent, LPCTSTR pszMsg, UINT uType);
  10. int DisplayMsgId(HWND hwndParent, UINT id);
  11. VOID DisplayMsgErr(HWND hwndParent, UINT id, PVOID pv);
  12. VOID DisplayMsgErr(HWND hwndParent, UINT id);
  13. // Atl defines a function AtlWaitWithMessageLoop
  14. // We are not linking with ATL, but when we start,
  15. // this function can be removed
  16. HRESULT WaitWithMessageLoop( HANDLE hEvent );
  17. VOID AddToolTip(HWND hwndParent, HWND hwndCtrl, UINT_PTR idMsg);
  18. HWND CreateStaticText(HWND hwnd, INT_PTR id);
  19. HWND CreateButton(HWND hwndParent, int ids, INT_PTR id);
  20. BOOL FGetDefaultServer(LPTSTR pszServer, UINT cchMax);
  21. BOOL FCreateIlsName(LPTSTR pszDest, LPCTSTR pszEmail, int cchMax);
  22. // from nmobj.cpp
  23. HRESULT PlaceCall(LPCTSTR pszName, LPCTSTR pszAddress,
  24. NM_ADDR_TYPE addrType = NM_ADDR_UNKNOWN, DWORD dwFlags = 0,
  25. LPCTSTR pszConference = NULL, LPCTSTR pszPassword = NULL);
  26. HRESULT ExtractAddress( DWORD dwAddrType, LPTSTR szAddress, LPTSTR szExtractedAddr, int cchMax );
  27. bool IsValidAddress( DWORD dwAddrType, LPTSTR szAddr );
  28. // from dlgcall.h
  29. #define IDI_DLGCALL_NAME 0
  30. #define IDI_DLGCALL_ADDRESS 1
  31. #define IDI_MISC1 2
  32. #define IDI_DLGCALL_COMMENT IDI_MISC1
  33. #define IDI_DLGCALL_PHONENUM IDI_MISC1
  34. int DlgCallAddItem(HWND hwndList, LPCTSTR pszName, LPCTSTR pszAddress,
  35. int iImage=0, LPARAM lParam=0, int iItem=0, LPCTSTR pszComment=NULL);
  36. VOID DlgCallSetHeader(HWND hwndList, int ids);
  37. HRESULT CallToSz(LPCTSTR pcszAddress);
  38. #endif /* _UTIL_H_ */