那位高人能解释一下的代码?

pony12 2002-01-29 08:45:52
typedef HRESULT (WINAPI *REGINSTALL)(
HMODULE hm, // Module that contains REGINST resource
LPCSTR pszSection, // Section of INF to execute
LPCSTRTABLE pstTable // Additional string substitutions
);
...全文
123 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
pony12 2002-01-29
  • 打赏
  • 举报
回复
3ks
visualtree 2002-01-29
  • 打赏
  • 举报
回复
The WINAPI identifier is defined in WINDEF.H with the statement:


#define WINAPI __stdcall

This statement specifies a calling convention that involves how machine code is generated to place function call arguments on the stack. Most Windows function calls are declared as WINAPI.

lmfree 2002-01-29
  • 打赏
  • 举报
回复
就是定义一个函数指针的标识REGINSTALL,以后就可以直接使用它来定义参数为(HMODULE hm,LPCSTR pszSection,LPCSTRTABLE pstTable)返回值为HRESULT WINAPI的函数了。

其中WINAPI好像是个空的定义,这些可以去查查。

15,440

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧