次の方法で共有


IOCTL_FMD_GET_INFO (Compact 2013)

3/26/2014

This I/O control message determines the size characteristics for the flash media device. This I/O control message is similar to the FMD_GetInfo function; however, it can be used by an application to retrieve the size information. Send this message with OEMIoControl.

Syntax

BOOL OEMIoControl(
    DWORD dwIoControlCode,    // use IOCTL_FMD_GET_INFO
    LPVOID lpInBuffer,        // pointer to input buffer
    DWORD nInBufferSize,      // input buffer size
    LPVOID lpOutBuffer,       // pointer to output buffer
    DWORD nOutBufferSize,     // output buffer size
    LPDWORD lpBytesReturned   // number of bytes returned
);

Parameters

  • dwIoControlCode
    [in] Control code for the operation. Use IOCTL_FMD_GET_INFO for this operation.
  • lpInBuffer
    [in] Set to NULL.
  • nInBufferSize
    [in] Set to zero.
  • lpOutBuffer
    [out] Pointer to an FMDInfo structure.
  • nOutBufferSize
    [in] Size of the value pointed to by lpOutBuffer.
  • lpBytesReturned
    [in] Set to NULL.

Return Values

Returns a nonzero value if successful; otherwise, returns zero.

Remarks

To get extended error information, call GetLastError. GetLastError may return other standard error messages as appropriate.

Requirements

Header

fmd.h

See Also

Reference

Flash Media Driver IOCTLs
FMD_GetInfo
FMDInfo

Other Resources

GetLastError