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.

22 lines
1.2 KiB

  1. #pragma once
  2. #include "netconp.h"
  3. #include "upnp.h"
  4. #define UPNP_ACTION_HRESULT(lError) (UPNP_E_ACTION_SPECIFIC_BASE + (lError - FAULT_ACTION_SPECIFIC_BASE))
  5. UINT64 MakeQword2(DWORD a, DWORD b);
  6. UINT64 MakeQword4(WORD a, WORD b, WORD c, WORD d);
  7. HRESULT GetStringStateVariable(IUPnPService* pService, LPWSTR pszVariableName, BSTR* pString);
  8. HRESULT InvokeVoidAction(IUPnPService * pService, LPWSTR pszCommand, VARIANT* pOutParams);
  9. HRESULT GetConnectionName(IInternetGateway* pInternetGateway, LPTSTR* ppszConnectionName);
  10. HRESULT GetWANConnectionService(IInternetGateway* pInternetGateway, IUPnPService** ppWANConnectionService);
  11. HRESULT UnicodeToAnsi(LPWSTR pszUnicodeString, ULONG ulUnicodeStringLength, LPSTR* ppszAnsiString);
  12. HRESULT FormatTimeDuration(UINT uSeconds, LPTSTR pszTimeDuration, SIZE_T uTimeDurationLength);
  13. HRESULT FormatBytesPerSecond(UINT uBytesPerSecond, LPTSTR pszBytesPerSecond, SIZE_T uBytesPerSecondLength);
  14. HRESULT GetConnectionStatus(IUPnPService* pWANConnection, NETCON_STATUS* pStatus);
  15. HRESULT ConnectionStatusToString(NETCON_STATUS Status, LPTSTR szBuffer, int nBufferSize);
  16. HRESULT EnsureFileVersion(LPTSTR pszModule, UINT64 qwDesiredVersion);
  17. LRESULT ShowErrorDialog(HWND hParentWindow, UINT uiErrorString);