Search found 14 matches: Look for ChangeWindowMessageFilter
Searched query: +Look +ChangeWindowMessageFilter
ignored: for
- Thu Sep 12, 2024 5:13 pm
- Forum: Coding Questions
- Topic: Drag & Drop Issue
- Replies: 4
- Views: 944
- Wed Mar 20, 2024 3:42 pm
- Forum: Coding Questions
- Topic: [SOLVED] Drag'n'Drop and Admin mode
- Replies: 11
- Views: 849
Re: Drag'n'Drop and Admin mode
... Workaround [...}
Thanks sincerely RASHAD for your suggestion, but it's not a solution I find ... It's also often recommended to use ChangeWindowMessageFilterEx instead of ChangeWindowMessageFilter, but this API function is not (yet) implemented in PB if I look at the list provided by the team ...
Thanks sincerely RASHAD for your suggestion, but it's not a solution I find ... It's also often recommended to use ChangeWindowMessageFilterEx instead of ChangeWindowMessageFilter, but this API function is not (yet) implemented in PB if I look at the list provided by the team ...
- Wed Mar 20, 2024 11:29 am
- Forum: Coding Questions
- Topic: [SOLVED] Drag'n'Drop and Admin mode
- Replies: 11
- Views: 849
Re: Drag'n'Drop and Admin mode
Hi AZIJO,
Thanks for your reply.
To drag and drop files without problems, you must have both programs running as administrator.
I tried this ... Copy)
EnableGadgetDrop(#Text,#PB_Drop_Files,#PB_Drag_Copy)
ChangeWindowMessageFilter_(#WM_DROPFILES,#MSGFLT_ADD)
ChangeWindowMessageFilter_(#WM ...
Thanks for your reply.
To drag and drop files without problems, you must have both programs running as administrator.
I tried this ... Copy)
EnableGadgetDrop(#Text,#PB_Drop_Files,#PB_Drag_Copy)
ChangeWindowMessageFilter_(#WM_DROPFILES,#MSGFLT_ADD)
ChangeWindowMessageFilter_(#WM ...
- Fri Jun 30, 2023 9:19 am
- Forum: Coding Questions
- Topic: Separately for WinXP
- Replies: 6
- Views: 646
Re: Separately for WinXP
Procedure ChangeWindowMessageFilter(param1,param2)
lib=OpenLibrary(#PB_Any,"user32.dll")
If lib
CallFunction(lib,"ChangeWindowMessageFilter",param1,param2)
CloseLibrary(lib)
EndIf
EndProcedure
ChangeWindowMessageFilter(#WM_DROPFILES,#MSGFLT_ADD)
I think the better way is to use prototypes ...
lib=OpenLibrary(#PB_Any,"user32.dll")
If lib
CallFunction(lib,"ChangeWindowMessageFilter",param1,param2)
CloseLibrary(lib)
EndIf
EndProcedure
ChangeWindowMessageFilter(#WM_DROPFILES,#MSGFLT_ADD)
I think the better way is to use prototypes ...
- Fri Jun 30, 2023 8:03 am
- Forum: Coding Questions
- Topic: Separately for WinXP
- Replies: 6
- Views: 646
Re: Separately for WinXP
In that case
MSDN
MSDN
[Using the ChangeWindowMessageFilter function is not recommended, as it has process-wide scope. Instead, use the ChangeWindowMessageFilterEx function to control access to specific windows as needed. ChangeWindowMessageFilter may not be supported in future versions of Windows.]
- Fri Jun 30, 2023 4:40 am
- Forum: Coding Questions
- Topic: Separately for WinXP
- Replies: 6
- Views: 646
Re: Separately for WinXP
Okay, I'm guessing that because ChangeWindowMessageFilter is not available on XP, the code won't compile due to the unavailable API.
So, AZJIO, you might need to try something like below. It's how I used to deal with such errors in the past when an API wasn't supported by an OS.
I give no guarantee ...
So, AZJIO, you might need to try something like below. It's how I used to deal with such errors in the past when an API wasn't supported by an OS.
I give no guarantee ...
- Fri Jun 30, 2023 3:37 am
- Forum: Coding Questions
- Topic: Separately for WinXP
- Replies: 6
- Views: 646
Re: Separately for WinXP
Thank god, I'm not the only one who doesn't understand the question.
Anyway, look here:
https://learn.microsoft.com/en-us/windo ... sagefilter
Minimum is Windows Vista/Server 2008.
Anyway, look here:
https://learn.microsoft.com/en-us/windo ... sagefilter
Minimum is Windows Vista/Server 2008.
- Fri Jun 30, 2023 2:18 am
- Forum: Coding Questions
- Topic: Separately for WinXP
- Replies: 6
- Views: 646
Separately for WinXP
I use this code to make the program work on WindowsXP, but I still get an error calling ChangeWindowMessageFilter.
If OSVersion() > #PB_OS_Windows_Vista
ChangeWindowMessageFilter_(#WM_DROPFILES, #MSGFLT_ADD)
ChangeWindowMessageFilter_(#WM_COPYDATA, #MSGFLT_ADD)
ChangeWindowMessageFilter_(73 ...
If OSVersion() > #PB_OS_Windows_Vista
ChangeWindowMessageFilter_(#WM_DROPFILES, #MSGFLT_ADD)
ChangeWindowMessageFilter_(#WM_COPYDATA, #MSGFLT_ADD)
ChangeWindowMessageFilter_(73 ...
- Mon Sep 20, 2021 6:15 pm
- Forum: Coding Questions
- Topic: [Solved] How to trick the compiler?
- Replies: 27
- Views: 4310
Re: How to trick the compiler?
... without admin privileges) and doesn't crash on XP
Procedure _ChangeWindowMessageFilter(msg, flag) : EndProcedure
Prototype _ChangeWindowMessageFilter ... DragQueryFile_(Dropped, -1, "", 0)
If Num
ClearList(DroppedFiles())
For i=0 To Num-1
Size = DragQueryFile_(Dropped, i, 0, 0)
Object$ = Space ...
Procedure _ChangeWindowMessageFilter(msg, flag) : EndProcedure
Prototype _ChangeWindowMessageFilter ... DragQueryFile_(Dropped, -1, "", 0)
If Num
ClearList(DroppedFiles())
For i=0 To Num-1
Size = DragQueryFile_(Dropped, i, 0, 0)
Object$ = Space ...
- Sun Sep 19, 2021 8:33 am
- Forum: Coding Questions
- Topic: [Solved] How to trick the compiler?
- Replies: 27
- Views: 4310
Re: How to trick the compiler?
On MSDN
Requirements:
Minimum supported client - Windows Vista [desktop apps only]
- Sat Aug 25, 2018 5:52 am
- Forum: Coding Questions
- Topic: Windows Drag Drop
- Replies: 15
- Views: 4700
Re: Windows Drag Drop
... ei=WNuAW73hB9GUsAe_64GoDQ&q=windows+administrator+drag+drop+ChangeWindowMessageFilter+admin+mode&oq=windows+administrator+drag+drop ... ab..0.2.223...33i160k1.0.pBP6A95GOE0
https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/2fa935cf-be57-4bcc-9b96-7ee5a6b2b7a5/drag-n-drop ...
https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/2fa935cf-be57-4bcc-9b96-7ee5a6b2b7a5/drag-n-drop ...
- Thu Aug 23, 2018 9:53 am
- Forum: Coding Questions
- Topic: Windows Drag Drop
- Replies: 15
- Views: 4700
Re: Windows Drag Drop
... to fix it earlier e.g. in PowerBasic or VB I have Register the prog for Messages with:
PowerBasic Code ... user32.dll")
IF hLib THEN
hProc = GetProcAddress(hLib, "ChangeWindowMessageFilter") 'bei xp gibts das nicht
IF hProc THEN 'Succeded
'bei der ...
PowerBasic Code ... user32.dll")
IF hLib THEN
hProc = GetProcAddress(hLib, "ChangeWindowMessageFilter") 'bei xp gibts das nicht
IF hProc THEN 'Succeded
'bei der ...
- Fri May 23, 2008 1:48 pm
- Forum: Windows
- Topic: Access an API which is undefined in PB
- Replies: 4
- Views: 2370
Access an API which is undefined in PB
I'm looking for a way to restore tray icons which have vanished due to an explorer problem and happened on this thread
http://www.purebasic.fr/english/viewtopic.php?t=31038
which would seem to do the job except for maw's comment regarding the need to use ChangeWindowMessageFilter for admin mode under ...
http://www.purebasic.fr/english/viewtopic.php?t=31038
which would seem to do the job except for maw's comment regarding the need to use ChangeWindowMessageFilter for admin mode under ...
- Sat Feb 09, 2008 10:59 am
- Forum: Tricks 'n' Tips
- Topic: Tired of your tray icon vanishing when Explorer.exe dies?
- Replies: 12
- Views: 9704
... but if your program is running as administrator it doesn't work. So for all of us always running as administrators has a problem here. The reason ... first detect if you're running Vista and then make a call to ChangeWindowMessageFilter, http://msdn2.microsoft.com/en-us/library/ms632675.aspx , and ...