Commit Graph

87 Commits

Author SHA1 Message Date
Gabriel Ivăncescu 0badd67e70 mshtml: Always return the custom user agent if it has been set.
This uses the undocumented MapBrowserEmulationModeToUserAgent and only the
first field of the unknown struct, but it is enough for this purpose. It
is important for some apps (e.g. FFXIV Launcher) which expects it to work
like this.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-11 21:14:53 +02:00
Gabriel Ivăncescu 735ac6eb8f urlmon: Add basic implementation of MapBrowserEmulationModeToUserAgent.
This is necessary for mshtml's navigator userAgent to work properly, since
some apps expect it.

The second argument seems to be output pointer that gets allocated (by
CoTaskMemAlloc, or something compatible with it), but the first argument
seems to be a pointer to an unknown struct, which makes it almost impossible
to guess reliably what it does by just inspecting its behavior...

Thankfully, it seems only the first DWORD field is necessary for
this. Changing it returns the user agent for that given mode, if the rest
is zeros.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-11 21:14:48 +02:00
Aaro Altonen 626e437c29 urlmon: Add URLOpenPullStreamW() stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47535
Signed-off-by: Aaro Altonen <a.altonen@hotmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-06 17:55:25 +01:00
Piotr Caban 94245fd38e urlmon: Fix CoInternetParse{Url,IUri} spec entry.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-17 15:01:23 +01:00
Dmitry Timoshkov 9f89464e0e urlmon: Add CoInternetGetBrowserProfile stub.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-20 13:18:19 +02:00
Dmitry Timoshkov 39cc121640 urlmon: Add GetIUriPriv stub.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-17 20:02:21 +02:00
Dmitry Timoshkov d622ebdb10 urlmon: Add ShouldShowIntranetWarningSecband stub.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-17 20:02:10 +02:00
André Hentschel 700010f0e6 urlmon: Fix some spec file entries.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-23 13:15:46 +01:00
André Hentschel 8f23a89683 urlmon: Fix FindMimeFromData spec file entry.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-27 16:31:43 +01:00
Jacek Caban 8f07fbcd53 urlmon: Added IsInternetESCEnabledLocal implementation. 2014-02-13 17:52:14 +01:00
Jacek Caban fa5075f7de urlmon: Added a few more forward to propsys. 2013-02-20 16:27:58 +01:00
Chae Jong Bin fee3d67030 urlmon: Add stub for FlushUrlmonZonesCache. 2012-12-27 17:15:40 +01:00
Andrew Eikum 533df157f8 urlmon: Out string parameter should be ptr, not wstr. 2012-12-06 20:31:32 +01:00
Piotr Caban 7f0b7c5ce3 urlmon: Added CopyBindInfo implementation. 2012-03-08 18:54:51 +01:00
Piotr Caban dc8467fefe urlmon: Added stub for 444 and 445 function. 2011-12-15 10:49:19 +01:00
Jacek Caban e94385c793 urlmon: Added CompareSecurityIds stub. 2011-10-31 17:50:10 +01:00
Austin English 7c527199b6 urlmon: Add a stub for RegisterMediaTypes(). 2011-09-20 16:21:41 +02:00
Piotr Caban 4646ed19ae propsys: Added partial PropVariantToGUID implementation. 2011-09-19 17:56:06 +02:00
Piotr Caban 4155136edb urlmon: Added CoInternetIsFeatureZoneElevationEnabled implementation. 2011-09-19 17:56:06 +02:00
Piotr Caban 005808cb0e urlmon: Added 111 ordinal stub. 2011-09-16 17:23:13 +02:00
Piotr Caban 4856bd1015 urlmon: Added 331 and 335 ordinal exports. 2011-09-16 17:23:13 +02:00
Piotr Caban 97b49079c3 urlmon: Added 362 ordinal export (InitVariantFromGUIDAsString). 2011-09-16 17:23:12 +02:00
Jacek Caban 01653331be urlmon: Added CoInternetIsFeatureEnabledForUrl stub implementation. 2011-06-24 08:51:28 -05:00
Jacek Caban c519159f5d urlmon: Added CreateURLMonikerEx2 implementation. 2011-06-24 08:50:15 -05:00
Thomas Mullaly 985aebd59e urlmon/tests: Added FeatureControl registry key tests. 2011-04-11 17:34:43 +02:00
Thomas Mullaly f46bd50e5d urlmon: Added stub for CoInternetGetSecurityUrlEx. 2011-01-21 12:25:52 +01:00
Austin English 967657de35 urlmon: Add stubs for ordinals 410 and 423. 2010-12-15 12:25:57 +01:00
Thomas Mullaly bc71921f36 urlmon: Added stub for CoInternetParseIUri. 2010-11-29 11:25:00 +01:00
Thomas Mullaly 4d9d4b10e0 urlmon: Added stub for CoInternetCombineUrlEx. 2010-11-15 14:55:44 +01:00
Thomas Mullaly 2aed8ce2fd urlmon: Added stub for CoInternetCombineIUri. 2010-11-02 12:03:02 +01:00
Thomas Mullaly c88048f08f urlmon: Added stub for CreateUriWithFragment. 2010-08-18 09:43:29 +02:00
Nikolay Sivov dd50af9464 urlmon: Add CoInternetIsFeatureEnabled stub. 2010-03-18 11:16:55 +01:00
Nikolay Sivov 1ad867467e urlmon: Add stub IUriBuilder interface. 2010-03-18 11:16:50 +01:00
Austin English cdb8e18715 urlmon: Add a stub for AsyncInstallDistributionUnit. 2010-03-02 11:14:52 +01:00
Jacek Caban 141e61468e urlmon: Added CreateUri stub implementation. 2010-02-12 11:54:06 +01:00
Vincent Povirk 8643bae364 urlmon: Add CoInternetGetSecurityUrl stub. 2009-10-15 12:06:17 +02:00
Nikolay Sivov 0b8faac9e6 urlmon: Added a stub for HlinkSimpleNavigateToMoniker. 2009-01-21 13:27:45 +01:00
Jacek Caban 2ef724113a urlmon: Added IsLoggingEnabled[AW] stub implementation. 2008-10-24 14:24:59 +02:00
Louis Lenders dd66542011 urlmon: Add stub for CoInternetSetFeatureEnabled. 2008-04-17 12:25:17 +02:00
Jacek Caban fd0d1d0765 urlmon: Added CopyStgMedium implementation. 2008-02-04 13:15:28 +01:00
Jacek Caban 60b0539c87 urlmon: Added HlinkParseDisplayNameEx implementation. 2008-02-04 11:28:02 +01:00
Rob Shearman a3ad394f9c urlmon: Add a stub for GetClassFileOrMime. 2007-10-22 14:54:39 +02:00
Rob Shearman 9105b64a77 urlmon: Implement stubs for URLOpenBlockingStreamA/W and URLOpenStreamA/W. 2007-08-08 15:32:04 +02:00
Hans Leidekker 691b0a3d68 urlmon: Add an implementation for CreateURLMonikerEx based on existing code for CreateURLMoniker. 2007-04-23 14:06:13 +02:00
Robert Shearman 4582a2bb8e urlmon: Delay-load cabinet.dll as native urlmon doesn't import it. 2006-08-04 20:27:04 +02:00
Rolf Kalbermatter 81c446ef5d urlmon: Implement BindAsyncMoniker function. 2005-12-26 12:59:42 +01:00
Vincent Béron ea25ff6d5d Correct argument count for URLDownloadToCacheFile{A,W}. 2005-11-11 10:54:26 +00:00
Jacek Caban 6affb1f132 Added URLDownloadToCacheFile[AW] stub. 2005-11-10 11:04:21 +00:00
Jacek Caban 5d7f7f56be Added CoInternetParseUrl implementation. 2005-09-07 11:27:34 +00:00
Jacek Caban 74138a028f Added RegisterFormatEnumerator and RevokeFormatEnumerator
implementation.
2005-09-03 15:03:06 +00:00