使用说明: HKEY hKey; LPCTSTR lpSubkey=TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"); long ret0=::RegOpenKeyEx(HKEY_LOCAL_MACHINE,lpSubkey,0,KEY_WRITE,&hKey); if(ret0!=ERROR_SUCCESS) { AfxMessageBox(TEXT("Unable to Open Reg file"));return; //
OPEN H_BM_Cursor FETCH NEXT FROM H_BM_Cursor into @bmid,@bmmc -- Check @@FETCH_STATUS to see if there are any more rows to fetch. WHILE @@FETCH_STATUS = 0 BEGIN declare @strtemp varchar(50) -- Concatenate and display the current values in the variab