DarkAngel Posted November 21, 2010 Posted November 21, 2010 (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 ? please help Edited November 21, 2010 by DarkAngel
AdmiralAlkex Posted November 21, 2010 Posted November 21, 2010 Worf? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
DarkAngel Posted November 21, 2010 Author Posted November 21, 2010 Worf? Worf ??? i am afraid i dont understand what you mean to say ....
Tvern Posted November 21, 2010 Posted November 21, 2010 I think he isn't familliar with the dworf datatype that you specified as the 5th paramenter of your DllCall.
DarkAngel Posted November 21, 2010 Author Posted November 21, 2010 Oops .. i see now .. Silly mistake .. Thats a typo .. but still i cant get it to work .. Any suggestions ?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now