Sync with trunk r62754.
[reactos.git] / dll / cpl / sysdm / sysdm.c
index b9af469..64b489f 100644 (file)
@@ -24,6 +24,28 @@ APPLET Applets[NUM_APPLETS] =
 
 #define MAX_SYSTEM_PAGES    32
 
+
+INT
+ResourceMessageBox(
+    IN HINSTANCE hInstance,
+    IN HWND hwnd,
+    IN UINT uType,
+    IN UINT uCaption,
+    IN UINT uText)
+{
+    WCHAR szCaption[256];
+    WCHAR szText[256];
+
+    LoadStringW(hInstance, uCaption, szCaption, 256);
+    LoadStringW(hInstance, uText, szText, 256);
+
+    return MessageBoxW(hwnd,
+                       szText,
+                       szCaption,
+                       uType);
+}
+
+
 static BOOL CALLBACK
 PropSheetAddPage(HPROPSHEETPAGE hpage, LPARAM lParam)
 {