Using ADLX in a Windows system service application

ADLX v1.4 and above can be used directly in a Windows system service application, providing access to limited ADLX functionality.

Refer to ADLX v1.3 and below if the Windows system service application requires ADLX functionality that is not available when ADLX runs in Session 0.

ADLX v1.4 and above

When ADLX v1.4 and above runs in a Windows system service application, the following functionality is available:

Note: When running in Session 0, ADLX cannot be initialized with an ADL context.

See Using ADLX in an ADL application for more information for initializing ADLX with an ADL context.

ADLX v1.3 and below

ADLX v1.3 and below cannot be used directly in a Windows system service application. However, ADLX functionality can be accessed in a system service application through a user mode process.

The functions are provided through a communication mechanism between the user mode process and the system service (such as shared memory).

To use ADLX v1.3 and below in a system service application,

  1. Create a system service application.

  2. In the system service application, start a thread to complete the service work, such as ServiceWorkerThread.

  3. On the ServiceWorkerThread, get the token of the current process to create a user process using CreateProcessAsUserW.

    • For more information on how to create a user process into a service application in C++, see UserProcess C++ sample .

    • For more information on how to create a user process into a service application in C, see UserProcess C sample .

  4. In the user mode process, load ADLX and implement the desired functionality.

  5. In the user mode process, implement a communication mechanism suitable for communicating with the system service (such as shared memory) and tie the ADLX data with the communication mechanism.

  6. Run the user mode process and the service application.

For more information, see GPUServiceCall C++ samples and GPUServiceCall C samples .

Related pages

  • Visit the Adlx product page for download links and more information.

Looking for more documentation on GPUOpen?

AMD GPUOpen software blogs

Our handy software release blogs will help you make good use of our tools, SDKs, and effects, as well as sharing the latest features with new releases.

GPUOpen Manuals

Don’t miss our manual documentation! And if slide decks are what you’re after, you’ll find 100+ of our finest presentations here.

AMD GPUOpen Performance Guides

The home of great performance and optimization advice for AMD RDNA™ 2 GPUs, AMD Ryzen™ CPUs, and so much more.

Getting started: AMD GPUOpen software

New or fairly new to AMD’s tools, libraries, and effects? This is the best place to get started on GPUOpen!

AMD GPUOpen Getting Started Development and Performance

Looking for tips on getting started with developing and/or optimizing your game, whether on AMD hardware or generally? We’ve got you covered!

AMD GPUOpen Technical blogs

Browse our technical blogs, and find valuable advice on developing with AMD hardware, ray tracing, Vulkan®, DirectX®, Unreal Engine, and lots more.

Find out more about our software!

AMD GPUOpen Effects - AMD FidelityFX technologies

Create wonder. No black boxes. Meet the AMD FidelityFX SDK!

AMD GPUOpen Samples

Browse all our useful samples. Perfect for when you’re needing to get started, want to integrate one of our libraries, and much more.

AMD GPUOpen developer SDKs

Discover what our SDK technologies can offer you. Query hardware or software, manage memory, create rendering applications or machine learning, and much more!

AMD GPUOpen Developer Tools

Analyze, Optimize, Profile, Benchmark. We provide you with the developer tools you need to make sure your game is the best it can be!