次の方法で共有


SDGetDeviceHandle (Windows CE 5.0)

Send Feedback

This function retrieves an SD device handle derived from the initialization context passed in to the XXX_Init (Device Manager) entry point of a client driver. The real registry path of the client device driver can optionally be returned.

SD_DEVICE_HANDLE SDGetDeviceHandle(DWORDInitContext,
  PWCHAR* ppRegPath);

Parameters

  • InitContext
    [in] Device context passed into the XXX_Init entry point of a client device driver.
  • ppRegPath
    [out] Optional. The registry path of the client device driver.

Return Values

On success, returns a handle to an SD device of type SD_DEVICE_HANDLE. Returns NULL on failure.

Remarks

If ppRegPath is NULL, the registry path will not be returned. This function then allocates storage for the registry path, and it becomes the responsibility of the client driver to free this memory through a call to XXX_Deinit (Device Manager).

Requirements

OS Versions: Windows CE 5.0 and later.
Header: Sdcardddk.h.
Link Library: Sdcardlib.lib.

See Also

Secure Digital Card Driver Functions | XXX_Init (Device Manager) | XXX_Deinit (Device Manager)

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.