| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 798 人关注过本帖
标题:windows.h的函数有吗那些?
只看楼主 加入收藏
killyour001
Rank: 2
等 级:论坛游民
帖 子:11
专家分:11
注 册:2011-3-24
结帖率:100%
收藏
已结贴  问题点数:20 回复次数:5 
windows.h的函数有吗那些?
windows.h的函数都有一些什么用,是怎样用的?
我是新手,请各位大神教教我,多谢.....
搜索更多相关主题的帖子: 怎样 
2011-04-01 20:18
ansic
Rank: 14Rank: 14Rank: 14Rank: 14
来 自:恍惚窈冥
等 级:城市猎人
帖 子:1543
专家分:5367
注 册:2011-2-15
收藏
得分:0 
http://topic.

善人者,不善人之师;不善人者,善人之资。不贵其师,不爱其资,虽智大迷。
2011-04-01 20:29
qq1023569223
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
来 自:湖南科技大学
等 级:贵宾
威 望:26
帖 子:2753
专家分:13404
注 册:2010-12-22
收藏
得分:20 
程序代码:
/*++ BUILD Version: 0001    Increment this if a change has global effects

Copyright (c) 1985-1997, Microsoft Corporation

Module Name:


    windows.h

Abstract:

    Master include file for Windows applications.

--*/

#ifndef _WINDOWS_
#define _WINDOWS_


#ifndef WINVER
#define WINVER 0x0400
#else   
#if defined(_WIN32_WINNT) && (WINVER < 0x0400) && (_WIN32_WINNT > 0x0400)
#error WINVER setting conflicts with _WIN32_WINNT setting
#endif
#endif

#if(WINVER >= 0x0500)
#pragma message ("")
#pragma message ("NOTE: WINVER has been defined as 0x0500 or greater which enables")
#pragma message ("Windows NT 5.0 and Windows 98 features. When these headers were released,")
#pragma message ("Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.")
#pragma message ("")
#pragma message ("For this release when WINVER is defined as 0x0500 or greater, you can only")
#pragma message ("build beta or test applications.  To build a retail application,")
#pragma message ("set WINVER to 0x0400 or visit http://www.)
#pragma message ("to see if retail Windows NT 5.0 or Windows 98 headers are available.")
#pragma message ("")
#pragma message ("See the SDK release notes for more information.")
#pragma message ("")
#endif

#ifndef _INC_WINDOWS
#define _INC_WINDOWS

#if defined (_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

/*  If defined, the following flags inhibit definition

 *     of the indicated items.

 *

 *  NOGDICAPMASKS     - CC_*, LC_*, PC_*, CP_*, TC_*, RC_

 *  NOVIRTUALKEYCODES - VK_*

 *  NOWINMESSAGES     - WM_*, EM_*, LB_*, CB_*

 *  NOWINSTYLES       - WS_*, CS_*, ES_*, LBS_*, SBS_*, CBS_*

 *  NOSYSMETRICS      - SM_*

 *  NOMENUS           - MF_*

 *  NOICONS           - IDI_*

 *  NOKEYSTATES       - MK_*

 *  NOSYSCOMMANDS     - SC_*

 *  NORASTEROPS       - Binary and Tertiary raster ops

 *  NOSHOWWINDOW      - SW_*

 *  OEMRESOURCE       - OEM Resource values

 *  NOATOM            - Atom Manager routines

 *  NOCLIPBOARD       - Clipboard routines

 *  NOCOLOR           - Screen colors

 *  NOCTLMGR          - Control and Dialog routines

 *  NODRAWTEXT        - DrawText() and DT_*

 *  NOGDI             - All GDI defines and routines

 *  NOKERNEL          - All KERNEL defines and routines

 *  NOUSER            - All USER defines and routines

 *  NONLS             - All NLS defines and routines

 *  NOMB              - MB_* and MessageBox()

 *  NOMEMMGR          - GMEM_*, LMEM_*, GHND, LHND, associated routines

 *  NOMETAFILE        - typedef METAFILEPICT

 *  NOMINMAX          - Macros min(a,b) and max(a,b)

 *  NOMSG             - typedef MSG and associated routines

 *  NOOPENFILE        - OpenFile(), OemToAnsi, AnsiToOem, and OF_*

 *  NOSCROLL          - SB_* and scrolling routines

 *  NOSERVICE         - All Service Controller routines, SERVICE_ equates, etc.

 *  NOSOUND           - Sound driver routines

 *  NOTEXTMETRIC      - typedef TEXTMETRIC and associated routines

 *  NOWH              - SetWindowsHook and WH_*

 *  NOWINOFFSETS      - GWL_*, GCL_*, associated routines

 *  NOCOMM            - COMM driver routines

 *  NOKANJI           - Kanji support stuff.

 *  NOHELP            - Help engine interface.

 *  NOPROFILER        - Profiler interface.

 *  NODEFERWINDOWPOS  - DeferWindowPos routines

 *  NOMCX             - Modem Configuration Extensions

 */

#if defined(RC_INVOKED) && !defined(NOWINRES)

#include <winresrc.h>

#else

#if defined(RC_INVOKED)
/* Turn off a bunch of stuff to ensure that RC files compile OK. */
#define NOATOM
#define NOGDI
#define NOGDICAPMASKS
#define NOMETAFILE
#define NOMINMAX
#define NOMSG
#define NOOPENFILE
#define NORASTEROPS
#define NOSCROLL
#define NOSOUND
#define NOSYSMETRICS
#define NOTEXTMETRIC
#define NOWH
#define NOCOMM
#define NOKANJI
#define NOCRYPT
#define NOMCX
#endif

#if !defined(_68K_) && !defined(_MPPC_) && !defined(_PPC_) && !defined(_ALPHA_) && !defined(_MIPS_) && !defined(_X86_) && defined(_M_IX86)
#define _X86_
#endif

#if !defined(_68K_) && !defined(_MPPC_) && !defined(_PPC_) && !defined(_ALPHA_) && !defined(_X86_) && !defined(_MIPS_) && defined(_M_MRX000)
#define _MIPS_
#endif

#if !defined(_68K_) && !defined(_MPPC_) && !defined(_PPC_) && !defined(_ALPHA_) && !defined(_X86_) && !defined(_MIPS_) && defined(_M_ALPHA)
#define _ALPHA_
#endif

#if !defined(_68K_) && !defined(_MPPC_) && !defined(_PPC_) && !defined(_ALPHA_) && !defined(_X86_) && !defined(_MIPS_) && defined(_M_PPC)
#define _PPC_
#endif

#if !defined(_68K_) && !defined(_MPPC_) && !defined(_PPC_) && !defined(_ALPHA_) && !defined(_X86_) && !defined(_MIPS_) && defined(_M_M68K)
#define _68K_
#endif

#if !defined(_68K_) && !defined(_MPPC_) && !defined(_PPC_) && !defined(_ALPHA_) && !defined(_X86_) && !defined(_MIPS_) && defined(_M_MPPC)
#define _MPPC_
#endif

#ifndef _MAC
#if defined(_68K_) || defined(_MPPC_)
#define _MAC
#endif
#endif

#ifndef RC_INVOKED
#if     ( _MSC_VER >= 800 )
#pragma warning(disable:4001)
#pragma warning(disable:4201)
#pragma warning(disable:4214)
#pragma warning(disable:4514)
#endif
#include <excpt.h>
#include <stdarg.h>
#endif /* RC_INVOKED */

#include <windef.h>
#include <winbase.h>
#include <wingdi.h>
#include <winuser.h>
#ifdef _MAC
DECLARE_HANDLE(HKEY);
typedef HKEY *PHKEY;
#endif
#if !defined(_MAC) || defined(_WIN32NLS)
#include <winnls.h>
#endif
#ifndef _MAC
#include <wincon.h>
#include <winver.h>
#endif
#if !defined(_MAC) || defined(_WIN32REG)
#include <winreg.h>
#endif
#ifndef _MAC
#include <winnetwk.h>
#endif

#ifndef WIN32_LEAN_AND_MEAN
#include <cderr.h>
#include <dde.h>
#include <ddeml.h>
#include <dlgs.h>
#ifndef _MAC
#include <lzexpand.h>
#include <mmsystem.h>
#include <nb30.h>
#include <rpc.h>
#endif
#include <shellapi.h>
#ifndef _MAC
#include <winperf.h>

#if(_WIN32_WINNT >= 0x0400)
#include <winsock2.h>
#include <mswsock.h>
#else
#include <winsock.h>
#endif /* _WIN32_WINNT >=  0x0400 */

#endif
#ifndef NOCRYPT
#include <wincrypt.h>
#endif

#ifndef NOGDI
#include <commdlg.h>
#ifndef _MAC
#include <winspool.h>
#ifdef INC_OLE1
#include <ole.h>
#else
#include <ole2.h>
#endif /* !INC_OLE1 */
#endif /* !MAC */
#endif /* !NOGDI */
#endif /* WIN32_LEAN_AND_MEAN */

#ifdef _MAC
#include <winwlm.h>
#endif


#ifdef INC_OLE2
#include <ole2.h>
#endif /* INC_OLE2 */

#ifndef _MAC
#ifndef NOSERVICE
#include <winsvc.h>
#endif

#if(WINVER >= 0x0400)
#ifndef NOMCX         
#include <mcx.h>     
#endif /* NOMCX */     
                  
#ifndef NOIME          
#include <imm.h>       
#endif
#endif /* WINVER >= 0x0400 */
#endif

#ifndef RC_INVOKED
#if     ( _MSC_VER >= 800 )
#pragma warning(default:4001)
#pragma warning(default:4201)
#pragma warning(default:4214)
/* Leave 4514 disabled.  It's a stupid warning anyway. */
#endif
#endif /* RC_INVOKED */

#endif /* RC_INVOKED */

#endif /* _INC_WINDOWS */
#endif /* _WINDOWS_ */

其实呢,我也看不明白

   唯实惟新 至诚致志
2011-04-01 20:33
killyour001
Rank: 2
等 级:论坛游民
帖 子:11
专家分:11
注 册:2011-3-24
收藏
得分:0 
回复 3楼 qq1023569223
大家一起努力啊。
2011-04-01 20:37
qq1023569223
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
来 自:湖南科技大学
等 级:贵宾
威 望:26
帖 子:2753
专家分:13404
注 册:2010-12-22
收藏
得分:0 
这个条件编译,不想看!看来那里面没有什么函数,它是用来引入其他的.h的吗!

   唯实惟新 至诚致志
2011-04-01 20:40
我菜119
Rank: 10Rank: 10Rank: 10
等 级:青峰侠
帖 子:938
专家分:1756
注 册:2009-10-17
收藏
得分:0 
<windows.h>中的函数数不胜数,难道你要等到都学会这些函数了再去写程序吗?估计要看到死吧!

用的时间长了自然而然的就会用了!

愿用余生致力编程
2011-04-02 10:30
快速回复:windows.h的函数有吗那些?
数据加载中...
 
   



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

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