- Fixed line endings.
authorFilip Navara <filip.navara@gmail.com>
Sun, 28 Mar 2004 09:52:18 +0000 (09:52 +0000)
committerFilip Navara <filip.navara@gmail.com>
Sun, 28 Mar 2004 09:52:18 +0000 (09:52 +0000)
svn path=/trunk/; revision=8897

reactos/apps/utils/driver/load/load.c
reactos/apps/utils/driver/unload/unload.c

index 61aaa89..3b18003 100644 (file)
@@ -1,32 +1,32 @@
-/*\r
- * Load a device driver\r
- */ \r
-#include <windows.h>\r
-#include <ntos/zw.h>\r
-\r
-int\r
-main(int argc, char *argv[])\r
-{\r
-   NTSTATUS Status;\r
-   UNICODE_STRING ServiceName;\r
-\r
-   if (argc != 2)\r
-   {\r
-      printf("Usage: load <ServiceName>\n");\r
-      return 0;\r
-   }\r
-   ServiceName.Length = (strlen(argv[1]) + 52) * sizeof(WCHAR);\r
-   ServiceName.Buffer = (LPWSTR)malloc(ServiceName.Length + sizeof(UNICODE_NULL));\r
-   wsprintf(ServiceName.Buffer,\r
-      L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\%S",\r
-      argv[1]);\r
-   wprintf(L"%s %d %d\n", ServiceName.Buffer, ServiceName.Length, wcslen(ServiceName.Buffer));\r
-   Status = NtLoadDriver(&ServiceName);\r
-   free(ServiceName.Buffer);\r
-   if (!NT_SUCCESS(Status))\r
-   {\r
-      printf("Failed: %X\n", Status);\r
-      return 1;\r
-   }\r
-   return 0;\r
-}\r
+/*
+ * Load a device driver
+ */ 
+#include <windows.h>
+#include <ntos/zw.h>
+
+int
+main(int argc, char *argv[])
+{
+   NTSTATUS Status;
+   UNICODE_STRING ServiceName;
+
+   if (argc != 2)
+   {
+      printf("Usage: load <ServiceName>\n");
+      return 0;
+   }
+   ServiceName.Length = (strlen(argv[1]) + 52) * sizeof(WCHAR);
+   ServiceName.Buffer = (LPWSTR)malloc(ServiceName.Length + sizeof(UNICODE_NULL));
+   wsprintf(ServiceName.Buffer,
+      L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\%S",
+      argv[1]);
+   wprintf(L"%s %d %d\n", ServiceName.Buffer, ServiceName.Length, wcslen(ServiceName.Buffer));
+   Status = NtLoadDriver(&ServiceName);
+   free(ServiceName.Buffer);
+   if (!NT_SUCCESS(Status))
+   {
+      printf("Failed: %X\n", Status);
+      return 1;
+   }
+   return 0;
+}
index 09f8225..3e843d4 100644 (file)
@@ -1,32 +1,32 @@
-/*\r
- * Unload a device driver\r
- */ \r
-#include <windows.h>\r
-#include <ntos/zw.h>\r
-\r
-int\r
-main(int argc, char *argv[])\r
-{\r
-   NTSTATUS Status;\r
-   UNICODE_STRING ServiceName;\r
-\r
-   if (argc != 2)\r
-   {\r
-      printf("Usage: unload <ServiceName>\n");\r
-      return 0;\r
-   }\r
-   ServiceName.Length = (strlen(argv[1]) + 52) * sizeof(WCHAR);\r
-   ServiceName.Buffer = (LPWSTR)malloc(ServiceName.Length + sizeof(UNICODE_NULL));\r
-   wsprintf(ServiceName.Buffer,\r
-      L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\%S",\r
-      argv[1]);\r
-   wprintf(L"%s %d %d\n", ServiceName.Buffer, ServiceName.Length, wcslen(ServiceName.Buffer));\r
-   Status = NtUnloadDriver(&ServiceName);\r
-   free(ServiceName.Buffer);\r
-   if (!NT_SUCCESS(Status))\r
-   {\r
-      printf("Failed: %X\n", Status);\r
-      return 1;\r
-   }\r
-   return 0;\r
-}\r
+/*
+ * Unload a device driver
+ */ 
+#include <windows.h>
+#include <ntos/zw.h>
+
+int
+main(int argc, char *argv[])
+{
+   NTSTATUS Status;
+   UNICODE_STRING ServiceName;
+
+   if (argc != 2)
+   {
+      printf("Usage: unload <ServiceName>\n");
+      return 0;
+   }
+   ServiceName.Length = (strlen(argv[1]) + 52) * sizeof(WCHAR);
+   ServiceName.Buffer = (LPWSTR)malloc(ServiceName.Length + sizeof(UNICODE_NULL));
+   wsprintf(ServiceName.Buffer,
+      L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\%S",
+      argv[1]);
+   wprintf(L"%s %d %d\n", ServiceName.Buffer, ServiceName.Length, wcslen(ServiceName.Buffer));
+   Status = NtUnloadDriver(&ServiceName);
+   free(ServiceName.Buffer);
+   if (!NT_SUCCESS(Status))
+   {
+      printf("Failed: %X\n", Status);
+      return 1;
+   }
+   return 0;
+}