[Box Backup-commit] COMMIT r1117 - box/trunk/lib/win32

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Fri Oct 27 20:12:30 BST 2006


Author: chris
Date: 2006-10-27 20:12:30 +0100 (Fri, 27 Oct 2006)
New Revision: 1117

Added:
   box/trunk/lib/win32/messages.h
   box/trunk/lib/win32/messages.mc
   box/trunk/lib/win32/messages.rc
Log:
Add message definitions and resource files.


Copied: box/trunk/lib/win32/messages.h (from rev 944, box/chris/merge/lib/win32/messages.h)
===================================================================
--- box/trunk/lib/win32/messages.h	                        (rev 0)
+++ box/trunk/lib/win32/messages.h	2006-10-27 19:12:30 UTC (rev 1117)
@@ -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/trunk/lib/win32/messages.h
___________________________________________________________________
Name: svn:executable
   + *

Copied: box/trunk/lib/win32/messages.mc (from rev 944, box/chris/merge/lib/win32/messages.mc)
===================================================================
--- box/trunk/lib/win32/messages.mc	                        (rev 0)
+++ box/trunk/lib/win32/messages.mc	2006-10-27 19:12:30 UTC (rev 1117)
@@ -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
+.

Copied: box/trunk/lib/win32/messages.rc (from rev 944, box/chris/merge/lib/win32/messages.rc)
===================================================================
--- box/trunk/lib/win32/messages.rc	                        (rev 0)
+++ box/trunk/lib/win32/messages.rc	2006-10-27 19:12:30 UTC (rev 1117)
@@ -0,0 +1,2 @@
+LANGUAGE 0x9,0x1
+1 11 MSG00001.bin


Property changes on: box/trunk/lib/win32/messages.rc
___________________________________________________________________
Name: svn:executable
   + *




More information about the Boxbackup-commit mailing list