delphi 中api调用问题
本人新手,需要使用Windows的dism做程序,在查询msdn中相应api的时候,上面是这样写的:DismGetImageInfoFunction:HRESULTWIN...
本人新手,需要使用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呢?谢谢大家 展开
1个回答
展开全部
看子结构也不少,你要完全用delphi整,可能要翻译一系列的API及结构,dismapi.h
看你在百度上发了一堆贴子的份上,帮你搜了下
dismapi有一个更底层的版本WIMGAPI,上面链接里面有一个delphi版
http://www.delphipraxis.net/137479-wimgapi-header-datei-fuer-delphi.html#post934938
看你在百度上发了一堆贴子的份上,帮你搜了下
dismapi有一个更底层的版本WIMGAPI,上面链接里面有一个delphi版
http://www.delphipraxis.net/137479-wimgapi-header-datei-fuer-delphi.html#post934938
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询