Ignore:
Timestamp:
May 28, 2001, 11:17:55 AM (24 years ago)
Author:
phaller
Message:

Split GDI32 into ICM and GDI32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/gdi32.cpp

    r5760 r5813  
    1 /* $Id: gdi32.cpp,v 1.70 2001-05-19 19:43:53 sandervl Exp $ */
     1/* $Id: gdi32.cpp,v 1.71 2001-05-28 09:17:54 phaller Exp $ */
    22
    33/*
     
    13951395}
    13961396//******************************************************************************
    1397 //******************************************************************************
    1398 UINT WIN32API DeleteColorSpace(                                              /*KSO Thu 21.05.1998*/
    1399         HCOLORSPACE hColorSpace
    1400         )
    1401 {
    1402         dprintf(("GDI32: DeleteColorSpace - stub\n"));
    1403         return FALSE;
    1404 }
    1405 //******************************************************************************
    1406 //******************************************************************************
    1407 BOOL WIN32API SetColorSpace(                                                 /*KSO Thu 21.05.1998*/
    1408         HDC     hdc,
    1409         HCOLORSPACE hColorSpace
    1410         )
    1411 {
    1412         dprintf(("GDI32: SetColorSpace - stub\n"));
    1413         return FALSE;
    1414 }
    1415 //******************************************************************************
    1416 //******************************************************************************
    1417  HCOLORSPACE WIN32API CreateColorSpaceA(                             /*KSO Thu 21.05.1998*/
    1418         LPLOGCOLORSPACEA lpLogColorSpace
    1419         )
    1420 {
    1421         dprintf(("GDI32: CreateColorSpaceA - stub\n"));
    1422         return 0;
    1423 }
    1424 //******************************************************************************
    1425 //******************************************************************************
    1426 HCOLORSPACE WIN32API CreateColorSpaceW(                              /*KSO Thu 21.05.1998*/
    1427         LPLOGCOLORSPACEW lpwLogColorSpace
    1428         )
    1429 {
    1430         dprintf(("GDI32: CreateColorSpaceW - stub\n"));
    1431         return 0;
    1432 }
    1433 //******************************************************************************
    1434 //******************************************************************************
    1435 HANDLE WIN32API GetColorSpace(                                               /*KSO Thu 21.05.1998*/
    1436         HDC hdc
    1437         )
    1438 {
    1439         dprintf(("GDI32: GetColorSpace - stub\n"));
    1440         return 0;
    1441 }
    1442 //******************************************************************************
    1443 //******************************************************************************
    1444 int WIN32API SetICMMode(                                                             /*KSO Thu 21.05.1998*/
    1445         HDC hdc,
    1446         int mode
    1447         )
    1448 {
    1449         dprintf(("GDI32: SetICMMode - stub\n"));
    1450         return 0;
    1451 }
    1452 //******************************************************************************
    1453 
    1454 
    14551397
    14561398
     
    14721414  dprintf(("GDI32: CancelDC(%08xh) not implemented.\n",
    14731415           hdc));
    1474 
    1475   return (FALSE);
    1476 }
    1477 
    1478 
    1479 /*****************************************************************************
    1480  * Name      : BOOL CheckColorsInGamut
    1481  * Purpose   : The CheckColorsInGamut function indicates whether the specified
    1482  *             color values are within the gamut of the specified device.
    1483  * Parameters: HDC    hdc        handle of device context
    1484  *             LPVOID lpaRGBQuad
    1485  *             LPVOID lpResult
    1486  *             DWORD  dwResult
    1487  * Variables :
    1488  * Result    : TRUE / FALSE
    1489  * Remark    :
    1490  * Status    : UNTESTED STUB
    1491  *
    1492  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    1493  *****************************************************************************/
    1494 
    1495 BOOL WIN32API CheckColorsInGamut(HDC    hdc,
    1496                                     LPVOID lpaRGBQuad,
    1497                                     LPVOID lpResult,
    1498                                     DWORD  dwResult)
    1499 {
    1500   dprintf(("GDI32: CheckColorsInGamut(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
    1501            hdc,
    1502            lpaRGBQuad,
    1503            lpResult,
    1504            dwResult));
    1505 
    1506   return (FALSE);
    1507 }
    1508 
    1509 
    1510 /*****************************************************************************
    1511  * Name      : BOOL ColorMatchToTarget
    1512  * Purpose   : The ColorMatchToTarget function enables or disables preview for
    1513  *             the specified device context. When preview is enabled, colors
    1514  *             in subsequent output to the specified device context are
    1515  *             displayed as they would appear on the target device. This is
    1516  *             useful for checking how well the target maps the specified
    1517  *             colors in an image. To enable preview, image color matching
    1518  *             must be enabled for both the target and the preview device context.
    1519  * Parameters: HDC    hdc        handle of device context
    1520  *             HDC    hdcTarget  handle of target device context
    1521  *             DWORD  uiAction
    1522  * Variables :
    1523  * Result    : TRUE / FALSE
    1524  * Remark    :
    1525  * Status    : UNTESTED STUB
    1526  *
    1527  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    1528  *****************************************************************************/
    1529 
    1530 BOOL WIN32API ColorMatchToTarget(HDC   hdc,
    1531                                     HDC   hdcTarget,
    1532                                     DWORD uiAction)
    1533 {
    1534   dprintf(("GDI32: ColorMatchToTarget(%08xh,%08xh,%08xh) not implemented.\n",
    1535            hdc,
    1536            hdcTarget,
    1537            uiAction));
    15381416
    15391417  return (FALSE);
     
    15891467
    15901468  return (TRUE);
    1591 }
    1592 
    1593 
    1594 
    1595 
    1596 
    1597 /*****************************************************************************
    1598  * Name      : int EnumICMProfilesA
    1599  * Purpose   : The EnumICMProfilesA function enumerates the different color
    1600  *             profiles that the system supports for the specified device context.
    1601  * Parameters: HDC         hdc
    1602  *             ICMENUMPROC lpICMEnumFunc
    1603  *             LPARAM      lParam
    1604  * Variables :
    1605  * Result    : TRUE / FALSE
    1606  * Remark    :
    1607  * Status    : UNTESTED STUB
    1608  *
    1609  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    1610  *****************************************************************************/
    1611 
    1612 int WIN32API EnumICMProfilesA(HDC         hdc,
    1613                                  ICMENUMPROCA lpICMEnumProc,
    1614                                  LPARAM      lParam)
    1615 {
    1616   dprintf(("GDI32: EnumICMProfilesA(%08xh, %08xh, %08xh) not implemented(-1).\n",
    1617            hdc,
    1618            lpICMEnumProc,
    1619            lParam));
    1620 
    1621   return (-1);
    1622 }
    1623 
    1624 
    1625 /*****************************************************************************
    1626  * Name      : int EnumICMProfilesW
    1627  * Purpose   : The EnumICMProfilesW function enumerates the different color
    1628  *             profiles that the system supports for the specified device context.
    1629  * Parameters: HDC         hdc
    1630  *             ICMENUMPROC lpICMEnumFunc
    1631  *             LPARAM      lParam
    1632  * Variables :
    1633  * Result    : TRUE / FALSE
    1634  * Remark    :
    1635  * Status    : UNTESTED STUB
    1636  *
    1637  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    1638  *****************************************************************************/
    1639 
    1640 int WIN32API EnumICMProfilesW(HDC          hdc,
    1641                               ICMENUMPROCW lpICMEnumProc,
    1642                               LPARAM       lParam)
    1643 {
    1644   dprintf(("GDI32: EnumICMProfilesW(%08xh, %08xh, %08xh) not implemented (-1).\n",
    1645            hdc,
    1646            lpICMEnumProc,
    1647            lParam));
    1648 
    1649   return (-1);
    16501469}
    16511470
     
    18091628  return (0);
    18101629}
    1811 
    1812 
    1813 /*****************************************************************************
    1814  * Name      : DWORD GetDeviceGammaRamp
    1815  * Purpose   : The GetDeviceGammaRamp function retrieves the gamma ramp on
    1816  *             direct color display boards.
    1817  * Parameters: HDC     hdc        handle to device context
    1818  *             LPVOID  lpRamp     Gamma ramp array
    1819  * Variables :
    1820  * Result    :
    1821  * Remark    :
    1822  * Status    : UNTESTED STUB
    1823  *
    1824  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    1825  *****************************************************************************/
    1826 
    1827 DWORD WIN32API GetDeviceGammaRamp(HDC    hdc,
    1828                                      LPVOID lpRamp)
    1829 {
    1830   dprintf(("GDI32: GetDeviceGammaRamp(%08xh, %08xh) not implemented.\n",
    1831            hdc,
    1832            lpRamp));
    1833 
    1834   return (FALSE);
    1835 }
    1836 
    1837 
    1838 
    1839 
    1840 /*****************************************************************************
    1841  * Name      : BOOL GetICMProfileA
    1842  * Purpose   : The GetICMProfileA function retrieves the name of the color
    1843  *             profile file for the device associated with the specified device
    1844  *             context.
    1845  * Parameters: HDC     hdc        handle to device context
    1846  *             DWORD   cbName
    1847  *             LPTSTR  lpszFilename
    1848  * Variables :
    1849  * Result    : TRUE / FALSE
    1850  * Remark    :
    1851  * Status    : UNTESTED STUB
    1852  *
    1853  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    1854  *****************************************************************************/
    1855 
    1856 BOOL WIN32API GetICMProfileA(HDC    hdc,
    1857                                 DWORD  cbName,
    1858                                 LPTSTR lpszFilename)
    1859 {
    1860   dprintf(("GDI32: GetICMProfileA(%08xh, %08xh, %08xh) not implemented.\n",
    1861            hdc,
    1862            cbName,
    1863            lpszFilename));
    1864 
    1865   return (FALSE);
    1866 }
    1867 
    1868 
    1869 /*****************************************************************************
    1870  * Name      : BOOL GetICMProfileW
    1871  * Purpose   : The GetICMProfileW function retrieves the name of the color
    1872  *             profile file for the device associated with the specified device
    1873  *             context.
    1874  * Parameters: HDC     hdc        handle to device context
    1875  *             DWORD   cbName
    1876  *             LPWSTR  lpszFilename
    1877  * Variables :
    1878  * Result    : TRUE / FALSE
    1879  * Remark    :
    1880  * Status    : UNTESTED STUB
    1881  *
    1882  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    1883  *****************************************************************************/
    1884 
    1885 BOOL WIN32API GetICMProfileW(HDC    hdc,
    1886                                 DWORD  cbName,
    1887                                 LPTSTR lpszFilename)
    1888 {
    1889   dprintf(("GDI32: GetICMProfileW(%08xh, %08xh, %08xh) not implemented.\n",
    1890            hdc,
    1891            cbName,
    1892            lpszFilename));
    1893 
    1894   return (FALSE);
    1895 }
    1896 
    1897 
    1898 /*****************************************************************************
    1899  * Name      : BOOL GetLogColorSpaceA
    1900  * Purpose   : The GetLogColorSpace function retrieves information about the
    1901  *             logical color space identified by the specified handle.
    1902  * Parameters: HCOLORSPACE     hColorSpace
    1903  *             LPLOGCOLORSPACE lpbuffer
    1904  *             DWORD           nSize
    1905  * Variables :
    1906  * Result    : TRUE / FALSE
    1907  * Remark    :
    1908  * Status    : UNTESTED STUB
    1909  *
    1910  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    1911  *****************************************************************************/
    1912 
    1913 #define LPLOGCOLORSPACE LPVOID
    1914 BOOL WIN32API GetLogColorSpaceA(HCOLORSPACE     hColorSpace,
    1915                                    LPLOGCOLORSPACE lpBuffer,
    1916                                    DWORD           nSize)
    1917 {
    1918   dprintf(("GDI32: GetLogColorSpaceA(%08xh, %08xh, %08xh) not implemented.\n",
    1919            hColorSpace,
    1920            lpBuffer,
    1921            nSize));
    1922 
    1923   return (FALSE);
    1924 }
    1925 
    1926 
    1927 /*****************************************************************************
    1928  * Name      : BOOL GetLogColorSpaceW
    1929  * Purpose   : The GetLogColorSpace function retrieves information about the
    1930  *             logical color space identified by the specified handle.
    1931  * Parameters: HCOLORSPACE     hColorSpace
    1932  *             LPLOGCOLORSPACE lpbuffer
    1933  *             DWORD           nSize
    1934  * Variables :
    1935  * Result    : TRUE / FALSE
    1936  * Remark    :
    1937  * Status    : UNTESTED STUB
    1938  *
    1939  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    1940  *****************************************************************************/
    1941 
    1942 BOOL WIN32API GetLogColorSpaceW(HCOLORSPACE     hColorSpace,
    1943                                    LPLOGCOLORSPACE lpBuffer,
    1944                                    DWORD           nSize)
    1945 {
    1946   dprintf(("GDI32: GetLogColorSpaceW(%08xh, %08xh, %08xh) not implemented.\n",
    1947            hColorSpace,
    1948            lpBuffer,
    1949            nSize));
    1950 
    1951   return (FALSE);
    1952 }
    1953 
    1954 
    1955 /*****************************************************************************
    1956  * Name      : BOOL SetDeviceGammaRamp
    1957  * Purpose   : The SetDeviceGammaRamp function sets the gamma ramp on direct
    1958  *             color display boards.
    1959  * Parameters: HDC    hdc   handle of device context
    1960  *             LPVOID lpRamp
    1961  * Variables :
    1962  * Result    : TRUE / FALSE
    1963  * Remark    :
    1964  * Status    : UNTESTED STUB
    1965  *
    1966  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    1967  *****************************************************************************/
    1968 
    1969 BOOL WIN32API SetDeviceGammaRamp(HDC    hdc,
    1970                                     LPVOID lpRamp)
    1971 {
    1972   dprintf(("GDI32: SetDeviceGammaRamp(%08xh, %08xh) not implemented.\n",
    1973            hdc,
    1974            lpRamp));
    1975 
    1976   return (FALSE);
    1977 }
    1978 
    1979 
    1980 /*****************************************************************************
    1981  * Name      : BOOL SetICMProfileA
    1982  * Purpose   : The SetICMProfileA function sets the color profile for the
    1983  *             specified device context.
    1984  * Parameters: HDC    hdc   handle of device context
    1985  *             LPTSTR lpFileName
    1986  * Variables :
    1987  * Result    : TRUE / FALSE
    1988  * Remark    :
    1989  * Status    : UNTESTED STUB
    1990  *
    1991  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    1992  *****************************************************************************/
    1993 
    1994 BOOL WIN32API SetICMProfileA(HDC    hdc,
    1995                                 LPTSTR lpFileName)
    1996 {
    1997   dprintf(("GDI32: SetICMProfileA(%08xh, %s) not implemented.\n",
    1998            hdc,
    1999            lpFileName));
    2000 
    2001   return (FALSE);
    2002 }
    2003 
    2004 
    2005 /*****************************************************************************
    2006  * Name      : BOOL SetICMProfileW
    2007  * Purpose   : The SetICMProfileW function sets the color profile for the
    2008  *             specified device context.
    2009  * Parameters: HDC    hdc   handle of device context
    2010  *             LPTSTR lpFileName
    2011  * Variables :
    2012  * Result    : TRUE / FALSE
    2013  * Remark    :
    2014  * Status    : UNTESTED STUB
    2015  *
    2016  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    2017  *****************************************************************************/
    2018 
    2019 BOOL WIN32API SetICMProfileW(HDC    hdc,
    2020                                 LPWSTR lpFileName)
    2021 {
    2022   dprintf(("GDI32: SetICMProfileW(%08xh, %s) not implemented.\n",
    2023            hdc,
    2024            lpFileName));
    2025 
    2026   return (FALSE);
    2027 }
    2028 
    2029 
    2030 
    2031 /*****************************************************************************
    2032  * Name      : BOOL UpdateICMRegKeyA
    2033  * Purpose   : The UpdateICMRegKeyA function installs, removes, or queries
    2034  *             registry entries that identify ICC color profiles or color-matching
    2035  *             DLLs. The function carries out the action specified by the nCommand
    2036  *             parameter.
    2037  * Parameters: DWORD   dwReserved
    2038  *             DWORD   CMID
    2039  *             LPTSTR  lpszFileName
    2040  *             UINT    nCommand
    2041  * Variables :
    2042  * Result    : TRUE / FALSE
    2043  * Remark    :
    2044  * Status    : UNTESTED STUB
    2045  *
    2046  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    2047  *****************************************************************************/
    2048 
    2049 BOOL WIN32API UpdateICMRegKeyA(DWORD  dwReserved,
    2050                                   DWORD  CMID,
    2051                                   LPTSTR lpszFileName,
    2052                                   UINT   nCommand)
    2053 {
    2054   dprintf(("GDI32: UpdateICMRegKeyA(%08xh, %08xh, %08xh, %08xh) not implemented.\n",
    2055            dwReserved,
    2056            CMID,
    2057            lpszFileName,
    2058            nCommand));
    2059 
    2060   return (FALSE);
    2061 }
    2062 
    2063 
    2064 /*****************************************************************************
    2065  * Name      : BOOL UpdateICMRegKeyW
    2066  * Purpose   : The UpdateICMRegKeyW function installs, removes, or queries
    2067  *             registry entries that identify ICC color profiles or color-matching
    2068  *             DLLs. The function carries out the action specified by the nCommand
    2069  *             parameter.
    2070  * Parameters: DWORD   dwReserved
    2071  *             DWORD   CMID
    2072  *             LPWSTR  lpszFileName
    2073  *             UINT    nCommand
    2074  * Variables :
    2075  * Result    : TRUE / FALSE
    2076  * Remark    :
    2077  * Status    : UNTESTED STUB
    2078  *
    2079  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    2080  *****************************************************************************/
    2081 
    2082 BOOL WIN32API UpdateICMRegKeyW(DWORD  dwReserved,
    2083                                   DWORD  CMID,
    2084                                   LPWSTR lpszFileName,
    2085                                   UINT   nCommand)
    2086 {
    2087   dprintf(("GDI32: UpdateICMRegKeyW(%08xh, %08xh, %08xh, %08xh) not implemented.\n",
    2088            dwReserved,
    2089            CMID,
    2090            lpszFileName,
    2091            nCommand));
    2092 
    2093   return (FALSE);
    2094 }
    2095 
    2096 
    2097 
Note: See TracChangeset for help on using the changeset viewer.