Partager via


Turning On and Off PC Card Power

To turn power on and off to your PC Card, you must first remove it, reinsert it, and then suspend or resume power to your device.

To turn on and off PC Card Power

  1. Examine the HKEY_LOCAL_MACHINE\Drivers\Active registry key to verify that there is a numbered key present with the values of Sckt, PnpId, Hnd, and Name.

    The values Sckt, PnpId, Hnd, and Name are defined in %_WINCEROOT%\Public\Common\DDK\INC\Devload.h. If Sckt and PnpId exist under this key, then your device is a PCMCIA or CF device. The first three characters of the Name value are DSK. The DWORD value in Hnd is used in a call to DeactivateDevice. Following the call to DeactivateDevice, the disk driver frees its PCMCIA resources, which causes PCMCIA to power off the development workstation slot that the PC Card was in.

  2. From your development workstation PC Card slot, remove your PC Card.

  3. Reinsert your PC Card into the PC Card slot.

  4. Suspend power to your development workstation.

    - or -

    Resume power to your development workstation.

See Also

PC Card Driver Samples

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.