TCHAR temp_buf[256];
DWORD rs=GetEnvironmentVariable(TEXT("av"),temp_buf,255);
if(rs)
MessageBox(NULL,temp_buf,TEXT("TEMP"),MB_OK);
else
{
BOOL as=SetEnvironmentVariable(TEXT("av"),TEXT("Jpanese"));
if(as)
{
DWORD rs=GetEnvironmentVariable(TEXT("av"),temp_buf,255);
if(rs)
MessageBox(NULL,temp_buf,TEXT("av"),MB_OK);
}
}
return 0;
}
GetEnvironmentVariable
最新推荐文章于 2024-05-05 23:12:26 发布