dcsimg
Results 1 to 4 of 4
  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2018
    Posts
    3

    Programs running with admin rights are normal with User AD is not

    Hello friends.

    I wrote a webcam program, ok. The problem is that the shots need to be small so I call the function

    SendMessage (hHwnd, WM_CAP_DLG_VIDEOFORMAT, CShort (0), CType (0, String))

    with the declaration as below

    Private Const WM_CAP_DLG_VIDEOFORMAT As Long = WM_CAP_START + 41
    ByVal lvaram As Integer, ByVal wMsg As Integer,

    To display the video frame format for me choose small size, ok.

    But if I run the program with admin local right then I just choose small size for instance 352x288 once is the next time the program launches it itself remember size 352x288 ie I do not have to select no such to use again The Also if I run the program with user ad permissions it does not remember, every time the launch is to resize the small size annoyed and long shake for work.

    So there are ACE or high-level players know what the permissions or what to do with the webcam program of her ok ok but expectations? Thank you very much. When I login user pass of user ad, the program still remember when I choose small size, ie select the first time that it remember the next run is not selected anymore.)

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    21,703

    Re: Programs running with admin rights are normal with User AD is not

    You can change a setting to make your app always launch with admin permissions... I'll find the instructions for you. I'll just be a minute...

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    21,703

    Re: Programs running with admin rights are normal with User AD is not

    You'll want to modify the manifest that gets embedded in the program. This works on Visual*Studio*2008 and higher: Project + Add New Item, select "Application Manifest File". Change the <requestedExecutionLevel> element to:

    <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

    The user gets the UAC prompt when they start the program.
    Last edited by .paul.; Mar 7th, 2018 at 05:00 PM.

  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2018
    Posts
    3

    Re: Programs running with admin rights are normal with User AD is not

    Thank you for answering me.

    But I logged in with the user domain and run the program with no admin rights.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width


×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.