Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
7abee0ce
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
10
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
7abee0ce
编写于
9月 14, 2000
作者:
R
Richard Levitte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Jeffrey Altman convinced me this patch was really needed, or there is
no way to make sure GetCursorInfo will give us a valid answer.
上级
6dcbaf58
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
24 addition
and
9 deletion
+24
-9
crypto/rand/rand_win.c
crypto/rand/rand_win.c
+24
-9
未找到文件。
crypto/rand/rand_win.c
浏览文件 @
7abee0ce
...
...
@@ -130,14 +130,27 @@
static
void
readtimer
(
void
);
static
void
readscreen
(
void
);
/* It appears like PCURSORINFO is only defined when WINVER is 0x0500 and up,
which currently only happens on Win2000. Unfortunately, that is a typedef,
so it's a little bit difficult to detect properly. On the other hand, the
macro CURSOR_SHOWING is defined within the same conditional, so it can be
use to detect the absence of PCURSORINFO. */
/* It appears like CURSORINFO, PCURSORINFO and LPCURSORINFO are only defined
when WINVER is 0x0500 and up, which currently only happens on Win2000.
Unfortunately, those are typedefs, so they're a little bit difficult to
detect properly. On the other hand, the macro CURSOR_SHOWING is defined
within the same conditional, so it can be use to detect the absence of said
typedefs. */
#ifndef CURSOR_SHOWING
typedef
void
*
PCURSORINFO
;
#endif
/*
* Information about the global cursor.
*/
typedef
struct
tagCURSORINFO
{
DWORD
cbSize
;
DWORD
flags
;
HCURSOR
hCursor
;
POINT
ptScreenPos
;
}
CURSORINFO
,
*
PCURSORINFO
,
*
LPCURSORINFO
;
#define CURSOR_SHOWING 0x00000001
#endif
/* CURSOR_SHOWING */
typedef
BOOL
(
WINAPI
*
CRYPTACQUIRECONTEXT
)(
HCRYPTPROV
*
,
LPCTSTR
,
LPCTSTR
,
DWORD
,
DWORD
);
...
...
@@ -245,8 +258,10 @@ int RAND_poll(void)
if
(
cursor
)
{
/* cursor position */
cursor
((
PCURSORINFO
)
buf
);
RAND_add
(
buf
,
sizeof
(
buf
),
0
);
PCURSORINFO
p
=
(
PCURSORINFO
)
buf
;
p
->
cbSize
=
sizeof
(
CURSORINFO
);
if
(
cursor
(
p
))
RAND_add
(
p
+
sizeof
(
p
->
cbSize
),
p
->
cbSize
-
sizeof
(
p
->
cbSize
),
0
);
}
if
(
queue
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录