Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6248227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:01:09+00:00 2026-05-24T13:01:09+00:00

DelphiXe; Xp,Vista,Win7,WSrv2008R2; 0.DEP(Data Execution Prevention) CPU supported Function isCpuDEP:bool; begin Result:=… //??? end; 1.How

  • 0

DelphiXe; Xp,Vista,Win7,WSrv2008R2;

enter image description here

0.DEP(Data Execution Prevention) CPU supported

Function isCpuDEP:bool; 
begin
Result:=... //???
end;

1.How to define, DEP is ON in system?

Function isEnableDEP:bool; // Win Xp comparable
begin
Result:=false;if isCpuDEP=false then exit;
Result:=... //???
end;

2.To define, that if DEP it is enabled, and also enabled for ALL programs and services?

Function isEnableDEPForAllProgram:bool;
begin
Result:=false;if isEnableDEP=false then exit;
Result:=... //???
end;

3.Get DEP program list?

Function GetDEPProgramList:TStringList;
begin
Result:=nil;if isEnableDEPForAllProgram=false then exit;
Result:=Tstringlist.Create;
Result:=... //???
end;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T13:01:12+00:00Added an answer on May 24, 2026 at 1:01 pm

    The below uses GetProcessDEPPolicy for point (1):

    type
      TGetProcessDEPPolicy =
          function(Process: THandle; out Flags: DWORD; out Permanent: Bool): Bool; stdcall;
    const
      PROCESS_DEP_ENABLE = $00000001;
      PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION = $00000002;
    
    procedure TForm1.Button1Click(Sender: TObject);
    var
      GetProcessDEPPolicy: TGetProcessDEPPolicy;
      DEPFlags: DWORD;
      IsPermanent: Bool;
    begin
      @GetProcessDEPPolicy :=
          GetProcAddress(GetModuleHandle(kernel32), 'GetProcessDEPPolicy');
      if Assigned(GetProcessDEPPolicy) then begin
        if GetProcessDEPPolicy(GetCurrentProcess, DEPFlags, IsPermanent) then begin
    
          if (DEPFlags and PROCESS_DEP_ENABLE) = PROCESS_DEP_ENABLE then
            ShowMessage('DEP enabled')
          else
            ShowMessage('DEP disabled');
    
        end else
          raise EOSError.Create(SysErrorMessage(GetLastError));
      end else
        raise EOSError.Create('Unsupported OS');
    end;
    

    For point (2), you can use GetSystemDEPPolicy in a similar fashion.

    For point (3), you can enumerate processes and find out the ones running with DEP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Delphi Xe, Win7 I need the following function: Function isPcInDomain:bool; The domain name does
ShlObj.pas line 9922 (as in Delphi XE): type BFFCALLBACK = function(Wnd: HWND; uMsg: UINT;
The following code used to compile with Delphi 2007: constructor TMyFile.Create(const _Filename: string); begin
Win7x64, DelphiXe. Has written the program, which registers the control panel applet (as here
We're using Delphi2005 with Delphi2007 patches, also experimenting with DelphiXE SOAP libraries. But I've
In DelphiXE, I'm using a tFileOpenDialog to select a folder and then listing all
Using DelphiXE, I'm trying to show the length of a wav file on a
Is it possible to disable the form designer in DelphiXE on-demand/selectively and only work
Delphi Xe. In module Windows.pas I see one of methods: function InterlockedExchangeAdd(Addend: PLongint; Value:
Using Delphi XE on Win7 x64, have Jedi Class Library ver. 3.45, and 7z.dll

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.