- Timestamp:
- Sep 1, 1999, 12:45:08 AM (26 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/conprop.cpp
r120 r767 1 /* $Id: conprop.cpp,v 1. 7 1999-06-19 10:54:40 sandervlExp $ */1 /* $Id: conprop.cpp,v 1.8 1999-08-31 22:44:33 phaller Exp $ */ 2 2 3 3 /* … … 1894 1894 1895 1895 1896 /***************************************************************************** 1897 * Name : APIRET EXPENTRY ConsolePropertyLoad 1898 * Funktion : load properties from registry 1899 * Parameter : PICONSOLEOPTIONS pConsoleOptions 1900 * Variablen : 1901 * Ergebnis : APIRET 1902 * Bemerkung : 1903 * 1904 * Autor : Patrick Haller [1998/06/13 23:20] 1905 *****************************************************************************/ 1906 1907 APIRET EXPENTRY ConsolePropertyLoad(PICONSOLEOPTIONS pConsoleOptions) 1908 { 1909 dprintf (("KERNEL32: Console:ConsolePropertyLoad(%08xh) not implemented.\n", 1910 pConsoleOptions)); 1911 1912 // HKEY_CURRENT_USER/SOFTWARE/ODIN/<process name>/<option name> 1913 1914 return (NO_ERROR); 1915 } 1916 1917 1918 1919 /***************************************************************************** 1920 * Name : APIRET EXPENTRY ConsolePropertySave 1921 * Funktion : save properties from registry 1922 * Parameter : PICONSOLEOPTIONS pConsoleOptions 1923 * Variablen : 1924 * Ergebnis : APIRET 1925 * Bemerkung : 1926 * 1927 * Autor : Patrick Haller [1998/06/13 23:20] 1928 *****************************************************************************/ 1929 1930 APIRET EXPENTRY ConsolePropertySave(PICONSOLEOPTIONS pConsoleOptions) 1931 { 1932 dprintf (("KERNEL32: Console:ConsolePropertySave(%08xh) not implemented.\n", 1933 pConsoleOptions)); 1934 1935 return (NO_ERROR); 1936 } 1937 1938 1939 /***************************************************************************** 1940 * Name : APIRET EXPENTRY ConsolePropertyApply 1941 * Funktion : apply properties in memory to the console window 1942 * Parameter : PICONSOLEOPTIONS pConsoleOptions 1943 * Variablen : 1944 * Ergebnis : APIRET 1945 * Bemerkung : 1946 * 1947 * Autor : Patrick Haller [1998/06/13 23:20] 1948 *****************************************************************************/ 1949 1950 APIRET EXPENTRY ConsolePropertyApply(PICONSOLEOPTIONS pConsoleOptions) 1951 { 1952 dprintf (("KERNEL32: Console:ConsolePropertyApply(%08xh) not implemented.\n", 1953 pConsoleOptions)); 1954 1955 return (NO_ERROR); 1956 } 1957 1958 1959 1896 1960 1897 1961 -
trunk/src/kernel32/conprop.h
r111 r767 1 /* $Id: conprop.h,v 1. 4 1999-06-17 18:21:39phaller Exp $ */1 /* $Id: conprop.h,v 1.5 1999-08-31 22:44:33 phaller Exp $ */ 2 2 3 3 /* … … 56 56 57 57 58 /* read console properties from EAs */59 APIRET EXPENTRY ConsoleProperty Read(PICONSOLEOPTIONS pConsoleOptions);58 /* read console properties */ 59 APIRET EXPENTRY ConsolePropertyLoad(PICONSOLEOPTIONS pConsoleOptions); 60 60 61 /* write console properties */ 62 APIRET EXPENTRY ConsolePropertySave(PICONSOLEOPTIONS pConsoleOptions); 61 63 62 /* write console properties to EAs */ 63 APIRET EXPENTRY ConsolePropertyWrite(PICONSOLEOPTIONS pConsoleOptions); 64 64 /* apply console properties */ 65 APIRET EXPENTRY ConsolePropertyApply(PICONSOLEOPTIONS pConsoleOptions); 65 66 66 67 #ifdef __cplusplus -
trunk/src/kernel32/console.cpp
r705 r767 1 /* $Id: console.cpp,v 1.1 2 1999-08-26 12:55:35 sandervlExp $ */1 /* $Id: console.cpp,v 1.13 1999-08-31 22:44:33 phaller Exp $ */ 2 2 3 3 /* … … 443 443 ConsoleGlobals.hConsoleBufferDefault = INVALID_HANDLE_VALUE; 444 444 ConsoleGlobals.hConsoleBuffer = INVALID_HANDLE_VALUE; 445 446 447 // defaults are effective, try to read and apply stored properties 448 if (ConsolePropertyLoad(&ConsoleGlobals.Options) == NO_ERROR) 449 ConsolePropertyApply(&ConsoleGlobals.Options); 445 450 446 451 … … 1100 1105 DLG_CONSOLE_PROPERTIES, 1101 1106 (PVOID)&ConsoleGlobals.Options); 1107 switch (ulResult) 1108 { 1109 case ID_BTN_SAVE: 1110 ConsolePropertySave(&ConsoleGlobals.Options); 1111 ConsolePropertyApply(&ConsoleGlobals.Options); 1112 break; 1113 1114 case ID_BTN_APPLY: 1115 ConsolePropertyApply(&ConsoleGlobals.Options); 1116 break; 1117 1118 default: break; 1119 } 1120 1102 1121 return (MPARAM) FALSE; 1103 1122 }
Note:
See TracChangeset
for help on using the changeset viewer.