[ros-diffs] [hpoussin] 31000: Use win types when possible

hpoussin at svn.reactos.org hpoussin at svn.reactos.org
Tue Dec 4 17:40:12 CET 2007


Author: hpoussin
Date: Tue Dec  4 19:40:12 2007
New Revision: 31000

URL: http://svn.reactos.org/svn/reactos?rev=31000&view=rev
Log:
Use win types when possible

Modified:
    trunk/reactos/base/services/umpnpmgr/umpnpmgr.c

Modified: trunk/reactos/base/services/umpnpmgr/umpnpmgr.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/umpnpmgr/umpnpmgr.c?rev=31000&r1=30999&r2=31000&view=diff
==============================================================================
--- trunk/reactos/base/services/umpnpmgr/umpnpmgr.c (original)
+++ trunk/reactos/base/services/umpnpmgr/umpnpmgr.c Tue Dec  4 19:40:12 2007
@@ -194,14 +194,14 @@
 /* Function 5 */
 CONFIGRET
 PNP_ReportLogOn(handle_t BindingHandle,
-                unsigned long Admin,
-                unsigned long ProcessId)
+                BOOL Admin,
+                DWORD ProcessId)
 {
     HANDLE hProcess;
 
     UNREFERENCED_PARAMETER(BindingHandle);
 
-    DPRINT1("PNP_ReportLogOn(%lu, %lu) called\n", Admin, ProcessId);
+    DPRINT1("PNP_ReportLogOn(%u, %u) called\n", Admin, ProcessId);
 
     /* Get the users token */
     hProcess = OpenProcess(PROCESS_ALL_ACCESS,
@@ -233,7 +233,7 @@
 CONFIGRET
 PNP_ValidateDeviceInstance(handle_t BindingHandle,
                            wchar_t *DeviceInstance,
-                           unsigned long Flags)
+                           DWORD Flags)
 {
     CONFIGRET ret = CR_SUCCESS;
     HKEY hDeviceKey = NULL;
@@ -270,7 +270,7 @@
 CONFIGRET
 PNP_GetRootDeviceInstance(handle_t BindingHandle,
                           wchar_t *DeviceInstance,
-                          unsigned long Length)
+                          DWORD Length)
 {
     CONFIGRET ret = CR_SUCCESS;
 
@@ -297,11 +297,11 @@
 /* Function 8 */
 CONFIGRET
 PNP_GetRelatedDeviceInstance(handle_t BindingHandle,
-                             unsigned long Relationship,
+                             DWORD Relationship,
                              wchar_t *DeviceId,
                              wchar_t *RelatedDeviceId,
-                             unsigned long Length,
-                             unsigned long Flags)
+                             DWORD Length,
+                             DWORD Flags)
 {
     PLUGPLAY_CONTROL_RELATED_DEVICE_DATA PlugPlayData;
     CONFIGRET ret = CR_SUCCESS;
@@ -343,11 +343,11 @@
 /* Function 9 */
 CONFIGRET
 PNP_EnumerateSubKeys(handle_t BindingHandle,
-                     unsigned long Branch,
-                     unsigned long Index,
+                     DWORD Branch,
+                     DWORD Index,
                      wchar_t *Buffer,
-                     unsigned long Length,
-                     unsigned long *RequiredLength,
+                     DWORD Length,
+                     DWORD *RequiredLength,
                      DWORD Flags)
 {
     CONFIGRET ret = CR_SUCCESS;
@@ -458,11 +458,11 @@
 CONFIGRET
 PNP_GetDeviceRegProp(handle_t BindingHandle,
                      wchar_t *DeviceInstance,
-                     unsigned long Property,
-                     unsigned long *DataType,
+                     DWORD Property,
+                     DWORD *DataType,
                      char *Buffer,
-                     unsigned long *TransferLen,
-                     unsigned long *Length,
+                     DWORD *TransferLen,
+                     DWORD *Length,
                      DWORD Flags)
 {
     PLUGPLAY_CONTROL_PROPERTY_DATA PlugPlayData;
@@ -1316,11 +1316,11 @@
 /* Function 40 */
 CONFIGRET
 PNP_HwProfFlags(handle_t BindingHandle,
-                unsigned long Action,
+                DWORD Action,
                 wchar_t *DeviceId,
-                unsigned long ProfileId,
-                unsigned long *Value, // out
-                unsigned long Flags)
+                DWORD ProfileId,
+                DWORD *Value, // out
+                DWORD Flags)
 {
     CONFIGRET ret = CR_SUCCESS;
 




More information about the Ros-diffs mailing list