User Profile

Collapse

Profile Sidebar

Collapse
Traps
Traps
Last Activity: May 10 '07, 02:58 AM
Joined: Apr 3 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Traps
    started a topic How to start a process as "System"
    in .NET

    How to start a process as "System"

    Here's my code.


    Code:
                Process newProcess = new Process();
                newProcess.StartInfo.WorkingDirectory = @"C:\";
                newProcess.StartInfo.FileName = "Testapp.exe";
                newProcess.StartInfo.UserName = "System";
                //newProcess.StartInfo.Password = ????????
                newProcess.StartInfo.UseShellExecute = false;
    ...
    See more | Go to post

  • Traps
    replied to how to Create setup with .net Framework
    in .NET
    Yes its possible. I dont recall how. I'm pretty sure of this. The first time you run your application after install. It will try to optimize itself for your operating system/cpu/etc. If you dont have .net framework installed. I believe an error comes up with a link to download the framework.

    Just do a search at MSDN....
    See more | Go to post

    Leave a comment:


  • Traps
    started a topic C#: WH_MOUSE_LL in a Windows Service
    in .NET

    C#: WH_MOUSE_LL in a Windows Service

    Is it possible to install a low level hook from a service? I cant seem to get it to work. The hook installs (i.e. returns a value greater than 0), however the callback function is never called. There is absolutely no information about this on the internet. Anyone have any experience with windows hooks. Here is my hooking statement...

    hMouseHook = SetWindowsHookE x(
    WH_MOUSE_LL,
    ...
    See more | Go to post

  • Traps
    replied to How to capture WHEEL_DELTA
    I didnt want to do this but it looks like I gotta...

    WH_MOUSE_LL hook will provide the MSLLHOOKSTRUCT where I can extract the DELTA value from any window system wide. Better than trying to subclass, which you can not do on windows under a different process.
    See more | Go to post

    Leave a comment:


  • Traps
    replied to How to capture WHEEL_DELTA
    I had a single form named form1

    I subclassed the form with this hook..........
    Code:
    lngOldProc = SetWindowLong(form1.hwnd, GWL_WNDPROC, AddressOf WindowProc)
    and this procedure...... .......

    Code:
    Public Function WindowProc(ByVal hwnd As Long, ByVal msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
        Select Case msg
            Case WM_MOUSEWHEEL
                WheelDelta = HiWord(wParam)
    ...
    See more | Go to post
    Last edited by Killer42; Apr 4 '07, 03:40 AM. Reason: Added [CODE]...[/CODE] tags

    Leave a comment:


  • Traps
    replied to How to capture WHEEL_DELTA
    Figured it out on my own. Thanks anyway.

    If anyone is interested in the answer comment in this thread and I'll tell you. Otherwise.....y our on your own.
    See more | Go to post

    Leave a comment:


  • Traps
    replied to How to capture WHEEL_DELTA
    Bumping.....Ple ase help.........
    See more | Go to post

    Leave a comment:


  • Traps
    replied to Advanced Programming
    I've implemented the ability to create a dynamic form at runtime, using parameters in a file. If I can remember, I'll post some source. Its really easy.
    See more | Go to post

    Leave a comment:


  • Traps
    started a topic How to capture WHEEL_DELTA

    How to capture WHEEL_DELTA

    I cant seem to figure out how to determine if the mouse wheel is scrolled up or down after the WM_MOUSEWHEEL event has occured. Microsoft states the wParam value will contain the WHEEL_DELTA value in the high-order word. How do I get the wParam value? Please help me, I have threads going in 4 vb coding forums including microsoft's msdn, and I cant seem to find an answer.


    http://msdn.microsoft. com/library/default.asp?url =/library/en-us/winui/winui/windowsuserinte rface/userinput/mouseinput/mouseinputrefer ence/mouseinputmessa ges/wm_mousewheel.a sp...
    See more | Go to post
No activity results to display
Show More
Working...