in reply to impersonation under win32

You can build Win32-AdminMisc sources yourself using AS1000. You'll need

  1. CUString.hpp & CUString.lib

    I ripped these from Win32-Scheduler_v20000702.tar.gz

  2. A one-line edit to include\win32Perl.h

    Line 87 becomes

    #if PERL_VERSION >= 8

    Not in keeping with the style of the header file--but it works!

  3. The following command line (which I wrapped for posting) and which assumes MS VC v6. (Other compilers YMMV):
    cl -MT -LD -EHsc -I"c:\cl\include" -I"include" -I"c:\perl510\lib\CORE" -DWIN32 -DPERL5008 *.cpp *.c CUString.lib WinCPUIDlib.lib lib\Accounts_Lite.lib c:\perl510\lib\CORE\perl510.lib c:\cl\lib\user32.lib c:\cl\lib\AdvAPI32.lib c:\cl\lib\wsock32.lib c:\cl\lib\NetAPI32.lib c:\cl\lib\WinMM.lib c:\cl\lib\Version.Lib ADMINMISC.DEF /link /nodefaultlib:libc

    Adjust paths to suit your setup. Good luck if you want try and generate a makefile :)

    Copy the files:

    • AdminMisc.pm to \your510path\site\lib\Win32\
    • AdminMisc.dll to \your510path\site\lib\auto\Win32\AdminMisc\

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

Replies are listed 'Best First'.
Re^2: impersonation under win32
by briannz556 (Beadle) on Mar 27, 2008 at 09:04 UTC
    Many thanks for your detailed effort to help me with adminmisc. I'll have to do much research on this as I've never built such before and I'm not too sure what AS1000 is anyway. I know I don't have it :-) Can you tell me what AS1000 is please?
      Can you tell me what AS1000 is please?

      AS1000 is the 5.10 build of perl from Active State.

      (download They've bumped their build number to AS1002 since I got my copy).

      If you're not set up to build your own packages (have an appropriate compiler and know how to use it), then you're better off trying to locate a pre-built binary PPM for the package.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        Appreciate your help. Will read more on the subject on buiolding packages and see what happens. Have a great day.