--- /dev/null
+/*
+ * PROJECT: ReactOS DDK
+ * COPYRIGHT: This file is in the Public Domain.
+ * FILE: driverspecs.h
+ * ABSTRACT: This header stubs out Driver Verifier annotations to
+ * allow drivers using them to compile with our header set.
+ */
+
+//
+// Stubs
+//
+#define __drv_dispatchType(x)
+#define __drv_dispatchType_other
+
+//
+// FIXME: These annotations are not driver-only and does not belong here
+//
+#define __in
+#define __in_bcount(Size)
+#define __in_ecount(Size)
+
+#define __out
+#define __out_bcount(Size)
+#define __out_bcount_part(Size, Length)
+#define __out_ecount(Size)
+
+#define __inout
+
+#define __deref_out_ecount(Size)
\ No newline at end of file
DEFINE_GUID(GUID_DEVINTERFACE_COMPORT,
0x86e0d1e0L, 0x8089, 0x11d0, 0x9c, 0xe4, 0x08, 0x00, 0x3e, 0x30, 0x1f, 0x73);
+#define GUID_CLASS_COMPORT GUID_DEVINTERFACE_COMPORT
+
DEFINE_GUID(GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR,
0x4D36E978L, 0xE325, 0x11CE, 0xBF, 0xC1, 0x08, 0x00, 0x2B, 0xE1, 0x03, 0x18);
+#define GUID_SERENUM_BUS_ENUMERATOR GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR
+
#define IOCTL_SERIAL_CLEAR_STATS \
CTL_CODE (FILE_DEVICE_SERIAL_PORT, 36, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SERIAL_CLR_DTR \
//
typedef unsigned long DWORD;
-#ifndef UNIMPLEMENTED
-#define UNIMPLEMENTED DbgPrint("WARNING: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__);
-#endif
-
/* PRIVATE FUNCTIONS *********************************************************/
-FORCEINLINE
+__inline
NTSTATUS
NTAPI
RtlStringLengthWorkerA(IN PCHAR String,
return Status;
}
-FORCEINLINE
+__inline
NTSTATUS
NTAPI
RtlStringValidateDestA(IN PCHAR Destination,
return Status;
}
-FORCEINLINE
+__inline
NTSTATUS
NTAPI
RtlStringExValidateDestA(IN OUT PCHAR *Destination,
IN SIZE_T MaxLength,
IN DWORD Flags)
{
- //ASSERTMSG("We don't support Extended Flags yet!\n", Flags == 0);
+ ASSERTMSG("We don't support Extended Flags yet!\n", Flags == 0);
return RtlStringValidateDestA(*Destination,
*DestinationLength,
ReturnLength,
MaxLength);
}
-FORCEINLINE
+__inline
NTSTATUS
NTAPI
RtlStringExValidateSrcA(IN OUT PCCHAR *Source OPTIONAL,
IN DWORD Flags)
{
NTSTATUS Status = STATUS_SUCCESS;
- //ASSERTMSG("We don't support Extended Flags yet!\n", Flags == 0);
+ ASSERTMSG("We don't support Extended Flags yet!\n", Flags == 0);
if ((ReturnLength) && (*ReturnLength >= MaxLength))
{
return Status;
}
-FORCEINLINE
+__inline
NTSTATUS
NTAPI
RtlStringVPrintfWorkerA(OUT PCHAR Destination,
return Status;
}
-FORCEINLINE
+__inline
NTSTATUS
NTAPI
RtlStringCopyWorkerA(OUT PCHAR Destination,
/* PUBLIC FUNCTIONS **********************************************************/
+__inline
+NTSTATUS
+NTAPI
+RtlStringCchCopyA(IN PCHAR Destination,
+ IN SIZE_T cchDest,
+ IN PCCHAR pszSrc)
+{
+ ASSERTMSG("RtlStringCchCopyA is UNIMPLEMENTED!\n", FALSE);
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+__inline
NTSTATUS
NTAPI
RtlStringCbPrintfA(OUT PCHAR Destination,
return Status;
}
+__inline
NTSTATUS
NTAPI
RtlStringCbPrintfExA(OUT PCHAR Destination,
SIZE_T CharLength = Length / sizeof(CHAR), Remaining, LocalNewLength = 0;
PCHAR LocalDestinationEnd;
va_list argList;
- //ASSERTMSG("We don't support Extended Flags yet!\n", Flags == 0);
+ ASSERTMSG("We don't support Extended Flags yet!\n", Flags == 0);
Status = RtlStringExValidateDestA(&Destination,
&CharLength,
return Status;
}
-FORCEINLINE
+__inline
NTSTATUS
NTAPI
RtlStringCbCopyExA(OUT PCHAR Destination,
NTSTATUS Status;
SIZE_T CharLength = Length / sizeof(CHAR), Copied = 0, Remaining;
PCHAR LocalDestinationEnd;
- //ASSERTMSG("We don't support Extended Flags yet!\n", Flags == 0);
+ ASSERTMSG("We don't support Extended Flags yet!\n", Flags == 0);
Status = RtlStringExValidateDestA(&Destination,
&Length,
return Status;
}
-
+__inline
NTSTATUS
NTAPI
RtlStringCbPrintfW(
IN LPCWSTR pszFormat,
...)
{
- UNIMPLEMENTED
+ ASSERTMSG("RtlStringCbPrintfW is UNIMPLEMENTED!\n", FALSE);
return STATUS_NOT_IMPLEMENTED;
}
-FORCEINLINE
+__inline
NTSTATUS
NTAPI
RtlStringCbCatExA(IN OUT PCHAR Destination,
SIZE_T CharLength = Length / sizeof(CHAR);
SIZE_T DestinationLength, Remaining, Copied = 0;
PCHAR LocalDestinationEnd;
- //ASSERTMSG("We don't support Extended Flags yet!\n", Flags == 0);
+ ASSERTMSG("We don't support Extended Flags yet!\n", Flags == 0);
Status = RtlStringExValidateDestA(&Destination,
&CharLength,
return Status;
}
-FORCEINLINE
+__inline
NTSTATUS
NTAPI
RtlStringCbCopyA(OUT PCHAR Destination,