Click here to Skip to main content
16,004,901 members
Home / Discussions / C#
   

C#

 
GeneralRe: .Net Bitmap to DIB Pin
surgeproof22-Mar-04 5:37
surgeproof22-Mar-04 5:37 
GeneralWindowsapplication with Server/Client database-connection Pin
Z#22-Mar-04 4:56
Z#22-Mar-04 4:56 
GeneralRe: Windowsapplication with Server/Client database-connection Pin
Heath Stewart22-Mar-04 5:10
protectorHeath Stewart22-Mar-04 5:10 
GeneralBinding ListBox to a class property problem Pin
phoenius22-Mar-04 4:15
phoenius22-Mar-04 4:15 
GeneralRe: Binding ListBox to a class property problem Pin
Werdna22-Mar-04 7:10
Werdna22-Mar-04 7:10 
GeneralRe: Binding ListBox to a class property problem Pin
phoenius22-Mar-04 7:12
phoenius22-Mar-04 7:12 
GeneralRe: Binding ListBox to a class property problem Pin
phoenius22-Mar-04 8:20
phoenius22-Mar-04 8:20 
AnswerRe: How to: Registry Pin
Heath Stewart22-Mar-04 3:34
protectorHeath Stewart22-Mar-04 3:34 
There's nothing exposed in the class nor available through reflection. RegQueryValueEx is used internally to get the value.

So, you'll have to P/Invoke RegQueryValueEx and get the type for yourself. If you need it; otherwise, try calling GetType from the return value of RegistryKey.Getvalue and make assertions based on that. If you get back System.String, you know it was either REG_SZ, REG_MULTI_SZ, or REG_EXPAND_SZ (in the latter case, search for occurances of '%' to determine exactly, and call Environment.ExpandEnvironmentVariables if you want to expand the string). If you get System.Int32, you know it was a REG_DWORD. For System.Int64, assume REG_QWORD. If you bet a System.Array, you can either double-check or assume a byte[] array and know that the registry type was REG_BINARY.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: How to: Registry Pin
bouli22-Mar-04 3:42
bouli22-Mar-04 3:42 
GeneralRe: How to: Registry Pin
Heath Stewart22-Mar-04 3:50
protectorHeath Stewart22-Mar-04 3:50 
GeneralRe: How to: Registry Pin
bouli22-Mar-04 4:14
bouli22-Mar-04 4:14 
GeneralRe: How to: Registry Pin
Heath Stewart22-Mar-04 4:27
protectorHeath Stewart22-Mar-04 4:27 
GeneralSource code filters in VS help do not persist Pin
profoundwhispers22-Mar-04 3:24
profoundwhispers22-Mar-04 3:24 
GeneralRe: Source code filters in VS help do not persist Pin
Heath Stewart22-Mar-04 3:57
protectorHeath Stewart22-Mar-04 3:57 
QuestionWindow Output???? Pin
SherKar22-Mar-04 2:58
SherKar22-Mar-04 2:58 
AnswerRe: Window Output???? Pin
Michael Flanakin22-Mar-04 3:35
Michael Flanakin22-Mar-04 3:35 
GeneralRe: Window Output???? Pin
Dave Kreskowiak22-Mar-04 8:11
mveDave Kreskowiak22-Mar-04 8:11 
GeneralRe: Window Output???? Pin
SherKar22-Mar-04 11:37
SherKar22-Mar-04 11:37 
GeneralRe: Window Output???? Pin
Michael Flanakin22-Mar-04 11:47
Michael Flanakin22-Mar-04 11:47 
GeneralApplication.Run Pin
scadaguy22-Mar-04 2:37
scadaguy22-Mar-04 2:37 
GeneralRe: Application.Run Pin
Heath Stewart22-Mar-04 3:39
protectorHeath Stewart22-Mar-04 3:39 
GeneralRe: Application.Run Pin
scadaguy22-Mar-04 5:11
scadaguy22-Mar-04 5:11 
GeneralRe: Application.Run Pin
Heath Stewart22-Mar-04 5:19
protectorHeath Stewart22-Mar-04 5:19 
GeneralRe: Application.Run Pin
scadaguy22-Mar-04 5:41
scadaguy22-Mar-04 5:41 
GeneralRe: Application.Run Pin
HAHAHA_NEXT22-Mar-04 8:38
HAHAHA_NEXT22-Mar-04 8:38 

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.