Commit Graph

720 Commits

Author SHA1 Message Date
Rika Ichinose
48815baef6 Load oleaut32.dll for widestrings on demand.
Most of the applications don’t and shouldn’t use widestrings, as unicodestrings are superior.
2024-01-26 22:09:41 +00:00
florian
acb6c7f36b * win64 has always SetThreadStackGuarantee 2024-01-26 21:42:26 +01:00
Rika Ichinose
a774075f2f Support Windows XP where SetThreadStackGuarantee is absent. 2024-01-26 16:57:49 +03:00
florian
a2f2af87d2 * Windows CE does not support SetThreadStackGuarantee 2024-01-25 22:06:13 +01:00
florian
14ab1cfb71 * set stack margin on windows, so there is stack space left for exception handling in case of a stack overflow, resolves #40589 2024-01-24 21:31:03 +01:00
Sven/Sarah Barth
38ca4f9157 * remove semicolon to make Lazarus happy 2024-01-15 22:29:47 +01:00
Pierre Muller
f510e6f59b Use GetProcAddress to set GetFinalPathNameByHandle function pointer 2024-01-06 17:54:21 +01:00
Michaël Van Canneyt
ff8511f2f1 * Define INVALID_HANDLE_VALUE for Delphi compatibility 2023-11-29 15:03:12 +01:00
marcoonthegit
b6999496a7 * add pointer variant fo createconsolescreenbuffer, move old VAR definition to redef for compat. 2023-11-09 14:17:14 +01:00
marcoonthegit
6b7afc6b08 * added some winnls constants. Reworked locale_ and cal_ constants for easier maintenance. 2023-10-15 12:22:12 +02:00
marcoonthegit
e084d3259f * fix win32,win64 parts, fixes #40439. All records to under pshpack4 in header. 2023-09-16 15:41:48 +02:00
Michael VAN CANNEYT
ccfa38c68e * Dotted RTL compiles 2023-07-27 19:04:03 +02:00
Michael VAN CANNEYT
6cc315d4da * Fix compilation with unicodertl 2023-07-24 15:38:09 +02:00
Michael VAN CANNEYT
b5dd1f9beb * Fix windows compilation 2023-07-24 15:38:09 +02:00
Michael VAN CANNEYT
78374bf772 * Synchronize API for AnsiString/Unicode string, keep string where possible. 2023-07-24 15:38:09 +02:00
Rika Ichinose
62bc640306 Also prevent SyncObjs.THandleObject.WaitForMultiple from unconditionally linking to ole32.dll. 2023-07-20 11:52:26 +03:00
Rika Ichinose
943b88e3da Delay-load CoWaitForMultipleHandles to not force the dependency on ole32.dll. 2023-07-20 06:14:39 +00:00
Michael VAN CANNEYT
e50d90b7e9 * string -> shortstring 2023-07-14 17:26:11 +02:00
Michael VAN CANNEYT
32d55bb0ea * String -> AnsiString 2023-07-14 17:26:11 +02:00
Michael VAN CANNEYT
706e090457 * Char -> AnsiChar 2023-07-14 17:26:10 +02:00
marcoonthegit
f1fcdcfbc3 * Switched from waitformultiple objects to -handles for xp/w7 compat, closes 40297 2023-06-14 14:22:08 +02:00
marcoonthegit
f0debbe649 * change HDEVNOTIFY to lpvoid/pointer instead of thandle 2023-05-29 13:32:44 +02:00
marcoonthegit
67eac52f07 * RegisterDeviceNotification 2023-05-28 21:37:54 +02:00
marcoonthegit
f4155dc710 * movefile_* consts expanded 2023-05-28 15:47:49 +02:00
marcoonthegit
e9352b4894 * use predefined pointer types from system as much as possible. This avoids trouble between objpas.pinteger and windows.pinteger in generics. (if windows is only in implementation). 2023-05-28 12:40:49 +02:00
Michaël Van Canneyt
513b02f3fd * Add overload, so system unit version of interlocked* calls is also found. Fixes issue #40283 2023-05-23 12:14:22 +02:00
marcoonthegit
452ec93f06 * implement waitformultiple for win32 only.
* Change interface to allow for COM waiting + a basic windows implementation. (only for desktop apps? Use msgwait* for the rest?)
2023-05-20 14:37:26 +02:00
marcoonthegit
e74d89ce62 * patch by Dean Mustakinov to improve commandline quote handling on Windows, resolves #40189 2023-04-29 13:11:11 +02:00
Ondrej Pokorny
86c4b160e2 add all peflags 2023-02-13 21:41:54 +00:00
marcoonthegit
2ac86ab662 * some extra constants and added typing to setexecutionstate 2023-02-06 14:04:46 +01:00
marcoonthegit
4871ad4707 * SetThreadExecutionState 2023-02-03 10:34:57 +01:00
Michaël Van Canneyt
0bad315daf * Fix TDateTimeInfoRec 2023-01-23 18:09:43 +01:00
Michael Van Canneyt
d1b2fe1659 * Date/Time info for files (Delphi compatibility) 2023-01-21 13:45:04 +01:00
florian
a06c034189 * cleanup of outdated defines 2023-01-20 23:31:04 +01:00
marcoonthegit
cfc77315ca * getlongpath as per https://forum.lazarus.freepascal.org/index.php/topic,60972.0/topicseen.html 2022-11-10 10:42:11 +01:00
marcoonthegit
f9a76aaa56 * Add AMPM to string, patch from closes #39973 2022-10-29 16:12:40 +02:00
marcoonthegit
53d745962f * also add other threadpool functions 2022-08-09 11:27:23 +02:00
marcoonthegit
fd179a61f9 * give pthread_start_routine a proper Delphi compat prototype.
* add Delphi alias for callback.
 * add queueuserworkitem
 * add name clause GetDateFormatEx

closes #39852
2022-08-09 09:59:42 +02:00
marcoonthegit
db9375d23f * add GetDateFormatEx, from bug #35118 by 440bx 2022-05-22 12:37:58 +02:00
Michaël Van Canneyt
6f6a003414 * Patches from Pascal Riekenberg, some small corrections 2022-05-13 08:52:42 +02:00
marcoonthegit
dcb3906741 * typo fix in last commit. 2022-04-27 16:47:15 +02:00
marcoonthegit
b42bc966ac * fix bit setting macros in windows unit. Should fix bug #39272.
(bit setting only allowed setting bits to one, not zero, and not added).
2022-04-27 15:21:15 +02:00
Ondrej Pokorny
0ae0e741cf win: fix default ShortDateFormat and LongDateFormat 2021-08-11 11:37:43 +00:00
Ondrej Pokorny
2c81b44b1c win: fix default ShortDateFormat and LongDateFormat 2021-08-11 11:37:43 +00:00
svenbarth
229506acd0 * fix for Mantis #39147: apply adjusted patch (especially more paranoid checks) from Serge Anvarov
git-svn-id: trunk@49581 -
2021-07-06 21:16:04 +00:00
marco
98d35bb8cb * redo psd constants, mantis #39022
git-svn-id: trunk@49565 -
2021-06-26 18:36:37 +00:00
marco
8ad6271fa1 * avoid rangecheck mantis 0038791
git-svn-id: trunk@49250 -
2021-04-23 19:06:18 +00:00
marco
e31923c290 * use W variant to get localestrs.
git-svn-id: trunk@49244 -
2021-04-22 14:00:51 +00:00
marco
787798e96f * split propsheetheader in -A and -W variants.
git-svn-id: trunk@49101 -
2021-04-02 14:54:40 +00:00
svenbarth
5a20531d9b * rework the basic event on Windows so that peventstate directly represents the Event handle
git-svn-id: trunk@49068 -
2021-03-27 19:48:32 +00:00