[Box Backup-commit] COMMIT r944 - box/chris/merge/lib/win32
subversion@fluffy.co.uk
subversion@fluffy.co.uk
Sat, 02 Sep 2006 12:41:44 +0100
Author: chris
Date: 2006-09-02 12:41:44 +0100 (Sat, 02 Sep 2006)
New Revision: 944
Added:
box/chris/merge/lib/win32/messages.h
box/chris/merge/lib/win32/messages.mc
box/chris/merge/lib/win32/messages.rc
Log:
(refs #3)
Add message definitions and resource files
Added: box/chris/merge/lib/win32/messages.h
===================================================================
--- box/chris/merge/lib/win32/messages.h (rev 0)
+++ box/chris/merge/lib/win32/messages.h 2006-09-02 11:41:44 UTC (rev 944)
@@ -0,0 +1,57 @@
+ // Message source file, to be compiled to a resource file with
+ // Microsoft Message Compiler (MC), to an object file with a Resource
+ // Compiler, and linked into the application.
+
+ // The main reason for this file is to work around Windows' stupid
+ // messages in the Event Log, which say:
+
+ // The description for Event ID ( 4 ) in Source ( Box Backup (bbackupd) )
+ // cannot be found. The local computer may not have the necessary
+ // registry information or message DLL files to display messages from a
+ // remote computer. The following information is part of the event:
+ // Message definitions follow
+//
+// Values are 32 bit values layed out as follows:
+//
+// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
+// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
+// +---+-+-+-----------------------+-------------------------------+
+// |Sev|C|R| Facility | Code |
+// +---+-+-+-----------------------+-------------------------------+
+//
+// where
+//
+// Sev - is the severity code
+//
+// 00 - Success
+// 01 - Informational
+// 10 - Warning
+// 11 - Error
+//
+// C - is the Customer code flag
+//
+// R - is a reserved bit
+//
+// Facility - is the facility code
+//
+// Code - is the facility's status code
+//
+//
+// Define the facility codes
+//
+
+
+//
+// Define the severity codes
+//
+
+
+//
+// MessageId: MSG_ERR
+//
+// MessageText:
+//
+// %1
+//
+#define MSG_ERR ((DWORD)0x40000001L)
+
Property changes on: box/chris/merge/lib/win32/messages.h
___________________________________________________________________
Name: svn:executable
+ *
Added: box/chris/merge/lib/win32/messages.mc
===================================================================
--- box/chris/merge/lib/win32/messages.mc (rev 0)
+++ box/chris/merge/lib/win32/messages.mc 2006-09-02 11:41:44 UTC (rev 944)
@@ -0,0 +1,22 @@
+; // Message source file, to be compiled to a resource file with
+; // Microsoft Message Compiler (MC), to an object file with a Resource
+; // Compiler, and linked into the application.
+;
+; // The main reason for this file is to work around Windows' stupid
+; // messages in the Event Log, which say:
+;
+; // The description for Event ID ( 4 ) in Source ( Box Backup (bbackupd) )
+; // cannot be found. The local computer may not have the necessary
+; // registry information or message DLL files to display messages from a
+; // remote computer. The following information is part of the event:
+
+MessageIdTypedef = DWORD
+
+; // Message definitions follow
+
+MessageId = 0x1
+Severity = Informational
+SymbolicName = MSG_ERR
+Language = English
+%1
+.
Added: box/chris/merge/lib/win32/messages.rc
===================================================================
--- box/chris/merge/lib/win32/messages.rc (rev 0)
+++ box/chris/merge/lib/win32/messages.rc 2006-09-02 11:41:44 UTC (rev 944)
@@ -0,0 +1,2 @@
+LANGUAGE 0x9,0x1
+1 11 MSG00001.bin
Property changes on: box/chris/merge/lib/win32/messages.rc
___________________________________________________________________
Name: svn:executable
+ *