[ros-diffs] [akhaldi] 55242: [DDK] * Update drmk.h annotations.

akhaldi at svn.reactos.org akhaldi at svn.reactos.org
Fri Jan 27 13:52:37 UTC 2012


Author: akhaldi
Date: Fri Jan 27 13:52:36 2012
New Revision: 55242

URL: http://svn.reactos.org/svn/reactos?rev=55242&view=rev
Log:
[DDK]
* Update drmk.h annotations.

Modified:
    trunk/reactos/include/ddk/drmk.h

Modified: trunk/reactos/include/ddk/drmk.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/drmk.h?rev=55242&r1=55241&r2=55242&view=diff
==============================================================================
--- trunk/reactos/include/ddk/drmk.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/drmk.h [iso-8859-1] Fri Jan 27 13:52:36 2012
@@ -32,50 +32,56 @@
 extern "C" {
 #endif
 
+_IRQL_requires_max_(PASSIVE_LEVEL)
 NTSTATUS
 NTAPI
 DrmAddContentHandlers(
-  IN ULONG ContentId,
-  IN PVOID *paHandlers,
-  IN ULONG NumHandlers);
+  _In_ ULONG ContentId,
+  _In_reads_(NumHandlers) PVOID *paHandlers,
+  _In_ ULONG NumHandlers);
 
+_IRQL_requires_max_(PASSIVE_LEVEL)
 NTSTATUS
 NTAPI
 DrmCreateContentMixed(
-  IN PULONG paContentId,
-  IN ULONG cContentId,
-  OUT PULONG pMixedContentId);
+  _In_ PULONG paContentId,
+  _In_ ULONG cContentId,
+  _Out_ PULONG pMixedContentId);
 
+_IRQL_requires_max_(PASSIVE_LEVEL)
 NTSTATUS
 NTAPI
 DrmDestroyContent(
-  IN ULONG ContentId);
+  _In_ ULONG ContentId);
 
 NTSTATUS
 NTAPI
 DrmForwardContentToDeviceObject(
-  IN ULONG ContentId,
-  IN PVOID Reserved,
-  IN PCDRMFORWARD DrmForward);
+  _In_ ULONG ContentId,
+  _In_opt_ PVOID Reserved,
+  _In_ PCDRMFORWARD DrmForward);
 
+_IRQL_requires_max_(PASSIVE_LEVEL) 
 NTSTATUS
 NTAPI
 DrmForwardContentToFileObject(
-  IN ULONG ContentId,
-  IN PFILE_OBJECT FileObject);
+  _In_ ULONG ContentId,
+  _In_ PFILE_OBJECT FileObject);
 
+_IRQL_requires_max_(PASSIVE_LEVEL)
 NTSTATUS
 NTAPI
 DrmForwardContentToInterface(
-  IN ULONG ContentId,
-  IN PUNKNOWN pUnknown,
-  IN ULONG NumMethods);
+  _In_ ULONG ContentId,
+  _In_ PUNKNOWN pUnknown,
+  _In_ ULONG NumMethods);
 
+_IRQL_requires_max_(PASSIVE_LEVEL)
 NTSTATUS
 NTAPI
 DrmGetContentRights(
-  IN ULONG ContentId,
-  OUT PDRMRIGHTS DrmRights);
+  _In_ ULONG ContentId,
+  _Out_ PDRMRIGHTS DrmRights);
 
 #ifdef __cplusplus
 }
@@ -89,14 +95,14 @@
 
 DECLARE_INTERFACE_(IDrmAudioStream, IUnknown) {
   STDMETHOD_(NTSTATUS, QueryInterface)(THIS_
-    REFIID InterfaceId,
-    PVOID* Interface
+    _In_ REFIID InterfaceId,
+    _Out_ PVOID* Interface
   ) PURE;
   STDMETHOD_(ULONG,AddRef)(THIS) PURE;
   STDMETHOD_(ULONG,Release)(THIS) PURE;
   STDMETHOD_(NTSTATUS,SetContentId)(THIS_
-    IN ULONG ContentId,
-    IN PCDRMRIGHTS DrmRights
+    _In_ ULONG ContentId,
+    _In_ PCDRMRIGHTS DrmRights
   ) PURE;
 };
 
@@ -104,7 +110,7 @@
 
 #define IMP_IDrmAudioStream             \
   STDMETHODIMP_(NTSTATUS) SetContentId( \
-    IN ULONG ContentId,                 \
-    IN PCDRMRIGHTS DrmRights);
+    _In_ ULONG ContentId,                 \
+    _In_ PCDRMRIGHTS DrmRights);
 
 #endif /* DRMK_H */




More information about the Ros-diffs mailing list