Visual Studio でオプションを設定するCharacter Set
と、いくつかのプリプロセッサ シンボルが定義されます。
Unicode
定義します_UNICODE
Use Multi-byte Character Set
定義します_MBCS
Not Set
これらのいずれも定義しません。
ここで、SDK のヘッダー ファイルを調べると、次のようなものがたくさん表示されます。
#ifdef _UNICODE
#define GetDeltaInfo GetDeltaInfoW
#else
#define GetDeltaInfo GetDeltaInfoA
#endif /* _UNICODE */
W 関数と A 関数は次のとおりです。
BOOL
WINAPI
GetDeltaInfoA(
__in LPCSTR lpDeltaName,
__out LPDELTA_HEADER_INFO lpHeaderInfo
);
/**
* Gets header information for a delta accessed by Unicode file name.
* @param lpDeltaName Delta file name, Unicode.
* @param lpHeaderInfo Header information for given Delta.
* @return TRUE if success, FALSE otherwise.
*/
BOOL
WINAPI
GetDeltaInfoW(
__in LPCWSTR lpDeltaName,
__out LPDELTA_HEADER_INFO lpHeaderInfo
);
そのため、Unicode またはマルチバイトを設定することで、適切な機能セットを選択できます。