Commit graph

198 commits

Author SHA1 Message Date
Amine Khaldi 350dfd1b9d Sync with trunk head
svn path=/branches/header-work/; revision=46148
2010-03-12 20:08:06 +00:00
Amine Khaldi d9dd5c1f32 Fix (USERMODE=0) build :
[WMILIB]
- Add WmiSystemControl
[NDK]
- KeGetPcr : Correct KPCR member name

svn path=/branches/header-work/; revision=46146
2010-03-12 18:45:59 +00:00
Amine Khaldi b5e6da689b [PSDK]
- Move ntddkbd.h to PSDK
- Add several missing KEYBOARD_* definitions

svn path=/branches/header-work/; revision=46145
2010-03-12 18:32:40 +00:00
Amine Khaldi 97378505bd [BATTC]
- Correct BatteryClassSystemControl params
- Include wmlib.h
[WMLIB]
- Add WMIENABLEDISABLECONTROL and SYSCTL_IRP_DISPOSITION

svn path=/branches/header-work/; revision=46144
2010-03-12 18:25:50 +00:00
Timo Kreuzer 38b3788cbc [WDM]
- fix definition of KeTickCount
- Add KeQueryTickCount (note: MS version is very hacky. Someone tell them how to use DECLSPEC_IMPORT)

svn path=/branches/header-work/; revision=46143
2010-03-12 17:48:50 +00:00
Amine Khaldi fc648d6443 [NTIFS]
- Remove some redundant definitions (that exist in wdm.h)

svn path=/branches/header-work/; revision=46142
2010-03-12 17:17:51 +00:00
Timo Kreuzer 2bd64c4f15 Add a missing NTAPI
svn path=/branches/header-work/; revision=46140
2010-03-12 17:01:13 +00:00
Amine Khaldi 401b11a24d [NTIFS]
- Remove redundant IoSizeOfIrp, PoSetDeviceBusy and PPOWER_SETTING_CALLBACK definitions (They exist in wdm.h)

svn path=/branches/header-work/; revision=46139
2010-03-12 16:55:09 +00:00
Amine Khaldi d418c3b59e [WDM]
- Remove NTKERNELAPI from IoSetStartIoAttributes
[NTIFS]
- Group some related definitions

svn path=/branches/header-work/; revision=46138
2010-03-12 16:43:17 +00:00
Timo Kreuzer 16e291bd53 [PSDK]
- Add dpfilter.h
- batclass.h: Fix BatteryClassSystemControl
- ntdef.h: add ARGUMENT_PRESENT and PEXCEPTION_ROUTINE
[NDK]
- Add some ob functions
[DDK]
- add wmlib.h
- remove winddk.h
[WDM]
- include dpfilter.h
- Add ASSERT_GATE, ASSERT_TIMER, ASSERT_MUTANT, ASSERT_SEMAPHORE, ASSERT_EVENT, TIMER_TABLE_SIZE, TIMER_TABLE_SHIFT, ADDRESS_AND_SIZE_TO_SPAN_PAGES, PoRequestShutdownEvent
- Group architecture specific definitions (currently only x86)
- uncomment some _DECL_HAL_KE_IMPORT


svn path=/branches/header-work/; revision=46137
2010-03-12 16:37:33 +00:00
Amine Khaldi d663a6400c [NTIFS]
- Group related definitions
- Add FSRTL_AUXILIARY_BUFFER, FSRTL_AUXILIARY_FLAG_DEALLOCATE and several FsRtl*
- Update FILE_LOCK
- Missed FSRTL_COMMON_FCB_HEADER in my previous commit

svn path=/branches/header-work/; revision=46132
2010-03-12 14:39:26 +00:00
Amine Khaldi cff140ca5c [NTIFS]
- Group related definitions
- Add HalGetDmaAlignmentRequirement, MM_PREFETCH_FLAGS, MM_PREFETCH_FLAGS_MASK, EOF_WAIT_BLOCK and several FSRTL_*, Mm*, Ob*
- Update MmIsRecursiveIoFault, FSRTL_COMMON_FCB_HEADER and FSRTL_ADVANCED_FCB_HEADER

svn path=/branches/header-work/; revision=46131
2010-03-12 13:33:25 +00:00
Amine Khaldi b322069b82 [NTIFS]
- Add several missing Po* definitions

svn path=/branches/header-work/; revision=46130
2010-03-12 11:54:56 +00:00
Amine Khaldi 748cc2a52e [NTIFS]
- Group related definitions
- Add several Io* definitions
- Add IO_PRIORITY_INFO structure

svn path=/branches/header-work/; revision=46129
2010-03-12 11:40:01 +00:00
Amine Khaldi c08fe21411 [NTIFS]
- Group related definitions
- Add several Fs*, Io* and DO_* definitions

svn path=/branches/header-work/; revision=46128
2010-03-12 11:18:35 +00:00
Amine Khaldi b0425c73c7 [NTIFS]
- Group related definitions
- Update PsDereferencePrimaryToken and PsDereferenceImpersonationToken
- PsChargePoolQuota, PsReturnPoolQuota and PsChargeProcessPoolQuota : SIZE_T Amount -> ULONG_PTR Amount
- Add several missing IO_* and FS_FILTER_* definitions
- DRIVER_FS_NOTIFICATION : DriverActive -> FsActive

svn path=/branches/header-work/; revision=46126
2010-03-12 00:08:20 +00:00
Timo Kreuzer 8f6f02163e [NTDDK]
- move pHalGetAcpiTable, PCI_ERROR_HANDLER_CALLBACK, pHalSetPciErrorHandlerCallback, pHalIoAssignDriveLetters
- Add HAL_DISPATCH::pHalIoAssignDriveLetters
- add pre vista versions of pKdMapPhysicalMemory64 and pKdUnmapVirtualAddress
- Fix definition of HalDispatchTable

svn path=/branches/header-work/; revision=46125
2010-03-11 23:54:57 +00:00
Amine Khaldi 00c46ec5fd [NTIFS]
- Group related definitions
- SeSetSecurityDescriptorInfo : SecurityDescriptor -> ModificationDescriptor
- SeAuditingFileOrGlobalEvents : SubjectContext -> SubjectSecurityContext
- Add SeAuditHardLinkCreation, SeAuditHardLinkCreationWithTransaction, SeAuditTransactionStateChange, SeAuditingFileEventsWithContext, SeAuditingAnyFileEventsWithContext, SeAuditingHardLinkEvents, SeAuditingHardLinkEventsWithContext, SeExamineGlobalSacl and SeMaximumAuditMaskFromGlobalSacl

svn path=/branches/header-work/; revision=46124
2010-03-11 23:36:06 +00:00
Amine Khaldi 6ba208564c [NTIFS]
- Group related definitions
- Add SeOpenObjectAuditAlarmWithTransaction, SeOpenObjectForDeleteAuditAlarmWithTransaction, SeExamineSacl, SeDeleteObjectAuditAlarmWithTransaction, SeTokenIsWriteRestricted, SeFilterToken, SeQueryTokenIntegrity and SeSetSessionIdToken
- SeQueryAuthenticationIdToken : LogonId -> AuthenticationId
- SeCreateClientSecurity : Fix parameters' names
- SeCreateClientSecurityFromSubjectContext : QualityOfService -> ClientSecurityQos

svn path=/branches/header-work/; revision=46122
2010-03-11 23:07:52 +00:00
Amine Khaldi 5c43a755d3 [NTIFS]
- Group related definitions
- Add ExInitializePushLock, SeReportSecurityEventWithSubCategory, SeAccessCheckFromState, SeStopImpersonatingClient and TOKEN_* definitions
- Update SE_EXPORTS

svn path=/branches/header-work/; revision=46120
2010-03-11 22:33:08 +00:00
Amine Khaldi e99a9f8435 [NTIFS]
- Group related definitions
- Add InterlockedPushListSList, ExAdjustLookasideDepth and ExDisableResourceBoost
- Add some asserts

svn path=/branches/header-work/; revision=46105
2010-03-11 17:51:43 +00:00
Amine Khaldi 64b41a347e [NTDDK]
- Continue moving ntddk related definitions from winddk.h, fixing the conflicts caused by r46097
- pKdUnmapVirtualAddress and pKdMapPhysicalMemory64 : Add missing FlushCurrentTLB
- Update HAL_DISPATCH and HalDispatchTable definitions
- DDKAPI -> NTAPI
- IMAGE_INFO : Add missing ExtendedInfoPresent
- Update (X86) KPCR definition

svn path=/branches/header-work/; revision=46100
2010-03-11 17:27:44 +00:00
Timo Kreuzer 1524d1f1f6 [FREELDR] Include ntddk.h instead of winddk.h
[RAMDISK] Add missing DO_XIP definition (not in WDK/DDK)
[FASTFAT] Remove duplicate VOLUME_IS_DIRTY definition 
[HAL] Add case stubs for missing HAL_QUERY_INFORMATION_CLASS members
[NDK] Fix DbgPrompt prototype
[NTDDK] 
- Move from winddk.h: _KUSER_SHARED_DATA (updated), pHalIoAssignDriveLetters, PHAL_RESET_DISPLAY_PARAMETERS, HAL_DISPATCH, HalDispatchTable, PCREATE_PROCESS_NOTIFY_ROUTINE, PCREATE_THREAD_NOTIFY_ROUTINE, IMAGE_INFO, PLOAD_IMAGE_NOTIFY_ROUTINE, BUS_DATA_TYPE (updated), PROCESSINFOCLASS (updated), THREADINFOCLASS (updated), DISK_SIGNATURE, PTIMER_APC_ROUTINE, Exfi386InterlockedIncrementLong, Exfi386InterlockedDecrementLong, Exfi386InterlockedExchangeUlong
- Add pHalGetAcpiTable, PCI_ERROR_HANDLER_CALLBACK, pHalSetPciErrorHandlerCallback
[WDM] Add _DECL_HAL_KE_IMPORT, Reorder sections (types before functions)

svn path=/branches/header-work/; revision=46097
2010-03-11 14:49:41 +00:00
Timo Kreuzer 7494f42e77 [KTMTYPES]
Fix the UOW hack, use special case for C++
Thanks to Dmitry Gorbachev for the solution.

svn path=/branches/header-work/; revision=46094
2010-03-11 11:32:54 +00:00
Timo Kreuzer 1f40221394 [KMTYPES]
Add a compilation hack for gcc

svn path=/branches/header-work/; revision=46089
2010-03-11 00:47:36 +00:00
Amine Khaldi c057c45008 [NTDDK]
- Move several ntddk.h related definition from winddk.h
- Add IRP_MN_FLUSH_AND_PURGE and several DO_* definition
- Update HAL_QUERY_INFORMATION_CLASS and HAL_SET_INFORMATION_CLASS members
- Fix DEBUG_DEVICE_DESCRIPTOR structure definition

svn path=/branches/header-work/; revision=46088
2010-03-11 00:35:13 +00:00
Amine Khaldi adfb80dce0 [NTDDK]
- Move several ntddk.h related definition from winddk.h
- Group related definitions

svn path=/branches/header-work/; revision=46086
2010-03-10 23:49:42 +00:00
Amine Khaldi 6d8d8bb4ab [NTDDK]
- Move several ntddk.h related definition from winddk.h
- Group related definitions
- MmAllocateNonCachedMemory : ULONG NumberOfBytes -> SIZE_T NumberOfBytes
- DbgPrompt : Add NTSYSAPI and MaximumResponseLength -> Length
- RtlLargeIntegerDivide : static __inline -> __inline

svn path=/branches/header-work/; revision=46085
2010-03-10 23:45:06 +00:00
Amine Khaldi 4da3dca56f [NTDDK]
- Move several ntddk.h related definition from winddk.h
- Group related definitions
- ZwSetTimer : BOOLEAN WakeTimer -> BOOLEAN ResumeTimer
- IoWritePartitionTableEx : *PartitionBuffer -> *DriveLayout
- HalPutDmaAdapter : AdapterObject -> DmaAdapter
- MmAllocateNonCachedMemory : ULONG NumberOfBytes -> SIZE_T NumberOfBytes

svn path=/branches/header-work/; revision=46083
2010-03-10 23:09:27 +00:00
Timo Kreuzer 5158e51619 [NTIFS] Add back some members of OBJECT_INFORMATION_CLASS, with a comment that they are missing in WDK
svn path=/branches/header-work/; revision=46079
2010-03-10 22:23:12 +00:00
Timo Kreuzer d76f9f9a36 Add extern "C"
svn path=/branches/header-work/; revision=46078
2010-03-10 22:05:56 +00:00
Timo Kreuzer 25bb3c834b Add kmtypes.h
svn path=/branches/header-work/; revision=46074
2010-03-10 21:44:50 +00:00
Timo Kreuzer 5116769c9b [NTDEF] Add PROCESSOR_NUMBER
[NTDDK] Define only CONTEXT, not PCONTEXT, it is already defined by wdm.h, add missing #endif, move OSVERSIONINFO*, CONFIGURATION_TYPE, CONFIGURATION_INFORMATION,PIO_QUERY_DEVICE_ROUTINE, DRIVER_REINITIALIZE and PHYSICAL_MEMORY_RANGE from winddk, add RTL_SPLAY_LINKS

svn path=/branches/header-work/; revision=46071
2010-03-10 20:41:13 +00:00
Amine Khaldi ba51f319e5 [NTDDK]
- Move several ntddk.h related definition from winddk.h
- Group related definitions
- Add CONTEXT_XSTATE definition
- RtlUpperString and RtlCopyString : constify SourceString
- RtlCompareString and RtlEqualString : constify the first two params
- Update guards around IoAllocateAdapterChannel
- Remove duplicate IoRegisterBootDriverReinitialization

svn path=/branches/header-work/; revision=46064
2010-03-10 17:42:51 +00:00
Amine Khaldi 48343bce8c [NTIFS]
Remove RTL_SPLAY_LINKS definition

svn path=/branches/header-work/; revision=46060
2010-03-10 16:10:32 +00:00
Timo Kreuzer e0c972bf4e [FREELDR] Define _BLDR_ for WDK header compatibility
[HAL] Define _NTHALDLL_ for WDK header compatibility, get rif of DECLSPEC_IMPORT header hack
[NDK/RTL] Fix some Rtl prototypes (PCHAR -> PCCH)
[NDK] Fix ZwOpenEvent prototype
[NTIFS] Fix definition of NTKERNELAPI, move some types, fix PRTL_ALLOCATE_STRING_ROUTINE, PRTL_REALLOCATE_STRING_ROUTINE, PRTL_FREE_STRING_ROUTINE, define CTL_CODE, DEVICE_TYPE_FROM_CTL_CODE, FILE_ANY_ACCESS, FILE_SPECIAL_ACCESS, FILE_READ_ACCESS, FILE_WRITE_ACCESS identical to wdm.h, remove duplicate RtlGenerate8dot3Name, remove ZwOpenEvent
[NTPOAPI] Guard some types with #ifndef _PO_DDK_
[WDM] Create reactos compatible definition of NTKERNELAPI, add KDPC_WATCHDOG_INFORMATION, BATTERY_REPORTING_SCALE, fix ALIGN_UP_POINTER_BY, guard some types with #ifndef _PO_DDK_, update POWER_INFORMATION_LEVEL, make some FILE_DEVICE_ definitions identical to ntifs.h, fix HalAllocateCommonBuffer

svn path=/branches/header-work/; revision=46050
2010-03-10 04:16:52 +00:00
Timo Kreuzer ce0d1d6fe7 [ASM]
Don't check for _MSC_VER to decide if the assembly source is going to be compiled with ML or AS, instead check for _USE_ML
Fixes compiling .S files with AS, when using MSVC

svn path=/branches/header-work/; revision=46045
2010-03-10 00:31:06 +00:00
Amine Khaldi c7dddd299d [NTIFS]
- Group related definitions
- Add missing *_INCREMENT, SYSTEM_PAGE_PRIORITY_BITS, SYSTEM_PAGE_PRIORITY_LEVELS and INVALID_PROCESSOR_INDEX definitions
- KAPC_STATE : ApcListHead[2] -> ApcListHead[MaximumMode]
- KQUEUE : make CurrentCount volatile
- Add several missing Ke* functions declarations

svn path=/branches/header-work/; revision=46039
2010-03-09 18:03:40 +00:00
Amine Khaldi f731de8f45 [NTIFS]
- Group related definitions
- Add REPARSE_*, FILE_PIPE_CLIENT_PROCESS_BUFFER_EX, VIRTUAL_STORAGE_TYPE, STORAGE_QUERY_DEPENDENT_VOLUME_* and PUBLIC_OBJECT_* structures
- Add LINK_TRACKING_INFORMATION_TYPE, LINK_TRACKING_INFORMATION and REMOTE_LINK_TRACKING_INFORMATION enums
- Update OBJECT_INFORMATION_CLASS and FILE_PIPE_CLIENT_PROCESS_BUFFER definitions
- Add REPARSE_GUID_DATA_BUFFER_HEADER_SIZE, IsReparseTag*, FSCTL_LMR_* and FSCTL_PIPE_* macros
- Add missing MAXIMUM_REPARSE_DATA_BUFFER_SIZE, IO_REPARSE_TAG_*, FILE_PIPE_COMPUTER_NAME_LENGTH and QUERY_DEPENDENT_VOLUME_REQUEST_FLAG_* definitions

svn path=/branches/header-work/; revision=46037
2010-03-09 17:12:58 +00:00
Amine Khaldi bbd3c8b4e0 [NTIFS]
- More work on FS related structures and definitions

svn path=/branches/header-work/; revision=46036
2010-03-09 16:31:24 +00:00
Amine Khaldi 11dd9b69ab [NTIFS]
- Add several missing FS related enums, structures and definitions

svn path=/branches/header-work/; revision=46035
2010-03-09 16:02:52 +00:00
Amine Khaldi 62a30e7a24 [NTIFS]
- Group related definitions
- Add CSV_NAMESPACE_INFO, FSCTL_QUERY_FAT_BPB_BUFFER and several missing FS related structures and definitions
- Add a bunch of FSCTL_* macros

svn path=/branches/header-work/; revision=46034
2010-03-09 15:06:29 +00:00
Amine Khaldi eef0d5c8c9 [NTIFS]
- Group related definitions
- Add several missing Nt* function declarations
- Add REMOTE_PROTOCOL_FLAG_LOOPBACK, REMOTE_PROTOCOL_FLAG_OFFLINEseveral and several FILE_* definitions
- Add missing FILE_* structures

svn path=/branches/header-work/; revision=46033
2010-03-09 13:53:15 +00:00
Amine Khaldi 626fe6be42 - Add a couple of Lsa* function declarations
- Add missing MSV1_0* related definitions, enums, structs and macros

svn path=/branches/header-work/; revision=46030
2010-03-09 13:11:21 +00:00
Timo Kreuzer a93c72eafc revert part of 46020, adding back po types
svn path=/branches/header-work/; revision=46022
2010-03-09 00:45:15 +00:00
Amine Khaldi a00acb2a1b Sync with trunk head
svn path=/branches/header-work/; revision=46021
2010-03-09 00:19:55 +00:00
Timo Kreuzer 68ea0b876e - Move some definitions from wdm.h to ntpoapi.h
- Add ALIGN_DOWN_BY, ALIGN_UP_BY, ALIGN_DOWN_POINTER_BY, ALIGN_UP_POINTER_BY
- fix pshpack1.h inclusion
- PCHAR -> PSTR in RtlAssert

svn path=/branches/header-work/; revision=46020
2010-03-09 00:17:56 +00:00
Amine Khaldi eb68457183 [NTIFS]
- Group related definitions
- Add NtSetInformationThread function declaration
- Add SE_ADT_PARAMETER_TYPE enum
- Add SE_ADT_OBJECT_TYPE, SE_ADT_PARAMETER_ARRAY_ENTRY, SE_ADT_ACCESS_REASON and SE_ADT_PARAMETER_ARRAY structures
- Add SE_MAX_AUDIT_PARAMETERS, SE_MAX_GENERIC_AUDIT_PARAMETERS, SE_ADT_PARAMETERS_* and SE_ADT_PARAMETER_* definitions
- Add LSAP_SE_ADT_PARAMETER_ARRAY_TRUE_SIZE macro

svn path=/branches/header-work/; revision=46019
2010-03-08 23:02:39 +00:00
Amine Khaldi 79a0a4193d [NTIFS]
- Group related definitions
- Add several Rtl* function declarations
- Add RTL_SYSTEM_VOLUME_INFORMATION_FOLDER, DEVICE_TYPE, FILE_DEVICE_*, METHOD_* and FILE_*_ACCESS definitions
- Add CTL_CODE, DEVICE_TYPE_FROM_CTL_CODE and METHOD_FROM_CTL_CODE macros

svn path=/branches/header-work/; revision=46018
2010-03-08 22:30:14 +00:00
Amine Khaldi 302f7374fa [NTIFS]
- Group related definitions
- Add several Rtl* function declarations (See diff for details)
- Add MAX_UNICODE_STACK_BUFFER_LENGTH definition
- RtlConvertSidToUnicodeString : DestinationString -> UnicodeString

svn path=/branches/header-work/; revision=46014
2010-03-08 21:38:43 +00:00
Timo Kreuzer dfe13ea582 Add some types and contants to ntpoapi.h
svn path=/branches/header-work/; revision=46008
2010-03-08 21:00:56 +00:00
Timo Kreuzer 414f53a790 Add a bunch of Zw apis. (see diff for more details)
svn path=/branches/header-work/; revision=45999
2010-03-08 20:26:45 +00:00
Amine Khaldi e9165db831 [NTIFS]
- Group related definitions
- Add Nt{Open,Privilege,Close,Delete}ObjectAuditAlarm, NtPrivilegedServiceAuditAlarm, RtlRandom(Ex), RtlCaptureContext, RtlInit{Ansi,Unicode}StringEx, RtlUpcaseUnicodeStringTo(Counted)OemString, 
RtlIdnTo(Nameprep)Unicode, RtlValidateUnicodeString, RtlUnicodeStringToOemSize, RtlMultiByteToUnicodeN, RtlMultiByteToUnicodeSize, RtlUnicodeToMultiByteSize, RtlUnicodeToUTF8N, RtlUTF8ToUnicodeN, RtlUpcaseUnicodeToMultiByteN, RtlUnicodeToOemN, RtlUpcaseUnicodeToOemN, RtlNormalizeString, RtlIsNormalizedString, RtlIsValidOemCharacter, PfxInitialize, PfxInsertPrefix, RtlEqualPrefixSid, RtlFreeSid, RtlAllocateAndInitializeSid and RtlIdentifierAuthoritySid function declarations
- Add RTL_ALLOCATE_STRING_ROUTINE, RTL_REALLOCATE_STRING_ROUTINE and RTL_FREE_STRING_ROUTINE type definitions
- Add PREFIX_TABLE_ENTRY and PREFIX_TABLE structures
- Improve RtlGenerate8dot3Name definition
- Improve RtlFillMemoryUlong and add RtlFillMemoryUlonglong
- Add HEAP_SETTABLE_USER_{VALUE,FLAG1,FLAG2,FLAG3,FLAGS}, HEAP_CLASS_{0-8,MASK}, HEAP_MAXIMUM_TAG, HEAP_GLOBAL_TAG, HEAP_PSEUDO_TAG_FLAG, HEAP_TAG_SHIFT, HEAP_TAG_MASK and HEAP_CREATE_VALID_MASK definitions
- Add HEAP_MAKE_TAG_FLAGS inline function
- RtlAllocateHeap : HANDLE HeapHandle -> PVOID HeapHandle
- RtlFreeHeap : HANDLE HeapHandle -> PVOID HeapHandle and P -> BaseAddress
- RtlOemToUnicodeN : PCH OemString -> PCCH OemString
- Add RtlOffsetToPointer and RtlPointerToOffset macros

Dedicated to arty ;)

svn path=/branches/header-work/; revision=45998
2010-03-08 17:07:52 +00:00
Timo Kreuzer de77c58d94 [WDM]
reenable the ASSERT in IoSkipCurrentIrpStackLocation

svn path=/branches/header-work/; revision=45997
2010-03-08 05:00:38 +00:00
Amine Khaldi b9ef6c177a [NTIFS]
- Group related definitions
- Add POLICY_AUDIT_SUBCATEGORY_COUNT, _TOKEN_AUDIT_POLICY, _MANDATORY_LEVEL definitions
- Add NtOpen{Thread,Process}Token(Ex), NtOpenJobObjectToken, NtDuplicateToken, NtImpersonateAnonymousToken, Nt{Query,Set}InformationToken, NtAdjustPrivilegesToken, NtAdjustGroupsToken, NtPrivilegeCheck and NtAccessCheckAndAuditAlarm declarations
- Add NTSYSCALLAPI to NtFilterToken
- NtAccessCheckByType(ResultList)AndAuditAlarm(ByHandle) : Add NTSYSCALLAPI and HANDLE HandleId -> PVOID HandleId

svn path=/branches/header-work/; revision=45993
2010-03-07 15:37:53 +00:00
Timo Kreuzer 334def37f4 - comment out an ASSERT in IoSkipCurrentIrpStackLocation, because our kernel is broken
- Add a header to wdm.h
- add _NTLSA_IFS defines
- add NTAPI to SeLockSubjectContext
- add back CONST in ProbeForRead

svn path=/branches/header-work/; revision=45973
2010-03-07 03:53:47 +00:00
Timo Kreuzer 500d425261 Add KeRemoveByKeyDeviceQueueIfBusy, KeReleaseInStackQueuedSpinLock, KeDeregisterBugCheckReasonCallback, KeRegisterBugCheckReasonCallback, KeInitializeThreadedDpc, KeAcquireSpinLockForDpc, KeReleaseSpinLockForDpc, KeAcquireInStackQueuedSpinLockForDpc, KeReleaseInStackQueuedSpinLockForDpc, KeQueryDpcWatchdogInformation, KeSetSystemAffinityThreadEx, KeQueryActiveProcessorCount, KeQueryMaximumProcessorCount, KeRegisterProcessorChangeCallback, KeDeregisterProcessorChangeCallback, KeQueryTotalCycleTimeProcess, KeQueryTotalCycleTimeThread, KeSetTargetProcessorDpcEx, KeSetSystemGroupAffinityThread, KeRevertToUserGroupAffinityThread, KeSetCoalescableTimer, KeQueryUnbiasedInterruptTime, KeQueryActiveProcessorCountEx, KeQueryMaximumProcessorCountEx, KeQueryActiveGroupCount, KeQueryMaximumGroupCount, KeQueryGroupAffinity, KeGetCurrentProcessorNumberEx, KeQueryNodeActiveAffinity, KeQueryNodeMaximumProcessorCount, KeQueryHighestNodeNumber, KeGetCurrentNodeNumber, KeQueryLogicalProcessorRelationship, KeSaveExtendedProcessorState, KeRestoreExtendedProcessorState, SeObjectCreateSaclAccessBits, SeReleaseSubjectContext, SeUnlockSubjectContext, SeCaptureSubjectContext, SeLockSubjectContext, SeSetAuditParameter, SeReportSecurityEvent, SeComputeAutoInheritByObjectType, SeGetWorldRights, PoSetSystemWake, PoGetSystemWake, PoRegisterPowerSettingCallback, PoUnregisterPowerSettingCallback, PoSetDeviceBusyEx, PoStartDeviceBusy, PoEndDeviceBusy, PoQueryWatchdogTime, PoDeletePowerRequest, PoSetPowerRequest, PoClearPowerRequest, PoCreatePowerRequest
- add NTAPI to KeEnterGuardedRegion

svn path=/branches/header-work/; revision=45970
2010-03-07 01:05:54 +00:00
Timo Kreuzer c924e7681c Add some Win7 version defines
svn path=/branches/header-work/; revision=45968
2010-03-06 22:50:52 +00:00
Timo Kreuzer 9ed3649c24 [WDM]
- Update DISPATCHER_HEADER, based on latest WDK, with "in2003 compatibility fixes
- add Vmcs to INTERFACE_TYPE enum

svn path=/branches/header-work/; revision=45965
2010-03-06 21:52:34 +00:00
Amine Khaldi faa0a7047f [NTIFS]
- Group related definitions
- Add _SE_SECURITY_DESCRIPTOR, _SE_ACCESS_REQUEST, _SE_ACCESS_REPLY, _SE_AUDIT_OPERATION, _SE_AUDIT_INFO, _TOKEN_LINKED_TOKEN, _TOKEN_ELEVATION, _TOKEN_MANDATORY_LABEL, TOKEN_MANDATORY_POLICY_OFF, TOKEN_MANDATORY_POLICY_NO_WRITE_UP, TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN, TOKEN_MANDATORY_POLICY_VALID_MASK, _TOKEN_MANDATORY_POLICY and  _TOKEN_ACCESS_INFORMATION definitions
- Introduce TOKEN_ALL_ACCESS_P definition and use it to improve TOKEN_ALL_ACCESS definition
- Add missing _TOKEN_INFORMATION_CLASS members

svn path=/branches/header-work/; revision=45964
2010-03-06 19:56:40 +00:00
Amine Khaldi e69c87c63e [NTIFS]
Actually add the definitions mentioned in the previous commit

svn path=/branches/header-work/; revision=45963
2010-03-06 19:31:27 +00:00
Amine Khaldi 4535940119 [NTIFS]
- Group related definitions
- Add ACCESS_OBJECT_GUID, ACCESS_PROPERTY_SET_GUID, ACCESS_PROPERTY_GUID, ACCESS_MAX_LEVEL, ACCESS_DS_SOURCE_A, ACCESS_DS_SOURCE_W, ACCESS_DS_OBJECT_TYPE_NAME_A, ACCESS_DS_OBJECT_TYPE_NAME_W, ACCESS_REASON_TYPE_MASK, ACCESS_REASON_DATA_MASK, _ACCESS_REASON_TYPE, ACCESS_REASON, _ACCESS_REASONS, SE_SECURITY_DESCRIPTOR_FLAG_NO_OWNER_ACE, SE_SECURITY_DESCRIPTOR_FLAG_NO_LABEL_ACE and SE_SECURITY_DESCRIPTOR_VALID_FLAGS
- Remove _AUDIT_EVENT_TYPE_HACK == 0 condition around _AUDIT_EVENT_TYPE

svn path=/branches/header-work/; revision=45962
2010-03-06 19:26:30 +00:00
Timo Kreuzer 26d4a0c37d - globally disable warnings for char array subscripts
- include ntifs.h in bootvid, kdcom, ramdisk, freeldr
- define SINGLE_GROUP_LEGACY_API for the kernel
- Add back missing prototypes: IoFreeAdapterChannel, IoMapTransfer, IoFlushAdapterBuffers, IoFreeMapRegisters, HalAllocateCommonBuffer, HalFreeCommonBuffer, HalReadDmaCounter
- add missing NTAPI to KeQueryActiveProcessors

svn path=/branches/header-work/; revision=45961
2010-03-06 18:55:27 +00:00
Timo Kreuzer d29802813d - Add PMDLX
- MmProbeAndLockProcessPages is win2k, not XP
- update CM_PARTIAL_RESOURCE_DESCRIPTOR
- comment out some ExInterlocked functions for x86

svn path=/branches/header-work/; revision=45905
2010-03-06 02:21:20 +00:00
Timo Kreuzer 3416602d2f [WDM]
- KPROCESSOR_MODE is CCHAR
- add PF_XSAVE_ENABLED, SEC_COMMIT
- KeSaveFloatingPointState and KeRestoreFloatingPointState are x86 only

svn path=/branches/header-work/; revision=45904
2010-03-06 01:07:32 +00:00
Amine Khaldi 5748c28965 - Remove ntddk include from ntoskrnl.h
- NTIFS : tagTOKEN_TYPE -> _TOKEN_TYPE
- Remove redundant MmFlushImageSection definition from winddk
- Add _BUS_HANDLER struct forwarder
- Guard ifssupp.h with #ifndef _NTIFS_ condition
- Add WAIT_TYPE, LOGICAL and PLOGICAL definitions to ntdef.h and get rid of the incorrect ones in winddk.h
- Group related *_POWER_* definitions 
- Move PKSYNCHRONIZE_ROUTINE and POOL_TYPE to the kernel types section
- PDEVICE_OBJECT  DeviceObject -> struct _DEVICE_OBJECT  *DeviceObject in some cases
- PIRP Irp -> struct _IRP  *Irp in some cases

svn path=/branches/header-work/; revision=45903
2010-03-06 00:59:29 +00:00
Amine Khaldi 9a06fb6a0d [NTIFS]
- Group related definitions
- Correct ACCESS_MAX_MS_V5_ACE_TYPE definition
- Add SYSTEM_MANDATORY_LABEL_ACE_TYPE, SUCCESSFUL_ACCESS_ACE_FLAG, FAILED_ACCESS_ACE_FLAG, SYSTEM_MANDATORY_LABEL_NO_WRITE_UP, SYSTEM_MANDATORY_LABEL_NO_READ_UP, SYSTEM_MANDATORY_LABEL_NO_EXECUTE_UP and SYSTEM_MANDATORY_LABEL_VALID_MASK definitions

svn path=/branches/header-work/; revision=45902
2010-03-05 23:11:56 +00:00
Amine Khaldi 01815bddf0 [NTIFS]
- Group related definitions
- Add SID_AND_ATTRIBUTES_HASH struct
- Add SID_HASH_SIZE, SID_HASH_ENTRY, *PSID_HASH_ENTRY, SECURITY_LOCAL_LOGON_RID, SECURITY_CRED_TYPE_BASE_RID, SECURITY_CRED_TYPE_RID_COUNT, SECURITY_CRED_TYPE_THIS_ORG_CERT_RID, SECURITY_USERMODEDRIVERHOST_ID_BASE_RID, SECURITY_USERMODEDRIVERHOST_ID_RID_COUNT, SECURITY_CLOUD_INFRASTRUCTURE_SERVICES_ID_BASE_RID, SECURITY_CLOUD_INFRASTRUCTURE_SERVICES_ID_RID_COUNT, SECURITY_WMIHOST_ID_BASE_RID, SECURITY_WMIHOST_ID_RID_COUNT, SECURITY_TASK_ID_BASE_RID, SECURITY_NFS_ID_BASE_RID, SECURITY_COM_ID_BASE_RID, SECURITY_VIRTUALACCOUNT_ID_RID_COUNT and SECURITY_WINDOWSMOBILE_ID_BASE_RID definitions

svn path=/branches/header-work/; revision=45900
2010-03-05 22:51:28 +00:00
Timo Kreuzer 7bf74e86d2 add _WDMDDK_ include guard
svn path=/branches/header-work/; revision=45899
2010-03-05 22:50:11 +00:00
Amine Khaldi 6f5be9aba2 [NTIFS]
- Introduce #pragma once
- Add missing includes
- Add some struct forwarders
- Add PsGetCurrentProcess, KeNumberProcessors, LSA_UNICODE_STRING, *PLSA_UNICODE_STRING, LSA_OBJECT_ATTRIBUTES and *PLSA_OBJECT_ATTRIBUTES definitions
- Add SID_NAME_USE enum
- Group related definitions

svn path=/branches/header-work/; revision=45898
2010-03-05 22:36:10 +00:00
Amine Khaldi 142386dd70 - Move MMFLUSH_TYPE enum from winddk.h to ntifs.h
- Remove redundant definitions from winddk.h : ObInsertObject, ObMakeTemporaryObject, ObOpenObjectByPointer, ObQueryObjectAuditingByHandle, ZwDeviceIoControlFile and ZwWaitForSingleObject
- ObInsertObject : AdditionalReferences -> ObjectPointerBias and ReferencedObject -> NewObject

Happy birthday Andy ! :)

svn path=/branches/header-work/; revision=45897
2010-03-05 21:51:34 +00:00
Amine Khaldi 3dab427010 HalFreeCommonBuffer and HalReadDmaCounter :
- Move them from winddk.h to wdm.h and make them inline functions
- NTHALAPI -> FORCEINLINE
- PADAPTER_OBJECT  AdapterObject -> PDMA_ADAPTER DmaAdapter

svn path=/branches/header-work/; revision=45896
2010-03-05 21:03:42 +00:00
Amine Khaldi 76bb478173 HalAllocateCommonBuffer :
- Move it from winddk.h to wdm.h and make it an inline function
- NTHALAPI -> FORCEINLINE
- PADAPTER_OBJECT  AdapterObject -> PDMA_ADAPTER DmaAdapter

svn path=/branches/header-work/; revision=45895
2010-03-05 20:57:21 +00:00
Amine Khaldi b7de91f3bf - Move more stuff to wdm.h
- Add NTAPI back to some Io* definitions
- Remove some redundant Io* definitions

svn path=/branches/header-work/; revision=45894
2010-03-05 20:40:37 +00:00
Amine Khaldi f7910da58e - Move more stuff to wdm.h
- DbgPrint(Ex) : PCCH  Format -> PCSTR  Format
- Add NTSYSAPI to vDbgPrintEx(WithPrefix)
- DbgPrintReturnControlC and Dbg{Set,Query}DebugFilterState : NTKERNELAPI -> NTSYSAPI
- Add vKdPrintExWithPrefix definition
- Improve the conditions around KdDebuggerEnabled and KdDebuggerNotPresent definitions

svn path=/branches/header-work/; revision=45890
2010-03-05 19:56:44 +00:00
Amine Khaldi 775b7007f8 - Move more stuff to wdm.h
- Improve more Po* and Zw* definitions

svn path=/branches/header-work/; revision=45888
2010-03-05 18:56:48 +00:00
Amine Khaldi d1a7b6136c - Move more stuff to wdm.h
- Improve more Ps* and Se* definitions

svn path=/branches/header-work/; revision=45877
2010-03-05 18:20:08 +00:00
Amine Khaldi a8a908e214 - Move more stuff to wdm.h
- Improve more Ob* definitions

svn path=/branches/header-work/; revision=45876
2010-03-05 18:06:58 +00:00
Amine Khaldi ce32e52bfc - Move more stuff to wdm.h
- Improve more Mm* definitions

svn path=/branches/header-work/; revision=45875
2010-03-05 17:41:41 +00:00
Amine Khaldi 42fde03fe1 - Move more stuff to wdm.h
- Improve more Ke* definitions

svn path=/branches/header-work/; revision=45871
2010-03-05 16:18:23 +00:00
Amine Khaldi 2c852bf801 More work on USB related definitions
svn path=/branches/header-work/; revision=45870
2010-03-05 13:32:58 +00:00
Amine Khaldi e488e6e43c More work on USB related definitions
svn path=/branches/header-work/; revision=45867
2010-03-05 12:25:38 +00:00
Amine Khaldi 78a63975f8 More work on USB related definitions
svn path=/branches/header-work/; revision=45866
2010-03-05 12:07:35 +00:00
Amine Khaldi 749428da20 More work on USB related definitions
svn path=/branches/header-work/; revision=45865
2010-03-05 11:58:34 +00:00
Amine Khaldi 73cc29ce32 More work on USB related definitions
svn path=/branches/header-work/; revision=45864
2010-03-05 11:44:11 +00:00
Amine Khaldi 97e7fd6cb6 More work on USB related definitions
svn path=/branches/header-work/; revision=45863
2010-03-05 11:12:29 +00:00
Amine Khaldi a7ffadade2 More work on USB related definitions
svn path=/branches/header-work/; revision=45861
2010-03-05 09:56:28 +00:00
Timo Kreuzer c76dfd5cb8 - Convert the members of PCI_COMMON_HEADER into a #define to avoid inheritance on C++, which would render the type a non-POD, causing compilation errors.
- IoInitializeDpcRequest expects PIO_DPC_ROUTINE as 2nd parameter, fix callers.
- While FILE_CHARACTERISTIC_PNP_DEVICE is defined in the DDK/WDK, _SYSTEM_INFORMATION_CLASS is not, fix include guards in ntddk_ex.h
- add InterlockedBitTestAndSet64 and InterlockedBitTestAndReset64 for amd64
- Fix definition of NLS_MB_CODE_PAGE_TAG for gcc
- Fix parameters of DMA inline functions
- remove duplicate IoAllocateAdapterChannel
- Everything compiles again -> Amine, your turn :)

svn path=/branches/header-work/; revision=45858
2010-03-05 04:03:34 +00:00
Amine Khaldi 7ff52a15bf More work on USB related definitions
svn path=/branches/header-work/; revision=45856
2010-03-05 01:12:11 +00:00
Amine Khaldi 9605671f96 More work on USB related definitions
svn path=/branches/header-work/; revision=45854
2010-03-05 01:07:08 +00:00
Amine Khaldi 846448c7ab More work on USB related definitions
svn path=/branches/header-work/; revision=45853
2010-03-05 00:54:36 +00:00
Timo Kreuzer 0651773e46 Fix TdiBuildBaseIrp by adding the missing ;
svn path=/branches/header-work/; revision=45852
2010-03-05 00:34:26 +00:00
Timo Kreuzer 9a46e3d7d6 add back missing IoAllocateAdapterChannel
svn path=/branches/header-work/; revision=45851
2010-03-05 00:31:37 +00:00
Amine Khaldi 4a9a65ab2a More work on USB related definitions
svn path=/branches/header-work/; revision=45850
2010-03-05 00:15:36 +00:00
Amine Khaldi 1ff2c4916b More work on USB related definitions
svn path=/branches/header-work/; revision=45849
2010-03-05 00:08:17 +00:00
Amine Khaldi 19adca9597 More work on USB related definitions
svn path=/branches/header-work/; revision=45848
2010-03-04 23:57:29 +00:00
Amine Khaldi 5fbb30c493 More work on USB related definitions
svn path=/branches/header-work/; revision=45846
2010-03-04 22:58:41 +00:00
Timo Kreuzer dc0ed8a742 A bit more cleanup and sorting
svn path=/branches/header-work/; revision=45818
2010-03-03 23:48:30 +00:00
Timo Kreuzer 38322160da - sort wdm.h a bit more
- add missing NTAPI
- move TIMER_TYPE to ntdef.h
- remove duplicate port and register functions
- add volatile keyword where appropriate to register access inline functions
- Use result variable in IoGetRemainingStackSize inline function to avoid a warning

svn path=/branches/header-work/; revision=45816
2010-03-03 23:02:02 +00:00
Amine Khaldi a8a844c5e5 - Move more stuff to wdm.h
- Improve more Io* and Ke* definitions

svn path=/branches/header-work/; revision=45807
2010-03-03 21:06:23 +00:00