⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 platdetect.c

📁 DBVIEW is a small Windows application that highlights the use of the builtin database functions:
💻 C
字号:
#include <windows.h>
#include "platdetect.h"

int GuessPlatform()
{
    int iHeight, iWidth;

    iHeight = GetSystemMetrics(SM_CYSCREEN);
    iWidth = GetSystemMetrics(SM_CXSCREEN);

    if (iHeight > iWidth)
    {
        return(PLAT_PPC);
    }
    else if (iHeight < iWidth)
    {
        if ((iHeight == HPCPRO_HEIGHT) && (iWidth == HPCPRO_WIDTH))
        {
            return(PLAT_HPCPRO);
        }
        else if (iHeight == APC_HEIGHT)
        {
            return(PLAT_APC);
        }
        else
        {
            return(PLAT_HPC);
        }
    }
    else
    {
        return(PLAT_OTHER);
    }   
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -