收集Windows开发常用函数,供大家分享。(不断更新中...)

本文收集了Windows开发中使用频率较高的函数,包括注册窗口消息、线程消息处理、环境变量操作、TLS等核心功能,提供了详细的函数介绍和链接。

此博文,只收集在Windows开发过程中使用频率较高的函数,函数含义请大家查看MSDN。

1.UINT RegisterWindowMessage( LPCTSTR lpString ); 介绍地址:http://baike.baidu.com/view/1464452.htm

2.BOOL PostThreadMessage( DWORD idThread, UINT Msg, WPARAM wParam, LPARAM lParam );

3.DWORD GetCurrentThreadId(void);

4.BOOL SetEnvironmentVariable(LPCTSTR lpName,LPCTSTR lpValue);

5.DWORD GetEnvironmentVariable(LPCTSTR lpName,LPTSTR lpBuffer,DWORD nSize);

6.DWORD TlsAlloc(void);

7.uintptr_t _beginthreadex( void *security, unsigned stack_size, unsigned ( *start_address )( void * ), void *arglist, unsigned initflag, unsigned *thrdaddr );

8.void _endthreadex( unsigned retval );

9.BOOL TlsSetValue( DWORD dwTlsIndex, LPVOID lpTlsValue );

10.BOOL PeekMessage( LPMSG lpMsg,
    HWND hWnd,
    UINT wMsgFilterMin,
    UINT wMsgFilterMax,
    UINT wRemoveMsg
); 介绍地址:http://baike.baidu.com/view/1080178.htm

11.BOOL GetMessage( LPMSG lpMsg,
    HWND hWnd,
    UINT wMsgFilterMin,
    UINT wMsgFilterMax
);介绍地址:http://baike.baidu.com/view/1080187.htm

12.BOOL UpdateLayeredWindow(
HWND hwnd,
HDC hdcDst,
POINT *pptDst,
SIZE *psize,
HDC hdcSrc,
POINT *pptSrc,
COLORREF crKey,
BLENDFUNCTION *pblend,
DWORD dwFlags
);介绍地址:http://baike.baidu.com/view/1534816.htm 

http://blog.youkuaiyun.com/jinjazz/article/details/1860437

13.BOOL PathAppend(
  _Inout_  LPTSTR pszPath,
  _In_     LPCTSTR pszMore
);介绍地址:http://technet.microsoft.com/zh-cn/bb773565(VS.90).aspx

14. SHGetSpecialFolderPath

                CString strSysPath;
		WCHAR szPath[MAX_PATH] = {0};
		if (::SHGetSpecialFolderPath(NULL, szPath, csidl, FALSE))
		{
			strSysPath = szPath;
		}


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值