DCOMPERM Utility

Author Message
Victor.voros

  • Total Posts : 1
  • Reward points : 0
  • Joined: 3/19/2007
  • Status: offline
DCOMPERM Utility Monday, March 19, 2007 1:22 PM (permalink)
Not sure if this is the best place to post this but firstly a v. useful utility  however
 
May I point out a flaw in the version that is currently on the ITFORUM website.
 
When you use the -runas option and set a user and a password the routine fails and the reason is a flaw in the SetRunAsPassword routine In the file SrvcMgmt.cpp. The 2nd parameter of the StringCChCopyx and StringCChCatx requires the total length of the string including null terminator so the guid gets truncated the way the code reads at the moment.
 
I've attached a version that works.
 
 
May I also suggest you alter dcomperm.cpp so it produces a message when -runas succeeds
 
 
Thanks
Attachment(s)SrvcMgmt.txt (10.26 KB) - downloaded 534 times
 
#1
    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2013 ASPPlayground.NET Forum Version 3.9