Click here to Skip to main content
15,904,346 members
Home / Discussions / C#
   

C#

 
GeneralRe: enumerators Pin
gianfrancoguzzo21-Dec-13 4:17
gianfrancoguzzo21-Dec-13 4:17 
GeneralRe: enumerators Pin
harold aptroot21-Dec-13 4:29
harold aptroot21-Dec-13 4:29 
GeneralRe: enumerators Pin
gianfrancoguzzo21-Dec-13 4:41
gianfrancoguzzo21-Dec-13 4:41 
GeneralRe: enumerators Pin
Dave Kreskowiak21-Dec-13 6:42
mveDave Kreskowiak21-Dec-13 6:42 
GeneralRe: enumerators Pin
gianfrancoguzzo22-Dec-13 4:24
gianfrancoguzzo22-Dec-13 4:24 
GeneralRe: enumerators Pin
Dave Kreskowiak21-Dec-13 4:40
mveDave Kreskowiak21-Dec-13 4:40 
AnswerRe: enumerators Pin
BillWoodruff21-Dec-13 4:43
professionalBillWoodruff21-Dec-13 4:43 
GeneralRe: enumerators Pin
gianfrancoguzzo21-Dec-13 4:48
gianfrancoguzzo21-Dec-13 4:48 
AnswerRe: enumerators Pin
PIEBALDconsult22-Dec-13 8:22
mvePIEBALDconsult22-Dec-13 8:22 
GeneralRe: enumerators Pin
gianfrancoguzzo10-Jan-14 20:25
gianfrancoguzzo10-Jan-14 20:25 
Questionmicrosoft translator api doesn't translate text with proper meaning it only takes word to word mean in c# Pin
ank17098921-Dec-13 2:48
ank17098921-Dec-13 2:48 
AnswerRe: microsoft translator api doesn't translate text with proper meaning it only takes word to word mean in c# Pin
Richard MacCutchan21-Dec-13 3:28
mveRichard MacCutchan21-Dec-13 3:28 
AnswerRe: microsoft translator api doesn't translate text with proper meaning it only takes word to word mean in c# Pin
Dave Kreskowiak21-Dec-13 4:39
mveDave Kreskowiak21-Dec-13 4:39 
QuestionStoring Invoice number of a document while scanning Pin
Nawaz34321-Dec-13 1:35
Nawaz34321-Dec-13 1:35 
AnswerRe: Storing Invoice number of a document while scanning Pin
Abhinav S21-Dec-13 2:44
Abhinav S21-Dec-13 2:44 
GeneralRe: Storing Invoice number of a document while scanning Pin
Nawaz34322-Dec-13 18:47
Nawaz34322-Dec-13 18:47 
Questionhow to insert image in code project question ? Pin
An@nd Rajan1020-Dec-13 18:34
professionalAn@nd Rajan1020-Dec-13 18:34 
AnswerRe: how to insert image in code project question ? Pin
Dave Kreskowiak20-Dec-13 19:17
mveDave Kreskowiak20-Dec-13 19:17 
GeneralRe: how to insert image in code project question ? Pin
An@nd Rajan1020-Dec-13 19:25
professionalAn@nd Rajan1020-Dec-13 19:25 
AnswerRe: how to insert image in code project question ? Pin
Abhinav S20-Dec-13 22:40
Abhinav S20-Dec-13 22:40 
AnswerRe: how to insert image in code project question ? Pin
OriginalGriff21-Dec-13 4:58
mveOriginalGriff21-Dec-13 4:58 
QuestionHow to get Digital ProductID from registry remotely: using StdRegProv Pin
sigma_ivan20-Dec-13 16:54
sigma_ivan20-Dec-13 16:54 
Hi Guys,
Can you please help me on this one, i have this function that i use to get the value of a registry from a remote computer, this one works fine for string values but i could not get binary values using this method, even if i change the
VB
registry.GetMethodParameters("GetStringValue")

VB
registry.InvokeMethod("GetStringValue", inParams, Nothing)

with
VB
registry.GetMethodParameters("GetBinaryValue")

VB
registry.InvokeMethod("GetBinaryValue", inParams, Nothing)



VB
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
       Dim servername As String = "192.168.71.127"
       Dim options As ConnectionOptions = New ConnectionOptions()
       With options
           .Username = "Administrator"
           .Password = "mypassword"
           .Authority = "ntlmdomain:DOMAIN"
           .Impersonation = ImpersonationLevel.Impersonate
           .Authentication = AuthenticationLevel.PacketPrivacy
       End With
       Dim scope As ManagementScope = New ManagementScope("\\" & servername & "\root\default", options)
       scope.Connect()

       Dim registry As ManagementClass = New ManagementClass(scope, New ManagementPath("StdRegProv"), Nothing)

       Dim inParams As ManagementBaseObject = registry.GetMethodParameters("GetStringValue")
       'inParams("hDefKey") = "HKEY_LOCAL_MACHINE\"
       inParams("sSubKeyName") = "Software\Microsoft\Windows NT\CurrentVersion"
       inParams("sValueName") = "CurrentVersion"
 'inParams("sValueName") = "DigitalProductid"


       Dim outParams As ManagementBaseObject = registry.InvokeMethod("GetStringValue", inParams, Nothing)
       MessageBox.Show(outParams("sValue").ToString)
   End Sub

IMO

AnswerRe: How to get Digital ProductID from registry remotely: using StdRegProv Pin
Ron Beyer20-Dec-13 18:22
professionalRon Beyer20-Dec-13 18:22 
GeneralRe: How to get Digital ProductID from registry remotely: using StdRegProv Pin
sigma_ivan22-Dec-13 22:27
sigma_ivan22-Dec-13 22:27 
Questionhow to create column in crystal report at dynamically Pin
An@nd Rajan1019-Dec-13 23:48
professionalAn@nd Rajan1019-Dec-13 23:48 

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.