Sign in to follow this  
Followers 0
DarkAngel

A little Problem with a script

5 posts in this topic

#1 ·  Posted (edited)

i was trying to write a script that would lock a drive ( created through subst ) when a SD card would be removed.. This sd card is not however the drive to be locked .

Since i am running a process every 5 secs to check whether the card is in or not and accordingly encrypt and lock the drive .. then when the card is inserted again its decrypted and unlocked and mounted again . The process however can easily be deleted so i tried something like this

If ( @OSTYPE = "WIN32_NT" ) then;
DllCall('kernel32.dll','dword','RegisterServiceProcess','dworf',@AutoItPID,'dword',1)
EndIf

to like hide the process .. Its nt working ... Is there any other way out / what am i doing wrong ? :graduated:

please help :(

Edited by DarkAngel

Share this post


Link to post
Share on other sites



Worf?

:D

Worf ??? :( i am afraid i dont understand what you mean to say .... :graduated:

Share this post


Link to post
Share on other sites

I think he isn't familliar with the dworf datatype that you specified as the 5th paramenter of your DllCall.

Share this post


Link to post
Share on other sites

Oops .. i see now .. Silly mistake .. :graduated: Thats a typo .. but still i cant get it to work .. Any suggestions ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0