Direct3D Version 10 Kernel Handles

The Direct3D version 10 kernel handle life spans are typically controlled by the user-mode display driver explicitly. Such handles allow the user-mode display driver to manipulate allocations. Such handles can also allow the user-mode display driver to perform other interactions with the kernel (including interactions with the display miniport driver).

The following shows an example of a kernel handle for a resource:

// Strongly typed handle to identify a resource object to the driver: 
typedef struct D3D10DDI_HKMRESOURCE
{
    D3DKMT_HANDLE handle;
} D3D10DDI_HKMRESOURCE;