Bewerken

Delen via


KsGetImageNameAndResourceId function (ks.h)

The KsGetImageNameAndResourceId function returns the image name and resource identifier that corresponds to the RegKey handle.

Syntax

KSDDKAPI NTSTATUS KsGetImageNameAndResourceId(
  [in]  HANDLE          RegKey,
  [out] PUNICODE_STRING ImageName,
  [out] PULONG_PTR      ResourceId,
  [out] PULONG          ValueType
);

Parameters

[in] RegKey

Specifies a handle for which to return the image name and resource identifier.

[out] ImageName

A caller-allocated buffer that receives the image name for the specified resource.

[out] ResourceId

Pointer to a caller-supplied variable that receives the resource identifier.

[out] ValueType

Pointer to a location into which the function returns the value type of the specified resource.

Return value

KsGetImageNameAndResourceId returns STATUS_SUCCESS if the requested values are found; otherwise, an error code is returned.

Requirements

Requirement Value
Target Platform Universal
Header ks.h (include Ks.h)
Library Ks.lib

See also

KsMapModuleName