khalil_moghaddam
asked on
How can I Check my application Is running from CD
I Want to enforce my app. to absolutely run from CD. How can I do that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks a lot, But I think it can't recognize Virtual CD drive. Is there any way to prohibit using virtual-cd drive?
program Project1;
uses
Forms,Windows, Sysutils,
Unit1 in 'Unit1.pas' {Form1};
{$R *.res}
begin
Application.Initialize;
if GetDriveType(PChar(Extract
begin
Application.MessageBox('Yo
end
else
Application.CreateForm(TFo
Application.Run;
end.