> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ApuIsVirtualAddressValid

> ApuIsVirtualAddressValid

# ApuIsVirtualAddressValid

仮想アドレスを検証します。

## 構文

```cpp theme={null}
bool ApuIsVirtualAddressValid(  
         const void* virtualAddress,  
         UINT32 physicalAlignmentInBytes  
)  
```

### パラメーター

*virtualAddress*   \_In\_\
型: void\*

検証する仮想アドレス。

*physicalAlignmentInBytes*   \
型: UINT32

物理アドレスに期待されるアラインメント。

### 戻り値

型: bool

仮想アドレスが有効な場合は true を返し、そうでない場合は false を返します。

## 解説

この関数は、指定された仮想アドレスが有効であり、[ApuAlloc](/reference/audio/apu/functions/apualloc) で割り当てられたものであり、関連付けられた APU 物理アドレスが指定されたアラインメントを持つかを検証します。

関連付けられた物理アドレスを判定するには、[ApuMapVirtualAddress](/reference/audio/apu/functions/apumapvirtualaddress) を呼び出します。物理アドレスがわかっている場合は、[ApuMapApuAddress](/reference/audio/apu/functions/apumapapuaddress) を呼び出して、関連付けられた仮想アドレスを判定します。

## 要件

**ヘッダー:** apu.h

**ライブラリ:** acphal.lib

**サポート対象プラットフォーム:** XBOX One ファミリー本体、XBOX Series 本体

## 関連項目

[ApuMapVirtualAddress](/reference/audio/apu/functions/apumapvirtualaddress)\
[ApuMapApuAddress](/reference/audio/apu/functions/apumapapuaddress)\
[APU](/reference/audio/apu/apu_members)


## Related topics

- [ApuMapVirtualAddress](/ja-jp/reference/audio/apu/functions/apumapvirtualaddress.md)
- [APU (Audio Processing Unit)](/ja-jp/reference/audio/apu/apu_members.md)
- [ApuMapApuAddress](/ja-jp/reference/audio/apu/functions/apumapapuaddress.md)
- [ApuFree](/ja-jp/reference/audio/apu/functions/apufree.md)
- [ApuAlloc](/ja-jp/reference/audio/apu/functions/apualloc.md)
