Ignore:
Timestamp:
Aug 23, 2014, 4:21:44 PM (11 years ago)
Author:
rousseau
Message:

Modified or replaced some structures

structures:
o DEVMODEA
o DEVMODEW
o NMLVCUSTOMDRAW
o NOTIFYICONDATAA
o NOTIFYICONDATAW
o OPENFILENAME
o OSVERSIONINFOA
o OSVERSIONINFOW
o OSVERSIONINFOEXA
o OSVERSIONINFOEXW
o SCROLLBARINFO
o SHELLEXECUTEINFOA
o SHELLEXECUTEINFOW
o TTTOOLINFOA
o TTTOOLINFOW

All sources for swt.dll now compile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/swt/src/kernel32/version.cpp

    r22031 r22081  
    7575        ODINNT_VERSION,
    7676        {
    77             sizeof(OSVERSIONINFOA), ODINNT_MAJOR_VERSION, ODINNT_MINOR_VERSION, 
     77            sizeof(OSVERSIONINFOA), ODINNT_MAJOR_VERSION, ODINNT_MINOR_VERSION,
    7878            ODINNT_BUILD_NR, VER_PLATFORM_WIN32_NT, ODINNT_CSDVERSION,
    7979            6, 0, 0, 0
     
    117117//******************************************************************************
    118118//******************************************************************************
    119 void WIN32API OdinSetVersion(ULONG version) 
     119void WIN32API OdinSetVersion(ULONG version)
    120120{
    121121    switch(version) {
     
    127127    case WINVERSION_WINXPSP3:
    128128        break;
    129     default: 
     129    default:
    130130        DebugInt3();
    131131        return;
     
    139139    char szVersion[16];
    140140
    141     if(PROFILE_GetOdinIniString(PROFILE_WINVERSION_SECTION, PROFILE_WINVERSION_KEY, 
    142                                 "", szVersion, sizeof(szVersion)-1) > 1) 
     141    if(PROFILE_GetOdinIniString(PROFILE_WINVERSION_SECTION, PROFILE_WINVERSION_KEY,
     142                                "", szVersion, sizeof(szVersion)-1) > 1)
    143143    {
    144144        if(!stricmp(szVersion, PROFILE_WINVERSION_WIN98)) {
     
    201201    dprintf(("szCSDVersion %s", lpVersionInformation->szCSDVersion));
    202202
    203     if(lpVersionInformation->dwOSVersionInfoSize == sizeof(OSVERSIONINFOEXA)) 
     203    if(lpVersionInformation->dwOSVersionInfoSize == sizeof(OSVERSIONINFOEXA))
    204204    {//Windows 2000 (and up) extension
    205205        LPOSVERSIONINFOEXA lpVersionExInformation = (LPOSVERSIONINFOEXA)lpVersionInformation;
     
    207207        lpVersionExInformation->wServicePackMajor = VersionData[winversion].getVersionEx.wServicePackMajor;
    208208        lpVersionExInformation->wServicePackMinor = VersionData[winversion].getVersionEx.wServicePackMinor;
     209/*
    209210        lpVersionExInformation->wReserved[0]      = VersionData[winversion].getVersionEx.wReserved[0];
    210211        lpVersionExInformation->wReserved[1]      = VersionData[winversion].getVersionEx.wReserved[1];
    211    
     212*/
     213///-------------------------------------------------------------------[swt-os2]
     214        lpVersionExInformation->wSuiteMask        = VersionData[winversion].getVersionEx.wSuiteMask;
     215        lpVersionExInformation->wProductType      = VersionData[winversion].getVersionEx.wProductType;
     216        lpVersionExInformation->wReserved         = VersionData[winversion].getVersionEx.wReserved;
     217///----------------------------------------------------------------------------
     218
    212219        dprintf(("service pack version %x.%x", lpVersionExInformation->wServicePackMajor, lpVersionExInformation->wServicePackMinor));
    213220    }
    214    
     221
    215222    SetLastError(ERROR_SUCCESS);
    216223    return(TRUE);
     
    244251    lstrcpyAtoW(lpVersionInformation->szCSDVersion, VersionData[winversion].getVersionEx.szCSDVersion);
    245252
    246     if(lpVersionInformation->dwOSVersionInfoSize == sizeof(OSVERSIONINFOEXW)) 
     253    if(lpVersionInformation->dwOSVersionInfoSize == sizeof(OSVERSIONINFOEXW))
    247254    {//Windows 2000 (and up) extension
    248255        LPOSVERSIONINFOEXW lpVersionExInformation = (LPOSVERSIONINFOEXW)lpVersionInformation;
    249    
     256
    250257        lpVersionExInformation->wServicePackMajor = VersionData[winversion].getVersionEx.wServicePackMajor;
    251258        lpVersionExInformation->wServicePackMinor = VersionData[winversion].getVersionEx.wServicePackMinor;
     259/*
    252260        lpVersionExInformation->wReserved[0]      = VersionData[winversion].getVersionEx.wReserved[0];
    253261        lpVersionExInformation->wReserved[1]      = VersionData[winversion].getVersionEx.wReserved[1];
     262*/
     263///-------------------------------------------------------------------[swt-os2]
     264        lpVersionExInformation->wSuiteMask        = VersionData[winversion].getVersionEx.wSuiteMask;
     265        lpVersionExInformation->wProductType      = VersionData[winversion].getVersionEx.wProductType;
     266        lpVersionExInformation->wReserved         = VersionData[winversion].getVersionEx.wReserved;
     267///----------------------------------------------------------------------------
    254268    }
    255269    SetLastError(ERROR_SUCCESS);
Note: See TracChangeset for help on using the changeset viewer.