Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2006
    Posts
    5,380

    FreePlugin: FormatDriveDLL

    ok guys, after seeing a post requesting the ability to format a users drive from a ams app, i made this small dll,

    A deliberate drawback, it only shows the windows format dialog, the drive and type passed to the dll will be set the dialog, all the user has to do is click "Start" or "Close".

    the reason behind this is i will not release anything that could be used to destroy a users system, so the dialog is a fail safe, you will not be able to just format a users drive with out the users conformation, that being said, heres the info

    Example call
    Code:
    -- Requires Windows 2000 or higher. 
    -- Only invokes the format prompt (doesn't format automatically). 
    -- Return 0 if Error or Cancel / 1 if successfull
    
    sDrive = "e"-- Drive = A: B: C: ...
    nType = 0-- Type = 0 for Full Format / 1 for Quick format
    result = String.ToNumber(DLL.CallFunction("AutoPlay\\Docs\\FormatDriveDLL.dll", "FormatDrive", "\""..sDrive.."\","..nType, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL));
    if result == 0 then
    	Dialog.Message("Debug", "Format Failed", MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
    elseif result == 1 then
    	Dialog.Message("Debug", "Format Success", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    end

    And the APZ
    Last edited by RizlaUK; 02-01-2009 at 11:35 AM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  2. #2
    Join Date
    Nov 2006
    Location
    Iran
    Posts
    38

    good good

    good work.
    but you call a dialog. you can't format whitout adialog (format).

  3. #3
    Join Date
    May 2006
    Posts
    5,380
    well, you can format a drive from cmd, but im not going to pass on that information here, if anyone wants to do such then google it, this dll is only intended to give ams users the ability to format a drive (safely) without passing on potentiality malicious information that could be used to wipe a hdd.
    Open your eyes to Narcissism, Don't let her destroy your life!!

Similar Threads

  1. FreePlugin: HardwareFingerprintDLL
    By RizlaUK in forum AutoPlay Media Studio 6.0
    Replies: 8
    Last Post: 11-18-2009, 02:22 AM
  2. FreePlugin: Splash Image Transition Engine DLL
    By RizlaUK in forum AutoPlay Media Studio 6.0
    Replies: 43
    Last Post: 03-26-2008, 08:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts