Module: wine
Branch: master
Commit: 7fdcc87def3b77e6e3b7f2cab96427054624e8e5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7fdcc87def3b77e6e3b7f2cab…
Author: Jacek Caban <jacek(a)codeweavers.com>
Date: Sat Nov 17 20:02:28 2007 +0100
include: Added isguids.h.
---
dlls/uuid/uuid.c | 1 +
include/Makefile.in | 1 +
include/isguids.h | 28 ++++++++++++++++++++++++++++
3 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/dlls/uuid/uuid.c b/dlls/uuid/uuid.c
index e1aeaf4..7fd7c2c 100644
--- a/dlls/uuid/uuid.c
+++ b/dlls/uuid/uuid.c
@@ -69,6 +69,7 @@ DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
#include "urlhist.h"
#include "hlguids.h"
#include "dimm.h"
+#include "isguids.h"
/* FIXME: cguids declares GUIDs but does not define their values */
diff --git a/include/Makefile.in b/include/Makefile.in
index 3b08d73..e1d53da 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -204,6 +204,7 @@ SRCDIR_INCLUDES = \
ipifcons.h \
iprtrmib.h \
iptypes.h \
+ isguids.h \
ks.h \
ksguid.h \
ksmedia.h \
diff --git a/include/isguids.h b/include/isguids.h
new file mode 100644
index 0000000..daf5600
--- /dev/null
+++ b/include/isguids.h
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2007 Jacek Caban for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef _ISGUIDS_H_
+#define _ISGUIDS_H_
+
+DEFINE_GUID(CLSID_InternetShortcut, 0xfbf23b40,0xe3f0,0x101b,0x84,0x88,0x00,0xaa,0x00,0x3e,0x56,0xf8);
+
+DEFINE_GUID(IID_IUniformResourceLocatorA, 0xfbf23b80,0xe3f0,0x101b,0x84,0x88,0x00,0xaa,0x00,0x3e,0x56,0xf8);
+DEFINE_GUID(IID_IUniformResourceLocatorW, 0xcabb0da0,0xda57,0x11cf,0x99,0x74,0x00,0x20,0xaf,0xd7,0x97,0x62);
+#define IID_IUniformResourceLocator WINELIB_NAME_AW(IID_IUniformResourceLocator)
+
+#endif
Module: wine
Branch: master
Commit: 28fb2f01ef23ccaf7ea67698f02fdfd176683a3b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=28fb2f01ef23ccaf7ea67698f…
Author: Rob Shearman <rob(a)codeweavers.com>
Date: Sat Nov 17 17:31:43 2007 +0000
credui: Ensure that the foreground window doesn't get changed while the user is typing in their password.
This doesn't currently work on Wine as LockSetForegroundWindow isn't
implemented, but when it does it should work nicely.
---
dlls/credui/credui_main.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/credui/credui_main.c b/dlls/credui/credui_main.c
index e7960d4..33292f5 100644
--- a/dlls/credui/credui_main.c
+++ b/dlls/credui/credui_main.c
@@ -288,6 +288,16 @@ static INT_PTR CALLBACK CredDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam,
case MAKELONG(IDCANCEL, BN_CLICKED):
EndDialog(hwndDlg, IDCANCEL);
return TRUE;
+ case MAKELONG(IDC_PASSWORD, EN_SETFOCUS):
+ /* don't allow another window to steal focus while the
+ * user is typing their password */
+ LockSetForegroundWindow(LSFW_LOCK);
+ return TRUE;
+ case MAKELONG(IDC_PASSWORD, EN_KILLFOCUS):
+ /* the user is no longer typing their password, so allow
+ * other windows to become foreground ones */
+ LockSetForegroundWindow(LSFW_UNLOCK);
+ return TRUE;
}
/* fall through */
default: