BCB通用函數庫---根據網上朋友帖子整理的[1]

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 powerants 的 blog

  1. bcb通用函數庫

// 获得计算机名

ansistring getcomputername()

{

    char name[max_computername_length + 1];

    dword size = max_computername_length + 1;

    if(getcomputername(name,&size))

        return ansistring(name);

    return "";

}

 

// 获得当前用户名

ansistring getusername()

{

    char username[max_computername_length + 1];

    dword size = max_computername_length + 1;

    if(getusername(username,&size))

        return ansistring(username);

    return "";

}

 

本文关键:BCB通用函數庫---根據網上朋友帖子整理的
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top