//写注册表
HEKY hKey;
regCreateKey(HKEY_LOCAL_MACHINE,"softwore//csp//admin",&hKey);
RegsetValue(hKey,NULL,REG_SZ,"csp",strlen("csp"));
RegClosekey(hKey);
//读注册表
LONG LValue;
RegQueryValue(HKEY_LOCAL_MACHINE,"softwore//csp//admin",NULL,&LValue);
char *pBuf=new char[LValue];
RegQueryValue(HKEY_LOCAL_MACHINE,"softwore//csp//admin",pBuf,&LValue);
MessageBuf(pBuf);