Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Win32::Process::Hide did not return true value

by syphilis (Canon)
on Jun 11, 2013 at 23:16 UTC ( #1038360=note: print w/ replies, xml ) Need Help??


in reply to Win32::Process::Hide did not return true value

I think that error (or is it merely a warning ?) is normally avoided by adding 1; below the end of the code in the .pm file. That is, in Hide.pm, try changing:

Win32::Process::Hide::HideProcess(); __END__
to
Win32::Process::Hide::HideProcess(); 1; __END__
Cheers,
Rob


Comment on Re: Win32::Process::Hide did not return true value
Select or Download Code
Re^2: Win32::Process::Hide did not return true value
by Anonymous Monk on Jun 12, 2013 at 03:05 UTC

    I think that error (or is it merely a warning ?) is normally avoided by adding 1;

    FWIW, it does this by design, when it fails to hide perl.exe, it doesn't return true, so require warns

Re^2: Win32::Process::Hide did not return true value
by Abhijit10089 (Novice) on Jun 12, 2013 at 16:16 UTC

    Thanks for your reply, but even after adding 1; at the end of Hide.pm at location "C:\strawberry\cpan\build\Win32-Process-Hide-1.85-ADEtkQ\lib\Win32\Process\" & all other sub-directories of "C:\strawberry\cpan\build\Win32-Process-Hide-1.85-ADEtkQ\" but still receiving the same error.

    Any Other suggestions?

      Just tried the same code in Windows XP worked fine for Win32::Process::Hide but still the process was the TaskManager.

      Any other suggestions on how to hide the process from windows or hide it from other processes like running in a VM of its own.

        Any other suggestions on how to hide the process from windows or hide it from other processes like running in a VM of its own.

        :) Stop trying :) hiding process on windows is all about DLL injection and manipulating win32 structs -- its not easy, its not recommended, and it probably won't work for whatever you're trying to do -- its even harder to do post win2k because of improvements in windows -- for all you know the program is creating a mutex or a socket, nothing to do with being listed in taskmanager

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038360]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2014-11-20 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (101 votes), past polls