| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2918 人关注过本帖
标题:[求助]align DWORD和GetCommandLineArgs是什么意思?
只看楼主 加入收藏
maozhong89
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2007-6-22
收藏
 问题点数:0 回复次数:7 
[求助]align DWORD和GetCommandLineArgs是什么意思?
看有的程序中在定义函数的前面都加align dword 有什么用啊?
还有看到一个函数调用invoke GetCommandLineArgs 是什么意思?
哪位教下 谢谢!
搜索更多相关主题的帖子: DWORD align 意思 
2007-07-29 10:58
zklhp
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:china
等 级:贵宾
威 望:254
帖 子:11485
专家分:33241
注 册:2007-7-10
收藏
得分:0 
以下是引用maozhong89在2007-7-29 10:58:42的发言:
看有的程序中在定义函数的前面都加align dword 有什么用啊?
还有看到一个函数调用invoke GetCommandLineArgs 是什么意思?
哪位教下 谢谢!

align dword就是以双字对齐

GetCommandLineArgs 名字很明白了

2007-07-29 14:03
maozhong89
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2007-6-22
收藏
得分:0 
回复:(zklhp)以下是引用maozhong89在2007-7-29 10:...
双字对齐有什么用呢?
2007-07-30 10:05
无理取闹
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:53
帖 子:4264
专家分:0
注 册:2006-7-26
收藏
得分:0 
Win32中,文件中的所有对象都是双字对齐的

win32汇编
病毒 加密
目前兴趣所在
2007-07-30 17:52
maozhong89
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2007-6-22
收藏
得分:0 
回复:(无理取闹)Win32中,文件中的所有对象都是双字...
那是不是函数前都要加,怎么我看有的程序没有啊?还有GetProcessHeap是什么函数啊,怎么只有在vb里有.谢谢!在api函数里没查到.
2007-07-30 18:02
无理取闹
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:53
帖 子:4264
专家分:0
注 册:2006-7-26
收藏
得分:0 

The GetProcessHeap function obtains a handle to the heap of the calling process. This handle can then be used in calls to the
HeapAlloc, HeapReAlloc, HeapFree, and HeapSize functions.

HANDLE GetProcessHeap(VOID)

Parameters

This function has no parameters.

Return Values

If the function succeeds, the return value is a handle to the calling process's heap.
If the function fails, the return value is NULL.

Remarks

GetProcessHeap allows Win32-based applications to allocate memory from the process heap without having to first create a heap with the HeapCreate function, as shown in this example:

HeapAlloc(GetProcessHeap(), 0, dwBytes);

Note that the handle obtained by calling the function should not be used in calls to the HeapDestroy function.
Note, also, that the HEAP_NO_SERIALIZE flag should not be specified when using the HeapAlloc, HeapFree, HeapReAlloc, and HeapSize functions to access the process heap. The system may create additional threads within the application's process, such as a Ctrl+C handler, that simultaneously access the process heap. For more information about HEAP_NO_SERIALIZE, see the HeapCreate function.


win32汇编
病毒 加密
目前兴趣所在
2007-07-30 22:05
无理取闹
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:53
帖 子:4264
专家分:0
注 册:2006-7-26
收藏
得分:0 

我也没用过这个函数 帮你查了一下 见笑了


win32汇编
病毒 加密
目前兴趣所在
2007-07-30 22:06
maozhong89
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2007-6-22
收藏
得分:0 
回复:(无理取闹)The GetProcessHeap function obta...
是啊,很少见.我只看到在文件储存,读取时候有用到!谢谢!
2007-07-31 09:45
快速回复:[求助]align DWORD和GetCommandLineArgs是什么意思?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017335 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved