Custom Query (3933 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (22 - 24 of 3933)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Ticket Resolution Summary Owner Reporter
#4079 Fixed Remove usage of _WinAPI_IsBad*Ptr functions from all standard libraries Jpm anonymous
Description

_WinAPI_IsBadCodePtr _WinAPI_IsBadReadPtr _WinAPI_IsBadStringPtr _WinAPI_IsBadWritePtr

The MSDN pages for these functions say "This function is obsolete and should not be used. Despite its name, it does not guarantee that the pointer is valid or that the memory pointed to is safe to use."

Calls to these functions can be found in these libraries. Include\WinAPIDiag.au3 Include\WinAPIMem.au3 Include\WinAPISys.au3

#4078 Fixed Upgrading _WinAPI_DwmGetWindowAttribute TommyDDR
Description

I recently needed to retrieve window border and color but values are not admitted in _WinAPI_DwmGetWindowAttribute, even if msdn say "Use with DwmSetWindowAttribute" for DWMWA_WINDOW_CORNER_PREFERENCE, it also can be readed with get so i added it. (i tried with DWMWA_BORDER_COLOR without success) I saw _WinAPI_DwmSetWindowAttribute was updated in 3.3.18.0, so i put this feature request

There is the new function :

Line 
1Func _WinAPI_DwmGetWindowAttribute($hWnd, $iAttribute)
2 Local $tagStruct
3 Switch $iAttribute
4 Case 33
5 $tagStruct = 'dword'
6 Case 5, 9
7 $tagStruct = $tagRECT
8 Case 1, 14
9 $tagStruct = 'uint'
10 Case Else
11 Return SetError(1, 0, 0)
12 EndSwitch
13
14 Local $tData = DllStructCreate($tagStruct)
15 Local $aCall = DllCall('dwmapi.dll', 'long', 'DwmGetWindowAttribute', 'hwnd', $hWnd, 'dword', $iAttribute, _
16 'struct*', $tData, 'dword', DllStructGetSize($tData))
17 If @error Then Return SetError(@error + 10, @extended, 0)
18 If $aCall[0] Then Return SetError(10, $aCall[0], 0)
19
20 Switch $iAttribute
21 Case 1, 14, 33
22 Return DllStructGetData($tData, 1)
23 Case Else
24 Return $tData
25 EndSwitch
26EndFunc ;==>_WinAPI_DwmGetWindowAttribute

I attached an exemple

#4077 Rejected test Jon
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.