  ; ===========================================
  ; ks.inc copyright MASM32 1998 - 2005
  ; ===========================================

IFNDEF KS_INC
KS_INC equ <1>

KoCreateInstance PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KoDeviceInitialize PROTO :DWORD
KoDriverInitialize PROTO :DWORD,:DWORD,:DWORD
KoRelease PROTO :DWORD
KsAcquireControl PROTO :DWORD
KsAcquireDevice PROTO :DWORD
KsAcquireDeviceSecurityLock PROTO :DWORD,:DWORD
KsAcquireResetValue PROTO :DWORD,:DWORD
KsAddDevice PROTO :DWORD,:DWORD
KsAddEvent PROTO :DWORD,:DWORD
KsAddIrpToCancelableQueue PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsAddItemToObjectBag PROTO :DWORD,:DWORD,:DWORD
KsAddObjectCreateItemToDeviceHeader PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsAddObjectCreateItemToObjectHeader PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsAllocateDefaultClock PROTO :DWORD
KsAllocateDefaultClockEx PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsAllocateDeviceHeader PROTO :DWORD,:DWORD,:DWORD
KsAllocateExtraData PROTO :DWORD,:DWORD,:DWORD
KsAllocateObjectBag PROTO :DWORD,:DWORD
KsAllocateObjectCreateItem PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsAllocateObjectHeader PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsCacheMedium PROTO :DWORD,:DWORD,:DWORD
KsCancelIo PROTO :DWORD,:DWORD
KsCancelRoutine PROTO :DWORD,:DWORD
KsCompletePendingRequest PROTO :DWORD
KsCopyObjectBagItems PROTO :DWORD,:DWORD
KsCreateAllocator PROTO :DWORD,:DWORD,:DWORD
KsCreateBusEnumObject PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsCreateClock PROTO :DWORD,:DWORD,:DWORD
KsCreateDefaultAllocator PROTO :DWORD
KsCreateDefaultAllocatorEx PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsCreateDefaultClock PROTO :DWORD,:DWORD
KsCreateDefaultSecurity PROTO :DWORD,:DWORD
KsCreateDevice PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsCreateFilterFactory PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsCreatePin PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsCreateTopologyNode PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsDecrementCountedWorker PROTO :DWORD
KsDefaultAddEventHandler PROTO :DWORD,:DWORD,:DWORD
KsDefaultDeviceIoCompletion PROTO :DWORD,:DWORD
KsDefaultDispatchPnp PROTO :DWORD,:DWORD
KsDefaultDispatchPower PROTO :DWORD,:DWORD
KsDefaultForwardIrp PROTO :DWORD,:DWORD
KsDereferenceBusObject PROTO :DWORD
KsDereferenceSoftwareBusObject PROTO :DWORD
KsDeviceGetBusData PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsDeviceRegisterAdapterObject PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsDeviceSetBusData PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsDisableEvent PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsDiscardEvent PROTO :DWORD
KsDispatchFastIoDeviceControlFailure PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsDispatchFastReadFailure PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsDispatchInvalidDeviceRequest PROTO :DWORD,:DWORD
KsDispatchIrp PROTO :DWORD,:DWORD
KsDispatchQuerySecurity PROTO :DWORD,:DWORD
KsDispatchSetSecurity PROTO :DWORD,:DWORD
KsDispatchSpecificMethod PROTO :DWORD,:DWORD
KsDispatchSpecificProperty PROTO :DWORD,:DWORD
KsEnableEvent PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsEnableEventWithAllocator PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsFastMethodHandler PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsFastPropertyHandler PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsFilterAcquireProcessingMutex PROTO :DWORD
KsFilterAddTopologyConnections PROTO :DWORD,:DWORD,:DWORD
KsFilterAttemptProcessing PROTO :DWORD,:DWORD
KsFilterCreateNode PROTO :DWORD,:DWORD,:DWORD
KsFilterCreatePinFactory PROTO :DWORD,:DWORD,:DWORD
KsFilterFactoryAddCreateItem PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsFilterFactoryGetSymbolicLink PROTO :DWORD
KsFilterFactorySetDeviceClassesState PROTO :DWORD,:DWORD
KsFilterFactoryUpdateCacheData PROTO :DWORD,:DWORD
KsFilterGetAndGate PROTO :DWORD
KsFilterGetChildPinCount PROTO :DWORD,:DWORD
KsFilterGetFirstChildPin PROTO :DWORD,:DWORD
KsFilterRegisterPowerCallbacks PROTO :DWORD,:DWORD,:DWORD
KsFilterReleaseProcessingMutex PROTO :DWORD
KsForwardAndCatchIrp PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsForwardIrp PROTO :DWORD,:DWORD,:DWORD
KsFreeDefaultClock PROTO :DWORD
KsFreeDeviceHeader PROTO :DWORD
KsFreeEventList PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsFreeObjectBag PROTO :DWORD
KsFreeObjectCreateItem PROTO :DWORD,:DWORD
KsFreeObjectCreateItemsByContext PROTO :DWORD,:DWORD
KsFreeObjectHeader PROTO :DWORD
KsGenerateDataEvent PROTO :DWORD,:DWORD,:DWORD
KsGenerateEvent PROTO :DWORD
KsGenerateEventList PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsGenerateEvents PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsGetBusEnumIdentifier PROTO :DWORD
KsGetBusEnumParentFDOFromChildPDO PROTO :DWORD,:DWORD
KsGetBusEnumPnpDeviceObject PROTO :DWORD,:DWORD
KsGetDefaultClockState PROTO :DWORD
KsGetDefaultClockTime PROTO :DWORD
KsGetDevice PROTO :DWORD
KsGetDeviceForDeviceObject PROTO :DWORD
KsGetFilterFromIrp PROTO :DWORD
KsGetFirstChild PROTO :DWORD
KsGetImageNameAndResourceId PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsGetNextSibling PROTO :DWORD
KsGetNodeIdFromIrp PROTO :DWORD
KsGetObjectFromFileObject PROTO :DWORD
KsGetObjectTypeFromFileObject PROTO :DWORD
KsGetObjectTypeFromIrp PROTO :DWORD
KsGetOuterUnknown PROTO :DWORD
KsGetParent PROTO :DWORD
KsGetPinFromIrp PROTO :DWORD
KsHandleSizedListQuery PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsIncrementCountedWorker PROTO :DWORD
KsInitializeDevice PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsInitializeDriver PROTO :DWORD,:DWORD,:DWORD
KsInstallBusEnumInterface PROTO :DWORD
KsIsBusEnumChildDevice PROTO :DWORD,:DWORD
KsLoadResource PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsMapModuleName PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsMergeAutomationTables PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsMethodHandler PROTO :DWORD,:DWORD,:DWORD
KsMethodHandlerWithAllocator PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsMoveIrpsOnCancelableQueue PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsNullDriverUnload PROTO :DWORD
KsPinAcquireProcessingMutex PROTO :DWORD
KsPinAttachAndGate PROTO :DWORD,:DWORD
KsPinAttachOrGate PROTO :DWORD,:DWORD
KsPinAttemptProcessing PROTO :DWORD,:DWORD
KsPinDataIntersection PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsPinGetAndGate PROTO :DWORD
KsPinGetAvailableByteCount PROTO :DWORD,:DWORD,:DWORD
KsPinGetConnectedFilterInterface PROTO :DWORD,:DWORD,:DWORD
KsPinGetConnectedPinDeviceObject PROTO :DWORD
KsPinGetConnectedPinFileObject PROTO :DWORD
KsPinGetConnectedPinInterface PROTO :DWORD,:DWORD,:DWORD
KsPinGetCopyRelationships PROTO :DWORD,:DWORD,:DWORD
KsPinGetFirstCloneStreamPointer PROTO :DWORD
KsPinGetLeadingEdgeStreamPointer PROTO :DWORD,:DWORD
KsPinGetNextSiblingPin PROTO :DWORD
KsPinGetParentFilter PROTO :DWORD
KsPinGetReferenceClockInterface PROTO :DWORD,:DWORD
KsPinGetTrailingEdgeStreamPointer PROTO :DWORD,:DWORD
KsPinPropertyHandler PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsPinRegisterFrameReturnCallback PROTO :DWORD,:DWORD
KsPinRegisterHandshakeCallback PROTO :DWORD,:DWORD
KsPinRegisterIrpCompletionCallback PROTO :DWORD,:DWORD
KsPinRegisterPowerCallbacks PROTO :DWORD,:DWORD,:DWORD
KsPinReleaseProcessingMutex PROTO :DWORD
KsPinSetPinClockTime PROTO :DWORD,:DWORD,:DWORD
KsPinSubmitFrame PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsPinSubmitFrameMdl PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsProbeStreamIrp PROTO :DWORD,:DWORD,:DWORD
KsProcessPinUpdate PROTO :DWORD
KsPropertyHandler PROTO :DWORD,:DWORD,:DWORD
KsPropertyHandlerWithAllocator PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsQueryDevicePnpObject PROTO :DWORD
KsQueryInformationFile PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsQueryObjectAccessMask PROTO :DWORD
KsQueryObjectCreateItem PROTO :DWORD
KsQueueWorkItem PROTO :DWORD,:DWORD
KsReadFile PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsRecalculateStackDepth PROTO :DWORD,:DWORD
KsReferenceBusObject PROTO :DWORD
KsReferenceSoftwareBusObject PROTO :DWORD
KsRegisterAggregatedClientUnknown PROTO :DWORD,:DWORD
KsRegisterCountedWorker PROTO :DWORD,:DWORD,:DWORD
KsRegisterFilterWithNoKSPins PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsRegisterWorker PROTO :DWORD,:DWORD
KsReleaseControl PROTO :DWORD
KsReleaseDevice PROTO :DWORD
KsReleaseDeviceSecurityLock PROTO :DWORD
KsReleaseIrpOnCancelableQueue PROTO :DWORD,:DWORD
KsRemoveBusEnumInterface PROTO :DWORD
KsRemoveIrpFromCancelableQueue PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsRemoveItemFromObjectBag PROTO :DWORD,:DWORD,:DWORD
KsRemoveSpecificIrpFromCancelableQueue PROTO :DWORD
KsServiceBusEnumCreateRequest PROTO :DWORD,:DWORD
KsServiceBusEnumPnpRequest PROTO :DWORD,:DWORD
KsSetDefaultClockState PROTO :DWORD,:DWORD
KsSetDefaultClockTime PROTO :DWORD,:DWORD,:DWORD
KsSetDevicePnpAndBaseObject PROTO :DWORD,:DWORD,:DWORD
KsSetInformationFile PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsSetMajorFunctionHandler PROTO :DWORD,:DWORD
KsSetPowerDispatch PROTO :DWORD,:DWORD,:DWORD
KsSetTargetDeviceObject PROTO :DWORD,:DWORD
KsSetTargetState PROTO :DWORD,:DWORD
KsStreamIo PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsStreamPointerAdvance PROTO :DWORD
KsStreamPointerAdvanceOffsets PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsStreamPointerAdvanceOffsetsAndUnlock PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsStreamPointerCancelTimeout PROTO :DWORD
KsStreamPointerClone PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsStreamPointerDelete PROTO :DWORD
KsStreamPointerGetIrp PROTO :DWORD,:DWORD,:DWORD
KsStreamPointerGetMdl PROTO :DWORD
KsStreamPointerGetNextClone PROTO :DWORD
KsStreamPointerLock PROTO :DWORD
KsStreamPointerScheduleTimeout PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsStreamPointerSetStatusCode PROTO :DWORD,:DWORD
KsStreamPointerUnlock PROTO :DWORD,:DWORD
KsSynchronousIoControlDevice PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsTerminateDevice PROTO :DWORD
KsTopologyPropertyHandler PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsUnregisterWorker PROTO :DWORD
KsUnserializeObjectPropertiesFromRegistry PROTO :DWORD,:DWORD,:DWORD
KsValidateAllocatorCreateRequest PROTO :DWORD,:DWORD
KsValidateAllocatorFramingEx PROTO :DWORD,:DWORD,:DWORD
KsValidateClockCreateRequest PROTO :DWORD,:DWORD
KsValidateConnectRequest PROTO :DWORD,:DWORD,:DWORD,:DWORD
KsValidateTopologyNodeCreateRequest PROTO :DWORD,:DWORD,:DWORD
KsWriteFile PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
KsiDefaultClockAddMarkEvent PROTO :DWORD,:DWORD,:DWORD
KsiPropertyDefaultClockGetCorrelatedPhysicalTime PROTO :DWORD,:DWORD,:DWORD
KsiPropertyDefaultClockGetCorrelatedTime PROTO :DWORD,:DWORD,:DWORD
KsiPropertyDefaultClockGetFunctionTable PROTO :DWORD,:DWORD,:DWORD
KsiPropertyDefaultClockGetPhysicalTime PROTO :DWORD,:DWORD,:DWORD
KsiPropertyDefaultClockGetResolution PROTO :DWORD,:DWORD,:DWORD
KsiPropertyDefaultClockGetState PROTO :DWORD,:DWORD,:DWORD
KsiPropertyDefaultClockGetTime PROTO :DWORD,:DWORD,:DWORD
KsiQueryObjectCreateItemsPresent PROTO :DWORD
_KsEdit PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD

ELSE
echo -----------------------------------------
echo WARNING Duplicate include file ks.inc
echo -----------------------------------------
ENDIF
