Commit Graph
390 Commits
Author SHA1 Message Date
Alex Ionescu 31a759e85c - Use DDK macros to speed up size calculations on single-byte codepages.
svn path=/trunk/; revision=17700
2005-09-06 17:33:56 +00:00
Alex Ionescu 80b6230b45 A couple more fixes to prepare for the final patch
svn path=/trunk/; revision=17689
2005-09-06 06:19:30 +00:00
Alex Ionescu 66711d6344 - Some more MSDDK/IFS compatibility fixes.
svn path=/trunk/; revision=17687
2005-09-06 05:30:39 +00:00
Gé van Geldorp 4e74b68be8 Sync to Wine-20050830:
Phil Krylov <[email protected]>
- Added support for backward search to RichEdit EM_FINDTEXT[AW],
  EM_FINDTEXTEX[AW] message handler.
- Fixed EM_SETEVENTMASK RichEdit message handler to return old event
  mask.
- Added handling of deff RTF control word.
- Added common keyboard shortcuts for Select All, Undo, Redo, Cut, Copy
  and Paste to RichEdit.
- Automatically set default font after parsing a font table in RichEdit
  RTF reader.
- Fixed EM_EXLINEFROMCHAR to work for last row of a paragraph.
- Fixed UTF-8 RTF parsing.
- Fixed a bug in EM_STREAMOUT RichEdit message handler which truncated
  some streamed text.
- Generate ending \par in RTF output of RichEdit when streaming out a
  whole document.
- Fixed a RichEdit RTF reader bug which resulted in loss of text.
  Eliminated unneeded recursion in ME_InsertTextFromCursor().
- Implemented EM_CHARFROMPOS RichEdit message.
- Added EM_SETRECT, EM_SETRECTNP, and WM_SETREDRAW message handling.
  Added support for GT_SELECTION flag in EM_GETTEXTEX handler.
Mike McCormack <[email protected]>
- gcc 4.0 warning fixes for Interlocked* functions.

svn path=/trunk/; revision=17681
2005-09-05 22:07:52 +00:00
Gé van Geldorp a9179e7930 Sync to Wine-20050830:
Francois Gouget <[email protected]>
- Change some Dll* functions so they are exported by name like on
  Windows.
  Update the documentation accordingly.
Johan Dahlin <[email protected]>
- Implemented MsiSetComponentState*.
- Added stubs for MsiSetComponentStateA and MsiSetComponentStateW.
- Added a null check for component.
Alexandre Julliard <[email protected]>
- Don't prefix the functions DllCanUnloadNow, DllGetClassObject and
  Dll(Un)RegisterServer with the dll name so that the compiler can check
  the prototypes.
Vincent Beron <[email protected]>
- Correct mismatches between spec files and comments about export
  number.
Aric Stewart <[email protected]>
- Display the correct text string in the action text field for the
  dialog boxes. Also the string should be deformatted.
- Make index INT not UINT because it can be -1.
- Fixed a memory overflow and leak identified by Mike McCormack.
- Add some body to ResolveSource because it is possible to need it when
  an install is begun but the media is not in the drive, such as in
  install-on-demand cases.
- The file name used in the ui messages is the target name not the
  source name.
Yuri Kozlov <[email protected]>
- Remove duplicate declaration of MSI_SetPropertyW.
Mike McCormack <[email protected]>
- Handle loading strings over 64k from the string table.
- build a standard Wine list of folders instead of using an array
- use folder pointers instead of array indexes
- build a standard Wine list of files instead of using an array
- use file pointers instead of array indexes
- build a standard Wine list of features instead of using an array
- use feature pointers instead of array indexes
- build a standard Wine list of components instead of using an array
- use component pointers instead of array indexes
- Store the component information in a standard Wine list.
- Add include guard to header and make functions extern.
- build a standard Wine list of extensions instead of using an array
- use extension pointers instead of array indexes
- build a standard Wine list of appids instead of using an array
- use appid pointers instead of array indexes
- build a standard Wine list of mime types instead of using an array
- use mime type pointers instead of array indexes
- Add the allocated mime type to the mime type list.
- build a standard Wine list of classes instead of using an array
- use class pointers instead of array indexes
- Fix a small bug introduced when converting appids to a list.
- Implement MsiModifyView (MSIMODIFY_INSERT_TEMPORARY).
- Better stub for MsiViewGetError.
- Don't dereference variables in a trace.
- the combination of all table keys must be unique, not each key
- MsiViewExecute may not be called before MsiModifyView
- Make sure to save the result calculated in ACTION_UpdateInstallStates.
Steven Edwards <[email protected]>
- Add real stub for MsiConfigureFeatureW.

svn path=/trunk/; revision=17672
2005-09-05 21:34:19 +00:00
Gé van Geldorp 0389203146 Sync to Wine-20050830:
Vitaliy Margolen <[email protected]>
- Fix handling of minimum tab width.
  Add more tests to test it.
Filip Navara <[email protected]>
- Use ReleaseDC instead of DeleteDC on DC handle.
Phil Krylov <[email protected]>
- Improved header control performance by maintaining an internal order
  array.
- Draw header control items only within the header client area.
Felix Nawothnig <[email protected]>
- Fix DPA_Search for sorted arrays.
Michael Kaufmann <[email protected]>
- Handle WM_GETFONT and WM_SETFONT.
- Redraw immediately upon PBM_SETPOS, PBM_DELTAPOS, PBM_STEPIT.
- New tests.
Thomas Weidenmueller <[email protected]>
- It should be allowed to pass NULL handles in the phpage array of the
  PROPSHEETHEADER structure to PropertySheet(), just ignore them.
Aric Stewart <[email protected]>
- Fix for dreamweaver site definition dialog. Need to initialize the
  rect for a tab control to an empty rect if it is not visible.
Alexandre Julliard <[email protected]>
- Don't prefix the functions DllCanUnloadNow, DllGetClassObject and
  Dll(Un)RegisterServer with the dll name so that the compiler can check
  the prototypes.
- Fixed regression in DPA_Search.
Yuri Kozlov <[email protected]>
- Set default size for toolbar bitmap if not specified.
Mike McCormack <[email protected]>
- Fix gcc 4.0 warnings.
Vitaly Lipatov <[email protected]>
- Use STATEIMAGEINDEX / INDEXTOSTATEIMAGEMASK instead of bit
  operations.
Steven Edwards <[email protected]>
- Correct RegCreateKeyEx[A/W] prototype to match the PSDK.
Frank Richter <[email protected]>
- Only draw a themed border when edit control has WS_EX_CLIENTEDGE
  style.
- Merge subclass stubs and subclass proc. Having the stub set the window
  proc to the subclass proc was not a good idea since that breaks
  subclasses of themed standard controls (e.g. what Delphi does a lot).
- Determining the superclass for a window subclassed for theming doesn't
  work - e.g. Delphi buttons have the classname "TButton" for which no
  superclass will be found. Instead, use initial subclass window procs
  that have the subclass hardcoded and store it for the "real" subclass
  window proc.
- Add theming for toolbar control.
- Improved trackbar theming.
- Add initial theming support for trackbars.
- Add theming for treeview control.
- Add theming support for dialogs (to support tab page background).
- Add theming for listbox (and combo listbox) controls.
- Add theming for combo boxes.
- Subclass edit control to draw themed border.
- Added some generic code to allow subclassing (for the purpose of
  theming) of standard controls.
- Fix warnings in 64bit.
- Add hottracking support for the header control.
- Since OpenThemeData() should return 0 in case theming is disabled
  globally or for the application we don't need to check that when
  calling OpenThemeData().
- Remove unneeded theming check.
- Add theming for the monthcal control.
- Instead of adding the border via WM_NCPAINT and WM_NCCALCSIZE, do what
  native does: just clear WS_EX_STATICEDGE when themed and reduce the
  area the actual bar is painted in to the progress bar theme part
  content rect.
- Add theming for the progress control.
- Split up the drawing code into a set of smaller functions and also
  moved some common computations into helper functions. All that to
  facilitate the implementation of the forthcoming theming support.
- Add theming for the rebar control.
- Add theming for status bar control.
- Fix text color for "button" style tabs when theming is enabled.
- Add theming support for the tab control.
- Forward WM_DESTROY to superclass in edit & listbox theming.
- Add WM_CTLCOLORSTATIC handler to dialog theming subclass so static
  text can appear transparent (for e.g. tab pages which commonly have a
  "fancy" background).

svn path=/trunk/; revision=17664
2005-09-05 20:25:16 +00:00
Alex Ionescu 87507a864e - More NDK + MSDDK/IFS Compatibility fixes
- Prototype fixes

svn path=/trunk/; revision=17660
2005-09-05 18:06:20 +00:00
Alex Ionescu 4e8d1019ce - More NDK/MSDDK compatibility fixes.
svn path=/trunk/; revision=17652
2005-09-05 07:51:15 +00:00
Alex Ionescu 51f0dfd307 - NDK compatibility fixes for MSDDK. Use NTAPI instead of STDCALL, and use NTSYSAPI instead of NTOSAPI.
- Remove some functions/types in NDK that were already documented in DDK/IFS.
- Fixup syscall structures for the table and fix protoype of KeAdd/RemoveServiceDescriptorTable.

svn path=/trunk/; revision=17651
2005-09-05 04:48:20 +00:00
Alex Ionescu 118aa9fba3 - Fix kernel32 and ntoskrnl build issues.
- Define public version of DEVOBJ_EXTENSION in DDK.

svn path=/trunk/; revision=17650
2005-09-04 23:48:19 +00:00
Alex Ionescu a4d8aa2194 - Define NTSYSAPI and NTSYSCALLAPI
svn path=/trunk/; revision=17649
2005-09-04 23:26:35 +00:00
Alex Ionescu 851e0f3f36 - Fix incorrect PFILE_MAILSLOT_SET_INFORMATION definition
- Fix MSFS to build with MSDDK.
- Fix iotypes.h to be MSDDK compatible.

svn path=/trunk/; revision=17648
2005-09-04 23:18:34 +00:00
Alex Ionescu a5243c8e37 - Fix incompatible IO_STACK_LOCATION definition in W32api ddk/winddk.k
- Add EXTENDED_IO_STACK_LOCATION to NDK, with the full definition.

svn path=/trunk/; revision=17645
2005-09-04 22:16:57 +00:00
Hervé Poussineau 1037b8be47 Implement SetComputerNameExA/W
svn path=/trunk/; revision=17639
2005-09-04 20:11:51 +00:00
Eric Kohl 040c539dd5 Fix GUID->String conversion.
Implement CM_Get_Class[_Ex]A/W.

svn path=/trunk/; revision=17624
2005-09-03 19:44:47 +00:00
Eric Kohl 624151b290 Implement CM_Get_Class_Key_Name[_Ex]A/W and CM_Open_Class[_Ex]A/W.
svn path=/trunk/; revision=17586
2005-08-28 15:07:45 +00:00
Eric Kohl 1cedb076b5 Implement StringTableInitializeEx, StringTableGetExtraData and StringTableSetExtraData.
Add StringTableAddStringEx and StringTableLookUpStringEx stubs.

svn path=/trunk/; revision=17573
2005-08-27 19:14:35 +00:00
Filip Navara 5c7930f963 Add TBMETRICS structure and associated constants.
svn path=/trunk/; revision=17561
2005-08-26 20:02:53 +00:00
Steven Edwards 21927423a2 Add constants for DBG_CONTROL_C and DBG_CONTROL_BREAK to ntstatus.h, Work around conflict including ntstatus.h with the NDK
svn path=/trunk/; revision=17560
2005-08-26 18:39:20 +00:00
Thomas Bluemel 20e728bbac implemented CreateSymbolicLink() (not tested/verified yet!)
svn path=/trunk/; revision=17559
2005-08-26 13:47:56 +00:00
Thomas Bluemel eafb1ee3f7 - added stubs for Set/GetConsoleHistoryInfo(), GetConsoleOriginalTitleA/W(), Set/GetConsoleScreenBufferInfoEx() and GetCurrentConsoleFontEx()
- added missing structure definitions

svn path=/trunk/; revision=17543
2005-08-25 19:47:44 +00:00
Filip Navara 22432ceb48 Fix the NDIS_RW_LOCK structure.
svn path=/trunk/; revision=17510
2005-08-24 12:20:59 +00:00
Filip Navara f68e4fcc28 Fix few macros to work with the corrected declarations.
svn path=/trunk/; revision=17496
2005-08-24 00:04:21 +00:00
Hervé Poussineau ac0a5c446f Remove incorrect definition of NLS_MB_CODE_PAGE_TAG. The correct definition is 2 lines above.
svn path=/trunk/; revision=17490
2005-08-23 22:25:35 +00:00
Filip Navara f6283b4bca MS DDK compatibility fixes.
svn path=/trunk/; revision=17488
2005-08-23 22:11:03 +00:00
Filip Navara 8872cc5e5d Add missing definitions for HalDispatchTable callbacks.
svn path=/trunk/; revision=17471
2005-08-22 10:29:51 +00:00
Alex Ionescu e7d010c5de Major cleanup of NDK. I've decided that it would be much cleaner to accumulate all types, regardless of their um/km availabilty, into each header. Thus, umtypes.h now only contains the equivalent of ntdef.h and is automatically not-included if the DDK is. Similary, I've removed all the NTIFS hacks and added a single ifssupp.h file, which is automatically removed if the IFS is added. That file will be deleted then the Longhorn WDK is made public (it contains the IFS/DDK). Nothing has changed on the includer-side, the same rules still apply
svn path=/trunk/; revision=17420
2005-08-17 07:06:59 +00:00
Alex Ionescu 9f1cf7b990 Remove all non-official LPC structures/defines/hardcoded hacks, and use actual correct sizes and structures.
svn path=/trunk/; revision=17417
2005-08-16 23:05:33 +00:00
Steven Edwards 54bd458644 Changelog:
MSAFD: Add PCH support, PSDK fixes
MISC: Fix everything to build with PSDK changes
PSDK Fixes:
w32api/include/ssdl.h - reimplement based on Wine header which was more correct
w32api/include/ntsecapi.h - Remove duplicate structures and add typedef
w32api/include/winnt.h - add constant and missing structure
w32api/include/winioctl.h - add missing IOCTL code
w32api/include/winbase.h - add missing function declariation
w32api/include/aclui.h - remove duplicate structure

svn path=/trunk/; revision=17394
2005-08-15 02:24:48 +00:00
Royce Mitchell III 199bb66de3 fix declaration of DbgQueryDebugFilterState()
svn path=/trunk/; revision=17377
2005-08-14 04:22:07 +00:00
Magnus Olsen 821068b0c7 small clean up. remove double define of COPY_FILE_FAIL_IF_EXISTS and COPY_FILE_RESTARTABLE
svn path=/trunk/; revision=17359
2005-08-13 12:09:34 +00:00
Hartmut Birr c2df09cd88 Fixed _WINBASE_/_WINBASE_H
svn path=/trunk/; revision=17358
2005-08-12 23:35:14 +00:00
Gé van Geldorp dbd7ad25e3 Sync to Wine-20050725:
Felix Nawothnig <[email protected]>
- Fix misuse of UrlCombineW.
Mike McCormack <[email protected]>
- Fix -Wpointer-sign warnings.
Uwe Bonnes <[email protected]>
- URLMonikerImpl_BindToStorage: Don't use a HeapAllocated pointer for
  other purposes.
- URLMonikerImpl_BindToStorage: Escape special characters.
Jacek Caban <[email protected]>
- Register protocols.
- Better module locking.
- Fix handling of pmkContext in CreateURLMoniker.

svn path=/trunk/; revision=17341
2005-08-12 18:17:37 +00:00
Gé van Geldorp 6dd32969d0 Sync to Wine-20050725:
Phil Krylov <[email protected]>
- Added some useful TRACEs.
- Allow NULL parameter for WM_SETTEXT in RichEdit.
- Implemented EM_LINELENGTH RichEdit message.
- Fixed EM_LINEINDEX handler and added EM_LINEFROMCHAR handler.
- Implemented EM_EXLINEFROMCHAR, EM_LINEINDEX, EM_FINDTEXT,
  EM_FINDTEXTW, EM_FINDTEXTEX, and EM_FINDTEXTEXW messages.
- Fixed a comment about EM_STREAMIN.
- Implemented EM_GETLINECOUNT RichEdit message.
- Fixed EM_GETCHARFORMAT for selection containing a single character.
- Fixed an off-by-one error in EM_GETLINECOUNT handler.
- Fixed an off-by-one error in EM_STREAMOUT handler for non-Unicode
  plain text output.
- Fixed another couple of EM_STREAMOUT bugs.
- Removed junk from UTF-8 RTF output.
- Added emulation of RichEdit 1.0 behaviour when the 1.0 window class is
  being used. This emulation (introduced in M$ RichEdit 3.0) counts
  paragraph endings as 2 characters (CR+LF) instead of 1 (CR).
- Added EM_GETZOOM and EM_SETZOOM RichEdit message handlers.
- Added some missing but useful items to the TODO list.
Felix Nawothnig <[email protected]>
- Check structure size and fix return values in EM_GETCHARFORMAT.
Aric Stewart <[email protected]>
- Implementation for EM_GETTEXTEX.
Daniel Remenak <[email protected]>
- Basic handling of EM_SETTEXTEX.
Stefan Huehner <[email protected]>
- Make functions static to fix -Wmissing-declarations warnings.
- Change some char* to const char* to fix warnigns.
- Make some function static.
- Fix -Wmissing-declarations warnings.

svn path=/trunk/; revision=17335
2005-08-12 17:41:40 +00:00
Gé van Geldorp 5b9aceccd3 Sync to Wine-20050725:
Robert Shearman <[email protected]>
- In MsiLocateComponent pcchBuf can be NULL so don't try to dereference
  it.
Alexandre Julliard <[email protected]>
- Use the official names for the Unicode string constants.
Aric Stewart <[email protected]>
- Implement MsiGetLanguage.
- Relocate the msi file to prevent cd locking, corrected to properly not
  try to relocated #nnnn handles as files.
- Use the SourceList functions to get the source path in
  ConfigureProductExW.
- Handle installs off multiple volumes and properly pull the prompt
  string from the error table.
- If MsiGetProperty(A/W) is called with a NULL for the value buffer but
  a value in the size for the value buffer, then Msi fills in the size
  of the value into the pointer for size.  This is tested and confirmed
  with native MSI.
- Bail out if the reg key is empty. This prevents us from writing
  garbage to the property table.
- Properly resize the buffer based on ERROR_MORE_DATA.
  Also remember to free the allocated buffer.
- Further testing shows that when CustomActionData needs to be blank it
  is an empty string not ' '.
- Correct an error where I was not properly advancing a pointer.
- Add source.c to start handling the various MsiSourceList apis used in
  v3 of MSI, and now internally.
- Update files.c to use the MsiSourceList apis to make sure our
  SourceList keys in the registry are included and correct.
- Use the strings defined in msi.h.
- Use SOURCEDIR instead of PackagePath. Because the PackagePath may be
  local, while SOURCEDIR is more proper and will be a full directory.
- InstallShield does a number of actions using DoAction before the
  Install starts so the PackageCode needs to be loaded on OpenPackage
  instead of the beginning of the install process.
- When working toward install on demand support we need to reset all the
  constant values so that multiple install process do not get confused
  by leftover values from the previous install.
- Fill and use the ProductCode part of the MSIPACKAGE structure.
- Add the string constants located in msi.h and make use of them in
  files.c and source.c.
- Keep track of what sequence we are in and register unique
  actions. This allows us to make sure actions and custom actions
  flagged to run only once, actually run only once.
- Also clean up some of the numeric constants in custom.c using the
  defined values from msidefs.h.
Mike McCormack <[email protected]>
- gcc 4.0 -Wpointer-sign fixes.
- Display icons in buttons that have them.
- Use LoadImage to load bitmaps and icons.
- Set the initial focus on the control specified by Control_First in the
  Dialog table.
- Move to the next mask edit field when the current one becomes full.
- Make the tab order in msi dialogs right.
- Don't crash when cancelling out of a modeless dialog.
- Stop the install when cancelling from a modeless dialog.

svn path=/trunk/; revision=17331
2005-08-12 17:07:28 +00:00
Hervé Poussineau 733f1ba80d BYTE -> UCHAR. Thanks Alex
svn path=/trunk/; revision=17318
2005-08-11 21:25:28 +00:00
Hervé Poussineau b8cfafc6b8 Add STARTING_LCN_INPUT_BUFFER and VOLUME_BITMAP_BUFFER structures
Remove #pragma pack/pop around RETRIEVAL_POINTERS_BUFFER as it should be standard-packed according to Alex.

svn path=/trunk/; revision=17317
2005-08-11 21:20:42 +00:00
Hartmut Birr 6e338ed990 Replaced _WINBASE_ by _WINBASE_H because some headers depends on _WINBASE_H.
svn path=/trunk/; revision=17314
2005-08-11 20:48:55 +00:00
Eric Kohl 7b869f437f The RpcFinally block must always be executed. Otherwise, RPC code will leak allocated buffer memory.
svn path=/trunk/; revision=17313
2005-08-11 20:45:41 +00:00
Hartmut Birr e9beb0d3eb Moved the pragma to the correct position.
svn path=/trunk/; revision=17312
2005-08-11 20:44:04 +00:00
Hervé Poussineau d240d7dec7 Add DIF_* codes 40 to 42.
Reformat the whole list to align values

svn path=/trunk/; revision=17301
2005-08-11 20:13:16 +00:00
Steven Edwards 6887acc456 remove ros specific functions from public header
svn path=/trunk/; revision=17288
2005-08-11 17:27:13 +00:00
Alex Ionescu be97362b23 - Fix DEVICE_NODE definition to remove ROS-only fields
- Move RTL_HEAP_PARAMETERS to umtypes.h
- Fix PROCESS_PRIORITY_CLASS_XXX definitions.
- Use PROCESS_PRIORITY_CLASS_INVALID in process creation code.
- Move and correct EX_PUSH_LOCK definition to ntifs.h
- Define KQUEUE along with KAPC_STATE if ntifs.h is not used, so that we don't force its usage
- Enable usage of EX_QUEUE_WORKER_INFO and EX_WORK_QUEUE without requiring the IFS.
- Fix definition of CsrClientConnectToServer
- Update NDK FIXME list
- Define and use a list of Bus Type GUIDs instead of saving the GUID in a ROS-only field of DEVICE_NODE.
- Use a IRP_MN_QUERY_CAPABILITIES PnP IRP to get the Address of a DeviceNode, intead of saving it inside a ROS-only field.

svn path=/trunk/; revision=17272
2005-08-11 00:01:17 +00:00
Steven Edwards e6c6ee13be enable building shell32_test. some header fixes
svn path=/trunk/; revision=17269
2005-08-10 20:58:29 +00:00
Gunnar Dalsnes be6f8b5112 move WM_SYSTIMER where it belongs
svn path=/trunk/; revision=17265
2005-08-10 19:19:13 +00:00
Gunnar Dalsnes da39d77ab9 add missing define
svn path=/trunk/; revision=17264
2005-08-10 18:42:27 +00:00
Alex Ionescu 3ffa753a9b Add some DDK limits that were missing
svn path=/trunk/; revision=17223
2005-08-09 03:29:51 +00:00
Art Yerkes 20732be74c Fixes for various 64-bit hosting problems.
svn path=/trunk/; revision=17194
2005-08-08 04:26:23 +00:00
Filip Navara 000e3044d8 Fix setupapi build and prototypes.
svn path=/trunk/; revision=17165
2005-08-07 13:06:30 +00:00
Steven Edwards c510ad93ae add some missing values from Wine
svn path=/trunk/; revision=17134
2005-08-07 02:22:29 +00:00