Author: cwittich
Date: Sun Jul 8 23:34:23 2007
New Revision: 27511
URL:
http://svn.reactos.org/svn/reactos?rev=27511&view=rev
Log:
-fix some more compilation issues
Modified:
trunk/reactos/drivers/wdm/audio/backpln/portcls/adapter.c
trunk/reactos/drivers/wdm/audio/backpln/portcls/drm.c
trunk/reactos/drivers/wdm/audio/backpln/portcls/irp.c
trunk/reactos/drivers/wdm/audio/backpln/portcls/private.h
trunk/reactos/drivers/wdm/audio/backpln/portcls/stubs.c
trunk/reactos/drivers/wdm/audio/backpln/portcls/undoc.c
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/adapter.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/adapter.c (original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/adapter.c Sun Jul 8 23:34:23 2007
@@ -21,7 +21,7 @@
The AddDevice parameter is a driver-supplied pointer to a function which
typically then calls PcAddAdapterDevice (see below.)
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcInitializeAdapterDriver(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPathName,
@@ -89,7 +89,7 @@
The StartDevice parameter is a driver-supplied function which gets
called in response to IRP_MJ_PNP / IRP_MN_START_DEVICE.
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcAddAdapterDevice(
IN PDRIVER_OBJECT DriverObject,
IN PDEVICE_OBJECT PhysicalDeviceObject,
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/drm.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/drm.c (original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/drm.c Sun Jul 8 23:34:23 2007
@@ -14,7 +14,7 @@
#include <portcls.h>
#include <drmk.h>
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcAddContentHandlers(
IN ULONG ContentId,
IN PVOID *paHandlers,
@@ -23,7 +23,7 @@
return DrmAddContentHandlers(ContentId, paHandlers, NumHandlers);
}
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcCreateContentMixed(
IN PULONG paContentId,
IN ULONG cContentId,
@@ -32,14 +32,14 @@
return DrmCreateContentMixed(paContentId, cContentId, pMixedContentId);
}
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcDestroyContent(
IN ULONG ContentId)
{
return DrmDestroyContent(ContentId);
}
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcForwardContentToDeviceObject(
IN ULONG ContentId,
IN PVOID Reserved,
@@ -48,7 +48,7 @@
return DrmForwardContentToDeviceObject(ContentId, Reserved, DrmForward);
}
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcForwardContentToFileObject(
IN ULONG ContentId,
IN PFILE_OBJECT FileObject)
@@ -56,7 +56,7 @@
return DrmForwardContentToFileObject(ContentId, FileObject);
}
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcForwardContentToInterface(
IN ULONG ContentId,
IN PUNKNOWN pUnknown,
@@ -65,7 +65,7 @@
return DrmForwardContentToInterface(ContentId, pUnknown, NumMethods);
}
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcGetContentRights(
IN ULONG ContentId,
OUT PDRMRIGHTS DrmRights)
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/irp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/irp.c (original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/irp.c Sun Jul 8 23:34:23 2007
@@ -198,7 +198,7 @@
Drivers may implement their own IRP handlers. If a driver decides to let
PortCls handle the IRP, it can do so by calling this.
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcDispatchIrp(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
@@ -251,7 +251,7 @@
/*
* @unimplemented
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcCompleteIrp(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@@ -264,7 +264,7 @@
/*
* @unimplemented
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcForwardIrpSynchronous(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/private.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/private.h (original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/private.h Sun Jul 8 23:34:23 2007
@@ -7,7 +7,11 @@
#ifndef PORTCLS_PRIVATE_H
#define PORTCLS_PRIVATE_H
+/* windows.h should no be included my drivers at all */
+#ifndef _MSC_VER
#include <windows.h>
+#endif
+
#include <ntddk.h>
#include <debug.h>
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/stubs.c (original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/stubs.c Sun Jul 8 23:34:23 2007
@@ -19,7 +19,7 @@
/*
* @unimplemented
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcNewDmaChannel(
OUT PDMACHANNEL* OutDmaChannel,
IN PUNKNOWN OuterUnknown OPTIONAL,
@@ -34,7 +34,7 @@
/*
* @unimplemented
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcNewInterruptSync(
OUT PINTERRUPTSYNC* OUtInterruptSync,
IN PUNKNOWN OuterUnknown OPTIONAL,
@@ -49,7 +49,7 @@
/*
* @unimplemented
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcNewMiniport(
OUT PMINIPORT* OutMiniport,
IN REFCLSID ClassId)
@@ -61,7 +61,7 @@
/*
* @unimplemented
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcNewRegistryKey(
OUT PREGISTRYKEY* OutRegistryKey,
IN PUNKNOWN OuterUnknown OPTIONAL,
@@ -80,7 +80,7 @@
/*
* @unimplemented
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcNewServiceGroup(
OUT PSERVICEGROUP* OutServiceGroup,
IN PUNKNOWN OuterUnknown OPTIONAL)
@@ -97,7 +97,7 @@
/*
* @unimplemented
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcRegisterAdapterPowerManagement(
IN PUNKNOWN pUnknown,
IN PVOID pvContext1)
@@ -109,7 +109,7 @@
/*
* @unimplemented
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcRequestNewPowerState(
IN PDEVICE_OBJECT pDeviceObject,
IN DEVICE_POWER_STATE RequestedNewState)
@@ -126,7 +126,7 @@
/*
* @unimplemented
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcGetDeviceProperty(
IN PVOID DeviceObject,
IN DEVICE_REGISTRY_PROPERTY DeviceProperty,
@@ -141,7 +141,7 @@
/*
* @unimplemented
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcCompletePendingPropertyRequest(
IN PPCPROPERTY_REQUEST PropertyRequest,
IN NTSTATUS NtStatus)
@@ -158,7 +158,7 @@
/*
* @unimplemented
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcRegisterIoTimeout(
IN PDEVICE_OBJECT pDeviceObject,
IN PIO_TIMER_ROUTINE pTimerRoutine,
@@ -171,7 +171,7 @@
/*
* @unimplemented
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcUnregisterIoTimeout(
IN PDEVICE_OBJECT pDeviceObject,
IN PIO_TIMER_ROUTINE pTimerRoutine,
@@ -189,7 +189,7 @@
/*
* @unimplemented
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcRegisterPhysicalConnection(
IN PDEVICE_OBJECT DeviceObject,
IN PUNKNOWN FromUnknown,
@@ -204,7 +204,7 @@
/*
* @unimplemented
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcRegisterPhysicalConnectionFromExternal(
IN PDEVICE_OBJECT DeviceObject,
IN PUNICODE_STRING FromString,
@@ -219,7 +219,7 @@
/*
* @unimplemented
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcRegisterPhysicalConnectionToExternal(
IN PDEVICE_OBJECT DeviceObject,
IN PUNKNOWN FromUnknown,
@@ -239,7 +239,7 @@
/*
* @unimplemented
*/
-PORTCLASSAPI ULONGLONG NTAPI
+ULONGLONG NTAPI
PcGetTimeInterval(
IN ULONGLONG Since)
{
@@ -250,7 +250,7 @@
/*
* @unimplemented
*/
-PORTCLASSAPI NTSTATUS NTAPI
+NTSTATUS NTAPI
PcRegisterSubdevice(
IN PDEVICE_OBJECT DeviceObject,
IN PWCHAR Name,
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/undoc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/undoc.c (original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/undoc.c Sun Jul 8 23:34:23 2007
@@ -5,26 +5,26 @@
#include "private.h"
#include <portcls.h>
-PORTCLASSAPI NTSTATUS
+NTSTATUS
KsoDispatchCreateWithGenericFactory(
LONG Unknown,
PIRP Irp)
{
}
-PORTCLASSAPI void
+void
KsoGetIrpTargetFromFileObject(
LONG Unknown)
{
}
-PORTCLASSAPI void
+void
KsoGetIrpTargetFromIrp(
LONG Unknown)
{
}
-PORTCLASSAPI void
+void
PcAcquireFormatResources(
LONG Unknown,
LONG Unknown2,
@@ -33,7 +33,6 @@
{
}
-PORTCLASSAPI
NTSTATUS
PcAddToEventTable(
PVOID Ptr,
@@ -47,7 +46,6 @@
{
}
-PORTCLASSAPI
NTSTATUS
PcAddToPropertyTable(
PVOID Ptr,
@@ -58,7 +56,6 @@
{
}
-PORTCLASSAPI
NTSTATUS
PcCaptureFormat(
LONG Unknown,
@@ -68,7 +65,6 @@
{
}
-PORTCLASSAPI
NTSTATUS
PcCreateSubdeviceDescriptor(
/* TODO */ )