Commit Graph
496 Commits
Author SHA1 Message Date
Thomas Bluemel fb9cd9cd0c - fixed the ProbeForWrite prototype
- some fixes to get ntoskrnl to build with -Wcast-qual and -Wsign-compare
- don't touch any memory outside the given range in ProbeForWrite and touch all pages within the range

svn path=/trunk/; revision=19748
2005-11-29 11:44:04 +00:00
Thomas Bluemel 012bdf846d fixed some prototypes
svn path=/trunk/; revision=19735
2005-11-28 23:43:40 +00:00
Alex Ionescu c1da20b370 - Make the NDK compatible with the MSDDK again.
- Fix some w32api incompatibility cruft since w32api insists on including winnt.h from kernel-mode.
- Fix some stuff that was including both kernel-mode and user-mode headers together.
- Use PISECURITY_DESCRIPTOR, not PSECURITY_DESCRIPTOR.

svn path=/trunk/; revision=19726
2005-11-28 21:40:21 +00:00
Alex Ionescu 54f50543c1 - Add DDK alignment macros and move/rename the ones in the NDK for user-mode only (since kernel-mode should use the DDK ones).
- Fix helper.h's alignment macros to protect properly and also use a faster implementation.
- Update NDK readme.

svn path=/trunk/; revision=19666
2005-11-27 02:55:13 +00:00
Gé van Geldorp 76f3ca9f12 Sync to Wine-0_9_2:
YunSong Hwang <[email protected]>
- Update Korean translations.
- Add Korean translations.
Jacek Caban <[email protected]>
- Beginning implementation of Navigate2.
- Create window in SetClientSite and return it in
  IOleInPlaceSite::GetWindow.
- Added IOleInPlaceSite stub implementation.
- Free ConnectionPoint objects (fix memory leak).
- Added OLEIVERB_INPLACEACTIVATE implementation in IOleObject::DoVerb.
- Added stub implementation of IDocHostUIHandler.
- Added IViewObject2 stub implementation.
- Added GetHostInfo implementation.
- Improve IConnectionPoint handling.

svn path=/trunk/; revision=19617
2005-11-26 09:40:12 +00:00
Thomas Bluemel cf25abaf77 add missing definitions
svn path=/trunk/; revision=19562
2005-11-25 17:02:43 +00:00
Thomas Bluemel 8cef988efb - add a (very incomplete) devguid.h
- add mmsys.cpl to the build system and bootcd

svn path=/trunk/; revision=19559
2005-11-25 16:13:58 +00:00
Thomas Bluemel 790caeda87 Some header fixes by Sebastian Gąsiorek <[email protected]>
svn path=/trunk/; revision=19550
2005-11-25 14:15:46 +00:00
Alex Ionescu cc63baeda1 - Update NDK to remove zwfuncs.h and place the native functions in their respective xxfuncs.h instead, so that applications can now include only what they need. Add more xxfuncs.h files for every API.
- Make the NDK smarter so that using #define NTOS_MODE_USER isn't needed anymore: the NDK can now auto-detect the presence of windows.h or ntddk.h and make the appropriate decision.
- re-arrange ntndk.h to include all types in alphabetical order, and then all functions, regardless of um/kmode usage. 
- Make each file auto-detect if this is NTOS_MODE_USER or not and include each files it needs, instead of depending on a predefined order inside ntndk.h This way, any file can be included from both user-mode or kmode as simply as #include <iofuncs.h>, wthout any adtional work.
- Update FIXME list with these changes and delay NDK release date since my trip is lasting a day longer.
- Fix ntsecapi.h to define UNICODE_STRING, like it does in the PSDK.
- Fix apps including ntsecapi + winternl.h These two cause a conflict even on PSDK and shouldn't be included together.
- Make winlogon include only the NDK files it needs (2) instead of the whole NDK, as test for this faster newly supported method.
- Remove some NDK apps from the FIXME list (the ones that weren't being built/are on my rewrite branch/are better off including the whole NDK instead of file-by-file).
- Update debug.h to define RtlAssert and DbgPrint in case the NDK or DDK aren't already included, which will allow some of the apps to stop using the NDK solely for DPRINT/DPRINT1. Diabled for now since a lot of code needs to be changed to #include <debug.h> *After* they include the other headers. (so that the anti-double-definition check can work).

svn path=/trunk/; revision=19538
2005-11-25 00:17:40 +00:00
Alex Ionescu 348e9f5f3d Fix msvc/gcc NDK problem
svn path=/trunk/; revision=19479
2005-11-23 04:31:58 +00:00
Thomas Bluemel a0b7f5c0aa remove incorrect includes
svn path=/trunk/; revision=19476
2005-11-23 01:40:19 +00:00
Alex Ionescu f355909c07 - Define DECLSPEC_ADDRSAFE and FORCEINLINE for gcc in winnt.h
- Remove FASTCALL define from windef.h and add it to winddk.h
- Move EXCEPTION_ defines to crt/except.h
- Remove public GUIDs from sysguid.h and move from NDK to public umpnpmgr lib headers (since no other component but it + kernel uses them)
- Make include/ndk an include path. The NDK is now used like the DDK, so including ndk/foo.h should be replaced by include foo.h just like for PSDK or DDK.
- Don't include misc.h in usermode.
- Protect some stuff in helper.h against multiple definitions.
- Sync with NDK 1.00 Beta 1 to prepare for public NDK release.

svn path=/trunk/; revision=19450
2005-11-22 04:57:45 +00:00
Filip Navara fc2948f5f2 Put the function type declarations at the right place. Patch by Brezenbak.
svn path=/trunk/; revision=19442
2005-11-22 01:06:05 +00:00
Filip Navara 8136033064 Change some FS:x reading macros for better compatibility with MSVC compiler and move KeGetCurrentKPCR/KeGetCurrentPrcb from DDK into ntoskrnl.
svn path=/trunk/; revision=19440
2005-11-22 00:47:58 +00:00
Christoph von Wittich c7aae26f12 import avifil32 from WINE 0.9.1
svn path=/trunk/; revision=19403
2005-11-21 09:51:12 +00:00
Gé van Geldorp 80b04bfdd6 New netapi32 vendor import
svn path=/trunk/; revision=19391
2005-11-20 21:19:17 +00:00
Gé van Geldorp 300a536ca9 Sync to Wine-0_9_1:
Jacek Caban <[email protected]>
- Added IInternetPriority implementation to FileProtocol.
- Report BINDSTATUS_SENDINGREQUEST in FileProtocol::Start.
- Added implementation of IInternetPriority in HttpProtocol.

svn path=/trunk/; revision=19367
2005-11-20 14:51:28 +00:00
Gé van Geldorp 5d29a2df63 Sync to Wine-0_9_1:
Michael Jung <[email protected]>
- Support for shell instance objects.
  Removed a wine_todo for a no longer failing test.
  Added a test for IPersistFolder3::GetCurFolder.
- Added initial tests for shdocvw's FolderShortcut related
  functionality.
- Only return SHDOCVW_ClassFactory if asked for CLSID_WebBrowser.

svn path=/trunk/; revision=19363
2005-11-20 14:26:47 +00:00
Gé van Geldorp 4c62f96aad Vitaliy Margolen <[email protected]>
- Michael Jung <[email protected]>
  Set all capability flags supported by the shellfolder, disregarding
  the flag mask given to GetAttributesOf.
  Unit tests to demonstrate this behaviour.
Michael Jung <[email protected]>
- Added some comments to document unixfs.
- Fixed crash in unixfs shellfolder handling with winamp.
- Implemented UnixFolder's IPersistPropertyBag::Load method.
- Initialize COM prior to displaying the SHBrowseForFolder dialog.
- More robust code for querying ShellFolder attributes (some
  ShellFolders ignore the flag mask in GetAttributesOf).
- Remove iconcache pre-initialization hack, it's not necessary any
  more.
- Move target folder initialization to a dedicated function.
- Use this function in BindToObject (should be faster).
- Special handling for FolderShortcut objects in Initialize method.
- Removed a todo_wine from a no longer failing unit test.
- Replaced tabs with spaces.
Robert Shearman <[email protected]>
- Convert SHELL32_BindToChild to Unicode and fix up the callers.
Vincent Bén <[email protected]>
- Unicodify systray.c.
- Move functions a bit to get rid of a static declaration.
Dmitry Timoshkov <[email protected]>
- Correctly handle flags parameter in SHAddToRecentDocs.
Martin Fuchs <[email protected]>
- Correct WINAPI position for MSVC portability.
Mike McCormack <[email protected]>
- Partially implement and test the shelllink object's
  IShellLinkDataList::CopyDataBlock and GetFlags methods.
- Use advapi32.CommandLineFromMsiDescriptor to get msi component paths.
- Pass the correct verb.
  Add a space between extra parameters.
  Wait for ShellExecute to complete.
- Handle MSI advertised shortcuts in the shelllink object.
- Implement IContextMenu::QueryContextMenu and
  IContextMenu::InvokeCommand.
- Add the IObjectWithSite interface.
- Invoke shortcuts through IContextMenu, rather than trying to access
  them directly.
- Fix a problem spotted by Dmitry and another one stopping correctly
  formatted lnk files from being generated.

svn path=/trunk/; revision=19356
2005-11-20 08:41:46 +00:00
Alex Ionescu b8f8ea844f - Reimplement Fast Mutex implementation in HAL/NT to be compatible with the real implementation. (Fast Mutex needs to raise IRQL).
- Implement ExEnterCriticalRegionAndAcquireFastMutexUnsafe and ExReleaseFastMutexUnsafeAndLeaveCriticalRegion.
- Make win32k use those two new functions so that it can continue running at PASSIVE_LEVEL.
- Remove CcBrokenMutex and use the new APIs instead.
- Implement and export ntoskrnl version of Fast Mutex
- Update headers for new fast-mutex definition and API exports.
- Fix RemoveEntryList in NDK.
- Add exfuncs.h to NDK.
- Fix path in mmtypes.h in NDK to be compatible to how it shoudl be included.

svn path=/trunk/; revision=19352
2005-11-19 22:13:35 +00:00
Hervé Poussineau f5238f3c36 Sorry, I forgot to commit this file...
svn path=/trunk/; revision=19343
2005-11-19 13:31:52 +00:00
Thomas Bluemel edeb6b991c - define STATUS_* codes correctly in winnt.h and ntstatus.h
- fix code that incorrectly includes headers for status codes (changes to files shared with wine will be submitted to winehq)
- fix wine SEH macros and support code, these changes should enable us to port crypt32.dll (and maybe other libraries) without modifications

svn path=/trunk/; revision=19334
2005-11-18 23:19:48 +00:00
Aleksey Bragin 36f1b7334e Added structs and other needed stuff for PCI_DEVICE_PRESENT_INTERFACE query.
svn path=/trunk/; revision=19330
2005-11-18 22:28:54 +00:00
Christoph von Wittich 8347f2c508 got a lot of crypt32 stuff working
svn path=/trunk/; revision=19320
2005-11-18 02:08:46 +00:00
Christoph von Wittich a0c1d56a3e fix a lot of compile problems with encode.c and cert.c (still not added to build)
svn path=/trunk/; revision=19316
2005-11-17 21:59:57 +00:00
Gé van Geldorp 6b37e95bd4 Sync to Wine-0_9_1:
Huw Davies <[email protected]>
- Treat paramflags == 0 like PARAMFLAG_FIN.
- Don't call Release on a null ptr.
- Deal with pExcepInfo == NULL.
Robert Shearman <[email protected]>
- Add IFontEventsDisp and IProvideMultipleClassInfo.
- Make sure to clean up properly on error.
- Restrict the critical section to getting the channel buffer and
  adding a reference to it.
- There is no need to call IUnknown_QueryInterface since getting the
  correct object is handled by the proxy manager.
- Forward IDispatch functions to the MIDL-generated proxy.
- Remove special cases caused by previous marshaling of IDispatch &
  IUnknown that is no longer done.
- Add error messages if an IUnknown or IDispatch method is called when
  it no longer should be.
- Cleanup formating of DispCallFunc.
- Fix DispCallFunc for functions with return values.
- Don't rely on _copy_arg as it is going away soon.
- Make wParamFlags in the paramdesc dumping function human readable.
- Enums should be VT_I4 instead of VT_INT.
- Trace the return value from the ITypeInfo_fnInvoke.
- Read DLL name from modules in MSFT typelibs.
- A name offset of -1 for a parameter means that it has the same name
  as the function.
- Print an error if a ReadName is attempted with an offset of -1,
  since this will read garbage.
- Implement ITypeInfo_GetDllEntry.
- Fix a crash during +variant logging caused by a typo causing an array
  to be one element less than expected.
- The PSDispatch PS class factory can manage both typelib marshalled and
  IDispatch, which is NDR marshalled, so we need a wrapper to call the
  appropriate CreateProxy or CreateStub function.
Alex Villacís Lasso <[email protected]>
- Implement complete VarDecDiv() for any valid DECIMAL.
- Implement complete VarDecMul() for any valid DECIMAL.
- Implement complete VarBstrFromDec() for any valid DECIMAL, with
  internationalization support borrowed from VARIANT_BstrFromReal(). The
  decimal fix for VARIANT_BstrFromReal was encapsulated in a separate
  function and reused.
Michael Stefaniuc <[email protected]>
- Handle VT_DECIMAL in VarCmp().
- Handle VT_CY in VarDiv().
Uwe Bonnes <[email protected]>
- Extend VarCmp() and add test cases.
Marcus Meissner <[email protected]>
- Added support of loading of IPicture data from non-statable
  IStreams. Added testcases for this.
- Added support for VT_I8/VT_UI8 marshalling.
- Fixed FMT_DATE_GENERAL and FMT_DATE_TIME_SYS cases in
  VARIANT_FormatDate.

svn path=/trunk/; revision=19313
2005-11-17 21:52:13 +00:00
Gé van Geldorp 4cfb1ff7dc Sync to Wine-0_9_1:
Ivan Leo Puoti <[email protected]>
- Fix some wrong prototypes.
Thomas Weidenmueller <[email protected]>
- Passing NULL as the last two parameters to ReadFile is illegal and
  actually causes a crash on windows. The attached patch fixes this.
Aric Stewart <[email protected]>
- Force files to install if the REINSTALL property is set.
Mike McCormack <[email protected]>
- Some installers don't call the CreateFolders action before the
  InstallFiles action as MSDN specifies, but it still seems to work, so
  make sure that we create component directories in the InstallFiles
  action anyway.
- Create component folders in the CreateFolders action.
- If an action fails, print out its name as well as the error code.  Use
  %d for error codes so it's easy to match them up to something in
  winerror.h.
- Rename load_dynamic_stringW to msi_dup_record_field to better describe
  what it does, and replace a few instances with MSI_RecordGetString to
  avoid allocating memory.
- Tidy up the RegisterProduct action a little.
- Create a stub function to apply a single table transform and call it
  where we need to apply transforms.
- Enumerate the substorage transforms for any patches that are passed on
  the command line with PATCH=.  Need to implement
  table_apply_transform() before this will do anything interesting.
- Simplify register_progid() and remove a fixed length buffer.
- Make enter and escape trigger the default and cancel buttons in
  dialogs.
- Switch back to using IPicture to load images.  LoadImage did the
  resizing for us, but doesn't handle jpeg files and requires us writing
  a temp file, whereas IPicture handles jpeg files and can load directly
  from a stream.
- Remove unused package parameter of register_progid_base().
- Remove an incorrect comment and check for 0 being an invalid file
  handle.
- Add missing semicolons that caused compile trouble on FreeBSD.
- Extract file directly to their target location, bypassing the need to
  use temporary files and move files.
- Put the UI update code for cabinet file into a separate function.
- Translate INVALID_HANDLE_VALUE to zero for cabinet handles.
- Fix a memory leak in the cabinet extracting code.
- Fix passing of NULL pointers to MsiDecomposeDescriptor and add a
  test.
- Fix parameter handling in MsiSetTargetPath, and add a test for it.
- Deleted two buggy functions that incorrectly and inefficiently check
  whether a row already exists in a table, and replaced them with a call
  to an existing working function that does the same thing correctly.
- Fix and test MsiGetProperty and MsiSetProperty.
- Add a stub implementation of msi.MsiSetMode.
- NULL and empty strings are the same in conditions.
- Add a bunch of tests for MsiEvaluateCondition and make them pass.
- Fix error handling in MsiEvaluateCondition.
- Create the +msidb debug channel for msi database code.
- Implement transforms.  This still includes some debugging code which
  can be enabled by setting debug_transform to 1 in the relevant
  places.
- Define NONAMELESSUNION and NONAMELESSSTRUCT for older compilers.
- Remove some redundant null pointer checks.
- Make sure to unregister all the classes that were registered when msi
  is unloaded, so we can register again cleanly.
- Fix a memory leak.
- Implement the RemoveFiles action.
- Add a read-only implementation of the SelectionTree control.
- Make sure we only CoUninitialize after successfully initializing.
  Fix the address of the returned IShellLinkDataList interface.
- Use an enumeration for file states.
- Handle MaskEdit masks containing dashes and other constant
  characters.
- Stub implementation for MsiAdvertiseScriptA/W.
- Add a stub for the AllocateRegistrySpace action.
- Explicitly check for MSICONDITION_TRUE being returned from
  MsiEvaluateCondition.
- Stub implementation for MsiGetFileHashA/W.
- Define MSIDBOPEN_ constants using LPCWSTR when compiling Wine.
- Improve MsiUseFeatureEx and MsiGetFeatureState a little, add some
  simple test cases.
- Use msi_get_property_int() in a few more places.
- Implement MsiGetFeatureUsageA and MsiUseFeature(Ex)A using their W
  versions.
- Use "static const" rather than "const static" as gcc -W complains
  about the former.
- Add an implementation for MsiGetShortcutTargetA/W.
- Don't change the UI level during ExecuteAction.
- Return an error in MsiGetComponentPathW if passed a null component.
- Remove the unused 1st parameter of ACTION_VerifyComponentForAction.
- Fix MsiGetPropertyA/W spec declarations.
- Create an internal handle-free api for reading MSI database summary
  information.

svn path=/trunk/; revision=19307
2005-11-17 20:49:37 +00:00
Gé van Geldorp af002b222f Add header needed to build crypt32.dll
svn path=/trunk/; revision=19306
2005-11-17 20:33:50 +00:00
Christoph von Wittich 5b0468545d added crypt32 (still not complete, from wine 0.91)
svn path=/trunk/; revision=19304
2005-11-17 20:17:53 +00:00
Steven Edwards 3984ae405d no op header change. Correct some of the header guards to match the DDK
svn path=/trunk/; revision=19285
2005-11-16 22:28:05 +00:00
Steven Edwards 207bfca509 remove windef.h inclusion. Its not needed and its non-standard
svn path=/trunk/; revision=19260
2005-11-16 05:40:35 +00:00
Steven Edwards fd962d4f5b created crt public headers directory. Moved excpt.h there
svn path=/trunk/; revision=19259
2005-11-16 05:39:32 +00:00
Steven Edwards fb818dc925 add DNS_ERROR_INVALID_NAME
svn path=/trunk/; revision=19237
2005-11-15 00:33:28 +00:00
Art Yerkes b8b9eec630 Straggling header.
svn path=/trunk/; revision=19113
2005-11-10 06:58:40 +00:00
Hervé Poussineau dc3bd90918 - pciidex: Fix Hardware IDs returned for channel PDOs
- pciidex: Better test to see if the PCI controller is in compatible or native mode before getting channel resources
- pciidex: Change IDE_DRIVE_IDENTIFY structure to IDENTIFY_DATA structure
- pciide: Implement PciIdeUseDma
- pciide: Tell that channel state is unknown instead of enabled

svn path=/trunk/; revision=19092
2005-11-09 11:10:24 +00:00
Alex Ionescu 1608efe156 - Update KTHREAD and KUSER_SHARED_DATA to latest versions. This should make 2K3 drivers (eg: npfs.sys) work with their inlined KeEnterCriticalRegion/KeLeaveCriticalRegion and ASSERTS.
- Update KAPC and DISPATCHER_HEADER to latest DDK definitions.

svn path=/trunk/; revision=19053
2005-11-08 08:56:41 +00:00
Alex Ionescu 8b69dfff76 This one is for Steven... 18 months later, I kept my promise ;)
- BindImage & friends refactoring of my original code. Fixed two or three dozen bugs, stopped making assumptions about everything, actually checked for failure, used dynamic allocation instead of 32 static structures, fixed a lot of broken code, fixed some helper functions, made the code as 64-bit compatible as I could (checked with msvc WP64 + prefast).
- Remove internal.c and use NDK instead
- Remove debug.c and symbol.c like WINE have done
- Rewrite the entire exports file to update it for XP. Forward almost all the functions to dbghelp, like WINE have done (note: windows DLL used delayed imports instead).
- Cleanup source to add implemented/unimplemented tags, source header, and precompiled header.
- Sync with latest code from WINE.

Tested with Quicken 2004 & its patches (which make extensive use of BindImage) as well as random bindings of some applications on my disk. Worked perfectly in Windows.

svn path=/trunk/; revision=19025
2005-11-06 10:48:14 +00:00
Alex Ionescu e595cd5c9d - Move some NDK definitions (Cm Callbacks) to the DDK since they are actually public.
- Fix strange/incorrect hack which disabled DPRINT in msvc
- Move UNIMPLEMENTED to the proper DBG block
- Fix rtltypes.h compatibility with the PSDK/DDK
I hope this doesn't break anything, my tree is quite off-sync.

svn path=/trunk/; revision=19009
2005-11-05 06:44:03 +00:00
Brandon Turner 86c57a4368 define CONNECT_COMMANDLINE and CONNECT_CMD_SAVECRED
svn path=/trunk/; revision=18969
2005-11-03 01:10:24 +00:00
Gé van Geldorp 4f4eef04fd Sync to Wine-0_9:
Pierre d'Herbemont <[email protected]>
- Allow compilation on non-i386.
Huw Davies <[email protected]>
- When a dispinterface isn't dual, we should return
  TYPE_E_ELEMENTNOTFOUND when trying to get index -1.
- Proxies and stubs for GetTypeInfoCont, GetLibAttr and ReleaseLibAttr.
- Implement GetContainingTypelib_{Proxy,Stub}.

svn path=/trunk/; revision=18954
2005-11-02 19:28:16 +00:00
Gé van Geldorp 02d236693b ScoTTie <[email protected]>/erie-- <[email protected]>
Build fixes for FreeBSD

svn path=/trunk/; revision=18952
2005-11-02 16:13:00 +00:00
Royce Mitchell III 486e2e5a02 comment out incorrect #defines
svn path=/trunk/; revision=18948
2005-11-02 14:08:16 +00:00
Maarten Bosma 1287fda4c9 Remove DUMMYUNIONNAMEs since it fixes compile problems.
svn path=/trunk/; revision=18922
2005-11-01 09:48:01 +00:00
Magnus Olsen 5f33f3f7cd Correct One struct
svn path=/trunk/; revision=18892
2005-10-30 19:36:29 +00:00
Brandon Turner 200139b04d add definitions for VER_SUITE_SINGLEUSERTS and VER_SUITE_EMBEDDEDNT
svn path=/trunk/; revision=18865
2005-10-30 05:56:45 +00:00
Maarten Bosma d33a9b8143 Define the GUIDs and other stuff.
svn path=/trunk/; revision=18843
2005-10-29 10:55:45 +00:00
Maarten Bosma 53eca0bb47 Define COM-Interfaces for IDirectDrawKernel and SurfaceKernel and add a little typedef.
svn path=/trunk/; revision=18841
2005-10-29 10:33:12 +00:00
Maarten Bosma 4b06d87aad Implement some DirectDraw related COM-Interfaces.
svn path=/trunk/; revision=18829
2005-10-28 12:09:22 +00:00
Magnus Olsen 5e8becbfc2 adding include files for dplay/dplax wine include file with small modifycation.
svn path=/trunk/; revision=18806
2005-10-27 22:02:37 +00:00
Magnus Olsen 85312cc2fe adding #define DD_FALSE
svn path=/trunk/; revision=18721
2005-10-23 19:18:39 +00:00