Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
W

wakkerjack

@wakkerjack
About
Posts
21
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Macro - Application.Sendkeys, New Laptop Problem
    W wakkerjack

    I have discovered that Excel 2003 likes to choose when to send the alt key (%). If I edit the code and save it, then run it. it works fine. If I open the xls file and just run it, it does not work. Please can anyone tell me how to get excel to send the alt key every time? I have tried "Application.Sendkeys" and "Sendkeys". Thank You

    Visual Basic help question

  • Macro - Application.Sendkeys, New Laptop Problem
    W wakkerjack

    Hi ALL! I wrote a very small app which reads out the cell values in excel and "Sendkey"s them to another application. I would firstly Send an 'alt tab' to set focus on the receiving application. Then basically flush all of the cell values. E.g. of code used: Application.Sendkeys "%{tab}", True Application.Sendkeys ActiveCell.Value, True Now, the problem is that it used to work perfectly on my old slow ass donkey machine. I recently got a newer, slicker machine and it just doesnt write the values to the application. It 'alt tabs' but just doesnt write them. Any suggestions? I will consider looking into AppActivate instead of 'alt tab'. Thanks Peeps!

    Visual Basic help question

  • Skype GUI?
    W wakkerjack

    Hi there, Does ne1 know what type of control is used in Skype chat for the Contacts? How can i mimick it? ie. There is a name and when i click on it it expands revealing more details? Thanks a million :)

    C / C++ / MFC question lounge

  • Skype GUI?
    W wakkerjack

    Hi there, Does ne1 know what type of control is used in Skype chat for the Contacts? How can i mimick it? ie. There is a name and when i click on it it expands revealing more details? Thanks a million :)

    C# question lounge

  • Web Service chat?
    W wakkerjack

    I want to make a chatting application using web services. Ne1 have an idea on how to do this? Ur contribution is extremely valuable:)

    XML / XSL wcf tutorial question lounge

  • Web Services - c# chat application
    W wakkerjack

    HI! I was wondering if it is possible to create a chat application using web services? i want to be able to chat via lan and internet.. and with an application or with a web page, is it possible? THANKS!!

    C# csharp wcf question lounge

  • Web Services - c# chat application
    W wakkerjack

    HI! I was wondering if it is possible to create a chat application using web services? i want to be able to chat via lan and internet.. and with an application or with a web page, is it possible? THANKS!!

    ASP.NET csharp wcf question lounge

  • Web Services - c# application
    W wakkerjack

    Hi :) I have a functional web service. It's very simple - like adds two numbers. then when i want to use it in a c# application, i know i should add it as a web reference.. In all the examples i have seen, the Solution Explorer shows many other files under the new web reference. but when i add mine, it just shows the name of the reference. Is this a problem? Cuz i cant get the application to find the service when i try specify it with USING ... ? Please help! Thanks

    C# help csharp wcf question

  • A little push with Web Services.
    W wakkerjack

    If this ain't too late.. goto add remove components in control panel and install IIS.. then ul find it in Admin tools in control panel:)

    C# csharp help dotnet visual-studio wcf

  • Voice communication over a network?
    W wakkerjack

    Hi there. Im doing a project on this and was wondering if ne1 out there can point me in the right direction? an excellent site? code examples are always good too! =) thanks!

    C# sysadmin question

  • sliding toolbar??
    W wakkerjack

    i want to make a panel slide like the .net toolbars? can ne 1 give me some great looking code;) thanks?

    C# csharp question

  • WMI Access
    W wakkerjack

    hi - thread pool still gives me problems.. um i dont wanna worry about threads atm.. rather, plz could u just use the connect (no threads) and run the exe in the debug folder at the same time.. i would like to know if u also get and RPC error? if u dont get one at first, just keep running the program and exe :) thanks.. Another thing-do u know how to pass Credentials to be able to access the registry? Im using RegistryKey and OpenRemoteBaseKey... thanks again :)

    Visual Basic csharp com question lounge

  • Setting User Permissions?
    W wakkerjack

    ok im not too familiar with CurrentPrincipal.. so could i plz have a code example to show me how to pass credentials to a remote computer to access their registry :) thanks

    C# question csharp sysadmin windows-admin security

  • WMI Access
    W wakkerjack

    ja with the first 1: my problems are rare... most of the times it works.. but it's like the WMI on the remote computer gets clogged up from the previous attempts (when i ran the program before) it's funny - i changed the password on the remote comp and now with threads i get an UnauthorizedAccessException sometimes.. NE Ways il let u know wat happens:)

    Visual Basic csharp com question lounge

  • Setting User Permissions?
    W wakkerjack

    I can connect to a remote registry using microsoft.win32 package.. but it only works if i have authentication.. and the only way i know how to get it is try to access the computer over the network and fill in the details:P how do i gain permission using c# code? :)

    C# question csharp sysadmin windows-admin security

  • WMI Access
    W wakkerjack

    Why i am doing this incredibly daft task is to test the ManagementObjectSearcher Class.. because: i have another program that does retrieve info from many different comps.. the prob is while im scanning them, sometimes all of a sudden i get an RPC fail or COMException.. SO i want to make sure it's WMI setting or possibly a bug. To Me, Something seems fishy with remotly retrieving the info.. Everything works fine locally. please try again with my code, using no threads (just "connect()") and see if u get the error? after it has gone thru the loop about 95 times the Exception pops up? Thanks:)

    Visual Basic csharp com question lounge

  • WMI Access
    W wakkerjack

    Here's my code.. works for me.. Excuse the repertition, i just do this for complexities sake:) some RPC should occur if u use the threads... using System; using System.Threading; using System.Management; namespace SimpleTRY { public class Class1 { private ManagementObjectSearcher m_MOSearcher; private ManagementScope m_ManScope; private ConnectionOptions m_ConnectOptions; public Class1() { for (int i=0; i< 250; i++) { /*Thread a = new Thread(new ThreadStart(this.connect)); a.Start();*/ this.connect(); } } public void connect() { string ipAddress = "192.168.0.88"; m_ConnectOptions = new ConnectionOptions (); m_ConnectOptions.Username = "Gorilla"; m_ConnectOptions.Password = "rock"; m_ConnectOptions.Authentication = AuthenticationLevel.Call; m_ConnectOptions.Impersonation = ImpersonationLevel.Impersonate; m_ConnectOptions.EnablePrivileges = true; m_ConnectOptions.Locale = "MS_409"; m_ConnectOptions.Timeout = new TimeSpan (0,0,0,30); string strConnection = "\\\\"+ ipAddress + "\\root\\cimv2"; m_ManScope = new ManagementScope(strConnection, m_ConnectOptions); m_ManScope.Connect(); { ObjectQuery Temp = new ObjectQuery("SELECT " + "Size" + " FROM Win32_" + "DiskDrive"); m_MOSearcher = new ManagementObjectSearcher (m_ManScope, Temp); foreach(ManagementObject mo in m_MOSearcher.Get()) { Console.WriteLine("Size: " +mo["Size"].ToString ()); } Temp = new ObjectQuery("SELECT " + "Model" + " FROM Win32_" + "DiskDrive"); m_MOSearcher = new ManagementObjectSearcher (m_ManScope, Temp); foreach(ManagementObject mo in m_MOSearcher.Get()) { Console.WriteLine("Model: " +mo["Model"].ToString ()); } Temp = new ObjectQuery("SELECT " + "SystemName" + " FROM Win32_" + "DiskDrive"); m_MOSearcher = new ManagementObjectSearcher (m_ManScope, Temp); foreach(ManagementObject mo in m_MOSearcher.Get()) { Console.WriteLine("SystemName: " +mo["SystemName"].ToString ()); } Temp = new ObjectQuery("SELECT " + "AdapterRAM" + " FROM Win32_" + "VideoController"); m_MOSearcher = new ManagementObjectSearcher (m_ManScope, Temp); foreach(ManagementObject mo in m_MOSearcher.Get()) { Console.WriteLine("AdapterRAM: " +mo["AdapterRAM"].ToString ()); } Temp = new ObjectQuery("SELECT " + "CurrentRefreshRate" + " FROM Win32_" + "VideoController"); m_MOSearcher = new Man

    Visual Basic csharp com question lounge

  • WMI Access
    W wakkerjack

    Hey thanks for the timely response!! ah soz i forgot to paste that in!!(manscope.connect) sorry! plz if u could try-> just request a whole lot of values from different tables.. and use threads (a lot).. and if u dont get an error maybe i can send u my program:) 2) Is there any windows setting(using XP) that can affect the WMI? I am unable to connect to some computers?? Thanks so much!

    Visual Basic csharp com question lounge

  • WMI Access - Help
    W wakkerjack

    Ive been battling with this prob for a LONG time now.. Using Threads and remote retrieval: i get a rpc error or COm exception sometimes? Like it's retrieving the values, and then it says rpc server unavailable and then if u carry on it will retrieve the next value.. happens with different values.. maybe deadlock occurs? Basically- i use: private ManagementObjectSearcher m_MOSearcher; private ManagementScope m_ManScope; private ConnectionOptions m_ConnectOptions; m_ConnectOptions = new ConnectionOptions (); m_ConnectOptions.Username = "user"; m_ConnectOptions.Password = "pass"; m_ConnectOptions.Authentication = AuthenticationLevel.Call; m_ConnectOptions.Impersonation = ImpersonationLevel.Impersonate; m_ConnectOptions.EnablePrivileges = true; m_ConnectOptions.Locale = "MS_409"; m_ConnectOptions.Timeout = new TimeSpan (0,0,0,0,5); string strConnection = "\\\\"+ "192.168.0.88" + "\\root\\cimv2"; m_ManScope = new ManagementScope(strConnection, m_ConnectOptions); ObjectQuery Temp = new ObjectQuery("SELECT " + "Size" + " FROM Win32_" + "DiskDrive"); m_MOSearcher = new ManagementObjectSearcher (m_ManScope, Temp); foreach(ManagementObject mo in m_MOSearcher.Get()) { Console.WriteLine("Size: " +mo["Size"].ToString ()); } Temp = new ObjectQuery("SELECT " + "Model" + " FROM Win32_" + "DiskDrive"); m_MOSearcher = new ManagementObjectSearcher (m_ManScope, Temp); foreach(ManagementObject mo in m_MOSearcher.Get()) { Console.WriteLine("Model: " +mo["Model"].ToString ()); } And thread it with: for (int i=0; i< 250; i++) { Thread a = new Thread(new ThreadStart(Function)); a.Start(); }

    C# help com sysadmin security question

  • WMI Access
    W wakkerjack

    oh soz didn't realize.. but maybe u can still help me? Ive been battling with this prob for a LONG time now.. Basically- i use: private ManagementObjectSearcher m_MOSearcher; private ManagementScope m_ManScope; private ConnectionOptions m_ConnectOptions; m_ConnectOptions = new ConnectionOptions (); m_ConnectOptions.Username = "user"; m_ConnectOptions.Password = "pass"; m_ConnectOptions.Authentication = AuthenticationLevel.Call; m_ConnectOptions.Impersonation = ImpersonationLevel.Impersonate; m_ConnectOptions.EnablePrivileges = true; m_ConnectOptions.Locale = "MS_409"; m_ConnectOptions.Timeout = new TimeSpan (0,0,0,0,5); string strConnection = "\\\\"+ "192.168.0.88" + "\\root\\cimv2"; m_ManScope = new ManagementScope(strConnection, m_ConnectOptions); ObjectQuery Temp = new ObjectQuery("SELECT " + "Size" + " FROM Win32_" + "DiskDrive"); m_MOSearcher = new ManagementObjectSearcher (m_ManScope, Temp); foreach(ManagementObject mo in m_MOSearcher.Get()) { Console.WriteLine("Size: " +mo["Size"].ToString ()); } Temp = new ObjectQuery("SELECT " + "Model" + " FROM Win32_" + "DiskDrive"); m_MOSearcher = new ManagementObjectSearcher (m_ManScope, Temp); foreach(ManagementObject mo in m_MOSearcher.Get()) { Console.WriteLine("Model: " +mo["Model"].ToString ()); } And thread it with: for (int i=0; i< 250; i++) { Thread a = new Thread(new ThreadStart(Function)); a.Start(); } i get a rpc error or COm exception sometimes? maybe deadlock?

    Visual Basic csharp com question lounge
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups