随笔分类 -  Windows

摘要:一、dll函数和类有两种导出方法:1、.def文件导出;2、__declspec(dllexport)导出;dll方法和类的导入:1、静态方式,加载lib和头文件,接着调用即可;2、动态方式,load dll,使用GetProcAddress动态获取函数指针地址;二、下面是使用.def导出方式的代码... 阅读全文
posted @ 2014-10-15 14:43 2012harry 阅读(473) 评论(0) 推荐(0)
摘要:// IsUserAdminTest.cpp : Defines the entry point for the console application.//#include #include #include BOOL IsUserAdmin();int _tmain(int argc, _TCH... 阅读全文
posted @ 2014-09-15 11:21 2012harry 阅读(204) 评论(0) 推荐(0)