Click here to Skip to main content
15,903,540 members
Home / Discussions / C#
   

C#

 
GeneralRe: this is the code i use to check it: Pin
Saksida Bojan28-Feb-10 22:42
Saksida Bojan28-Feb-10 22:42 
GeneralRe: this is the code i use to check it: Pin
codeguruk1-Mar-10 2:08
codeguruk1-Mar-10 2:08 
GeneralRe: this is the code i use to check it: Pin
Saksida Bojan1-Mar-10 3:21
Saksida Bojan1-Mar-10 3:21 
GeneralRe: this is the code i use to check it: Pin
codeguruk1-Mar-10 5:41
codeguruk1-Mar-10 5:41 
Questionhow could I print search result in a form with a data grid view? Pin
ronakT28-Feb-10 8:48
ronakT28-Feb-10 8:48 
AnswerRe: how could I print search result in a form with a data grid view? Pin
Dan Mos28-Feb-10 9:28
Dan Mos28-Feb-10 9:28 
GeneralRe: how could I print search result in a form with a data grid view? Pin
ronakT1-Mar-10 0:20
ronakT1-Mar-10 0:20 
QuestionDiscovering what a registry value is stored as Pin
Carl Mailey28-Feb-10 8:13
Carl Mailey28-Feb-10 8:13 
Ive been building an application that reveals information on what image files have been accessed by any given user

RegistryKey OurKey2 = Registry.Users;
OurKey2 = OurKey2.OpenSubKey(userID + "\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ComDlg32\\OpenSavePidlMRU\\" + valuename);

foreach (string valuename2 in OurKey2.GetValueNames())
{
DataGridViewRowCollection rows = this.dataGridView3.Rows;

System.Byte[] strByte = (System.Byte[])OurKey2.GetValue(valuename2);

System.Text.Encoding enc = System.Text.Encoding.Unicode;
string myString = enc.GetString(strByte);

rows.Add(myString, valuename);
}


This gives me "䐟ᩇ夃㽲䒧얉镕毾" etc all gibberish

The actual value viewed in the registry doesnt exactly make sense but you can still read it

Can anyone tell me how to either just read a sensible value from it or how to find out what encrypt/encoding the registry uses on these values?

It also seems to only be reading the first part of the value

Thanks in advance Carl
AnswerRe: Discovering what a registry value is stored as Pin
Richard MacCutchan28-Feb-10 9:00
mveRichard MacCutchan28-Feb-10 9:00 
AnswerRe: Discovering what a registry value is stored as Pin
Luc Pattyn28-Feb-10 11:15
sitebuilderLuc Pattyn28-Feb-10 11:15 
AnswerRe: Discovering what a registry value is stored as Pin
Saksida Bojan28-Feb-10 20:19
Saksida Bojan28-Feb-10 20:19 
Questioncross thread Pin
Yustme28-Feb-10 6:28
Yustme28-Feb-10 6:28 
AnswerRe: cross thread Pin
Dan Mos28-Feb-10 6:33
Dan Mos28-Feb-10 6:33 
GeneralRe: cross thread Pin
Yustme28-Feb-10 6:35
Yustme28-Feb-10 6:35 
GeneralRe: cross thread [modified] Pin
Dan Mos28-Feb-10 6:44
Dan Mos28-Feb-10 6:44 
GeneralRe: cross thread Pin
Alex Manolescu28-Feb-10 7:10
Alex Manolescu28-Feb-10 7:10 
GeneralRe: cross thread [modified] Pin
Dan Mos28-Feb-10 7:27
Dan Mos28-Feb-10 7:27 
GeneralRe: cross thread Pin
Alex Manolescu4-Jun-10 22:27
Alex Manolescu4-Jun-10 22:27 
GeneralRe: cross thread Pin
DaveyM6928-Feb-10 7:15
professionalDaveyM6928-Feb-10 7:15 
GeneralRe: cross thread Pin
Yustme28-Feb-10 7:21
Yustme28-Feb-10 7:21 
GeneralRe: cross thread Pin
DaveyM6928-Feb-10 7:48
professionalDaveyM6928-Feb-10 7:48 
AnswerRe: cross thread Pin
Luc Pattyn28-Feb-10 8:50
sitebuilderLuc Pattyn28-Feb-10 8:50 
GeneralRe: cross thread Pin
Yustme28-Feb-10 12:10
Yustme28-Feb-10 12:10 
QuestionA List Of Values component or user control! Pin
Hussam Fattahi28-Feb-10 4:54
Hussam Fattahi28-Feb-10 4:54 
AnswerRe: A List Of Values component or user control! Pin
Abhinav S28-Feb-10 5:57
Abhinav S28-Feb-10 5:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.