?? evironment.c
字號:
#include <api.h>
#include <stdio.h>
#include <windows.h>
//GetEnvironmentStrings
LPVOID WINAPI GetEnvironmentStrings(void)
{
printf("GetEnvironmentStrings()\n");
return "os=SGOS\0\0";
}
//GetEnvironmentVariable
DWORD WINAPI GetEnvironmentVariableA(
LPCSTR lpName,
LPSTR lpBuffer,
DWORD nSize
){
printf("GetEnvironmentVariableA %s, 0x%X, %d\n", lpName,
lpBuffer, nSize );
return 0;
}
//GetEnvironmentVariable for Unicode
DWORD WINAPI GetEnvironmentVariableW(
LPCWSTR lpName,
LPWSTR lpBuffer,
DWORD nSize
){
printf("GetEnvironmentVariableW %s, 0x%X, %d\n", lpName,
lpBuffer, nSize );
return "sgos";
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -