次の方法で共有


ACM_Open (ACM Driver) (Compact 2013)

3/26/2014

This function opens an ACM driver.

Syntax

PVOID ACM_Open(
  DWORD dwData,
  DWORD dwAccess,
  DWORD dwShareMode
);

Parameters

  • dwData
    A value that specifies the value returned from a call to the ACM_Init function. The ACM driver is free to use or ignore this value.
  • dwAccess
    A value that specifies a requested access level, which is a combination of GENERIC_READ and GENERIC_WRITE. The ACM driver is free to use or ignore this value.
  • dwShareMode
    A value that specifies a requested share mode, which is a combination of FILE_SHARE_READ and FILE_SHARE_WRITE. The ACM driver is free to use or ignore this value.

Return Value

Returns a DWORD that is passed to the functions ACM_Read, ACM_Write, and so on. A return value of NULL indicates the function was unable to open the device.

Remarks

The ACM Driver Wrapper library, Acmdwrap.lib, always returns a constant value from this function.

Requirements

Header

Acmdrv.h

Library

Acmdwrap.lib

See Also

Reference

ACM Driver Functions
ACM_Init