dcsimg

Search:

Type: Posts; User: couttsj

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    3
    Views
    232

    Re: Blurry fonts in Windows 10

    It is likely that you are using a font not supported by Win 10, and Win 10 has substituted with the closest one it can find. Try using a different font.

    J.A. Coutts
  2. Thread: Run elevated

    by couttsj
    Replies
    12
    Views
    606

    Re: Run elevated

    Now I really don't understand. Experimenting a little, I removed a lot of the code from the "RunAs" function.


    Private Function RunAs() As Boolean
    Dim dwSessionID As Long
    Dim hToken As...
  3. Thread: Run elevated

    by couttsj
    Replies
    12
    Views
    606

    Re: Run elevated

    After all that effort, it doesn't do the job. I need temporary system privileges in interactive sessions.

    J.A. Coutts
  4. Thread: Run elevated

    by couttsj
    Replies
    12
    Views
    606

    Re: Run elevated

    Sorry, but it's not a typo. Microsoft pretty much uses binary characters for their flags, so it really doesn't matter. I have just always done it this way.

    Once again, thank you for the...
  5. Thread: Run elevated

    by couttsj
    Replies
    12
    Views
    606

    Re: Run elevated

    It turns out that "DuplicateTokenEx" is not needed at all. When run as a service, "WTSQueryUserToken" already returns a Primary Token. I honestly don't know if "DuplicateTokenEx" works at all on...
  6. Re: Trouble with CreateProcessAsUser

    It Works!!!! What I used was an application that can run in either the DeskTop or as a Service. In the IDE (desktop), I worked with "CreateProcessAsUserW" until I got the 1314 error. Then I converted...
  7. Re: Trouble with CreateProcessAsUser

    Thanks gbv6;
    Is there a particular reason you used the Unicode version of CreateProcessAsUser?

    Also, is there a way to troubleshoot this call in the IDE? Compiling and installing as a service...
  8. Re: Trouble with CreateProcessAsUser

    That's exactly what I am trying to do, but I did not use "ImpersonateLoggedOnUser" or "CreateEnvironmentBlock". Can you post the C++ code? I am quite used to translating from C++.

    J.A. Coutts
  9. Re: Trouble with CreateProcessAsUser

    Thanks for the feedback. That's the code that I started with, but by default it runs as "W2KRunAsUser", which is of no use to me. I forced it to run as "NT4RunAsUser", so that it would use a Token...
  10. [RESOLVED] Trouble with CreateProcessAsUser

    According to Microsoft:
    ' LogonUser() requires that the caller has the following permission
    ' Permission Display Name
    ' ...
  11. Replies
    3
    Views
    355

    Re: Show Program Privileges

    I figured out why some of the privileges stay enabled and some don't. The return from the call "AdjustTokenPrivileges" being non zero only indicates that the call itself succeeded. It does not...
  12. Replies
    3
    Views
    355

    Re: Show Program Privileges

    In order to solve this problem I am having with "DuplicateTokenEx", I needed to understand and work directly with these privileges. An explanation of what each privilege does is located here:...
  13. Replies
    3
    Views
    355

    Show Program Privileges

    I don't pretend to understand program privileges all that well, but in order to improve my understanding, I developed this program that will display the privileges for any running program. It also...
  14. Thread: Run elevated

    by couttsj
    Replies
    12
    Views
    606

    Re: Run elevated

    Found another bit of code that upgrades the current user token by using a service.
    https://stackoverflow.com/questions/13725435/createproecssasuser-elevated-privilege
    This particular program uses...
  15. Thread: Run elevated

    by couttsj
    Replies
    12
    Views
    606

    Run elevated

    I really need some help on this one. When operating remotely and accessing an application that requires UAC elevation (such as VB6), I need to be able to access the elevation window that is...
  16. Replies
    16
    Views
    420

    Re: Secure Web Site problem on XP

    I suspect the problem originates with web sites that have upgraded to TLS 1.3. The TLS 1.3 specs only allow for a fallback of one version. That means that it would only support a fallback to TLS 1.2,...
  17. Replies
    11
    Views
    392

    Re: Is the shell process is finished?

    Below is an example that I use to create an application backup file using the MS "MAKECAB.EXE" program. It uses the FindWindow function, which does not immediately return the TaskID. So it enters a...
  18. Replies
    11
    Views
    426

    Re: [RESOLVED] Winsock Packet Size

    Record size is distinct from packet size. Packet size is controlled by the Winsock DLL file being used. I believe that the Winsock Control uses "wsock32.dll", whereas modern controls use...
  19. Re: Optimizing Convert Byte Array to ASCII string representation of Hex

    I use this:


    Private Function ByteToHex(bArray() As Byte) As String
    Dim lPtr1 As Long
    Dim lPtr2 As Long
    Dim sHex As String
    On Error GoTo ByteToHexErr
    sHex =...
  20. Thread: SendSAS

    by couttsj
    Replies
    14
    Views
    603

    Re: SendSAS

    wqweto;
    Prior to Vista, the system and first user both operated in Session "0". The link you provided and the full uVNC code that I have state that the code is only appropriate for pre Vista. The...
  21. Thread: SendSAS

    by couttsj
    Replies
    14
    Views
    603

    Re: SendSAS

    Finally found some code for UltraVNC demonstrating the use of SendSAS. How uVNC handles it is to run as a service:
    //We use this event to notify the program that the session has changed
    //The...
  22. Thread: SendSAS

    by couttsj
    Replies
    14
    Views
    603

    Re: SendSAS

    A search through the other documents in the download found an error listing. This error is defined as:
    #define CTRLALTDEL_WMSGSENDMESSAGEERROR 23
    but that still doesn't help me a lot.

    J.A. Coutts
  23. Thread: SendSAS

    by couttsj
    Replies
    14
    Views
    603

    Re: SendSAS

    Finally got a break through on this problem. The difficulty with SendSAS is the fact that it does not return anything, so we never know if it was successful or not. I was able to find a library file...
  24. Replies
    0
    Views
    365

    Personal Remote DeskTop

    This version of Remote Desktop (RDT) is intended to act as a remote helper for users that require assistance but have limited capability to handle remote connections. Allowing a helper to access your...
  25. Thread: Remote DeskTop

    by couttsj
    Replies
    24
    Views
    2,257

    Re: Remote DeskTop

    Graphics work is not exactly my forte, and I have zero experience working with DirectX. According to Microsoft, "To reconstruct the correct desktop image, your client app must first process all the...
  26. Thread: SendSAS

    by couttsj
    Replies
    14
    Views
    603

    Re: SendSAS

    Apparently, on some systems, you have to have UAC enabled when using uiAccess. Also, UltraVNC apparently uses this function after Version 1.0.9.1, but I have not been able to find server source code...
  27. Thread: SendSAS

    by couttsj
    Replies
    14
    Views
    603

    Re: SendSAS

    One word of caution. There are many reports that it doesn't work on Win 7 using uiAccess. But supposedly it works on Vista, Win 8.x, and Win 10.

    J.A. Coutts
  28. Thread: SendSAS

    by couttsj
    Replies
    14
    Views
    603

    SendSAS

    SendSAS

    Has anyone used SendSAS before. It is a little known function contained within "sas.dll" that has to be declared explicitly.


    Private Declare Sub SendSAS Lib "SAS.DLL" (ByVal fAsUser...
  29. Replies
    18
    Views
    912

    Re: Desktop Availabilty?

    PostMessage is declared like this:


    Private Declare Function PostMessage Lib "user32.dll" Alias "PostMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long)...
  30. Replies
    18
    Views
    912

    Re: Desktop Availabilty?

    Remotely locking a workstation is dead easy.


    Private Declare Function LockWorkStation Lib "user32.dll" () As Long

    Dim lRet As Long
    lRet = LockWorkStation()

    Remotely unlocking it...
  31. Replies
    18
    Views
    912

    Re: Desktop Availabilty?

    Found VNC code ported to VB here:
    http://forums.codeguru.com/showthread.php?330557-Ctrl-alt-delete
    but I suspect that it was pre session isolation VNC code, as they experienced the same "Access...
  32. Replies
    18
    Views
    912

    Re: Desktop Availabilty?

    Added this code:


    Dim hWinSta0 As Long
    hWinSta0 = OpenWindowStation("WinSta0", False, MAXIMUM_ALLOWED)
    If hWinSta0 Then
    lRet = SetProcessWindowStation(hWinSta0)
    Else
    ...
  33. Replies
    18
    Views
    912

    Re: Desktop Availabilty?

    According to Microsoft:
    "Each session is associated with its own interactive window station named "WinSta0". The only supported window station name for an interactive window station is "WinSta0";...
  34. Replies
    18
    Views
    912

    Re: Desktop Availabilty?

    Unfortunately, accessing the "Winlogon" desktop always produces an Error 5 (access denied).


    desktop = OpenDesktop("Winlogon", 0, False, _
    DESKTOP_CREATEMENU Or DESKTOP_CREATEWINDOW Or _
    ...
  35. Thread: ReDim array

    by couttsj
    Replies
    8
    Views
    351

    Re: ReDim array

    Adding to an array one element at a time is very inefficient, as each time you expand the array, memory has to be allocated. You would be better off to do it in chunks and use a pointer. For example:...
  36. Replies
    18
    Views
    912

    Re: Desktop Availabilty?

    Ran into an interesting article on how to unlock a remote computer. It also supplies a good overview on Windows Desktops....
  37. Replies
    18
    Views
    912

    Re: Desktop Availabilty?

    Good article, but there is one thing I don't understand. He states "It requires the user to know an admin password, and that’s a problem for my customers." How does a user survive without having...
  38. Replies
    18
    Views
    912

    Re: Desktop Availabilty?

    That's what I thought, but I wanted to make sure. I use UltraVNC to remotely operate an older Server 2000, and I always leave it logged out for security reasons. Back then Locking the Desktop didn't...
  39. Replies
    18
    Views
    912

    Desktop Availabilty?

    A Service operates in Session 0 with system privileges. When no one is logged in, the Desktop does not exist. Therefore, a Service should not attempt to interact with the Desktop. But when the...
  40. Thread: Remote DeskTop

    by couttsj
    Replies
    24
    Views
    2,257

    Re: Remote DeskTop

    Just do a Google search for "NTSVC.OCX download". Be sure to verify the hash code to ensure that the code hasn't been tampered with. If you still have difficulty, send me a PM.

    J.A. Coutts
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width