delphi 中api调用时c语言翻译问题
本人新手,需要使用Windows的dism做程序,在查询msdn中相应api的时候,上面是这样写的:
DismGetImageInfo Function:
HRESULT WINAPI DismGetImageInfo(
_In_ PCWSTR ImageFilePath,
_Outptr_result_buffer_(*Count) DismImageInfo** ImageInfo,
_Out_ UINT* Count
);
DismImageInfo Structure:
typedef struct _DismImageInfo
{
DismImageType ImageType;
UINT ImageIndex;
PCWSTR ImageName;
PCWSTR ImageDescription;
UINT64 ImageSize;
UINT Architecture;
PCWSTR ProductName;
PCWSTR EditionId;
PCWSTR InstallationType;
PCWSTR Hal;
PCWSTR ProductType;
PCWSTR ProductSuite;
UINT MajorVersion;
UINT MinorVersion;
UINT Build;
UINT SpBuild;
UINT SpLevel;
DismImageBootable Bootable;
PCWSTR SystemRoot;
DismLanguage* Language;
UINT LanguageCount;
UINT DefaultLanguage Index;
VOID* CustomizedInfo;
}
DismImageInfo;
请问我应该怎么转换才能使用DismImageInfo呢?谢谢大家
DismGetImageInfo Function:
HRESULT WINAPI DismGetImageInfo(
_In_ PCWSTR ImageFilePath,
_Outptr_result_buffer_(*Count) DismImageInfo** ImageInfo,
_Out_ UINT* Count
);
DismImageInfo Structure:
typedef struct _DismImageInfo
{
DismImageType ImageType;
UINT ImageIndex;
PCWSTR ImageName;
PCWSTR ImageDescription;
UINT64 ImageSize;
UINT Architecture;
PCWSTR ProductName;
PCWSTR EditionId;
PCWSTR InstallationType;
PCWSTR Hal;
PCWSTR ProductType;
PCWSTR ProductSuite;
UINT MajorVersion;
UINT MinorVersion;
UINT Build;
UINT SpBuild;
UINT SpLevel;
DismImageBootable Bootable;
PCWSTR SystemRoot;
DismLanguage* Language;
UINT LanguageCount;
UINT DefaultLanguage Index;
VOID* CustomizedInfo;
}
DismImageInfo;
请问我应该怎么转换才能使用DismImageInfo呢?谢谢大家
...全文


Windows SDK/API
