标签:程序 bsp char 大小 失败 glob title www 通过
http://www.cnblogs.com/del/archive/2008/02/28/1085124.html
//声明: AddAtom( lpString: PChar {串指针} ): ATOM; {返回串ID} DeleteAtom( nAtom: ATOM {串ID} ): ATOM; {返回串ID; 失败返回0} FindAtom( lpString: PChar {串指针} ): ATOM; {返回串ID; 失败返回0} GetAtomName( nAtom: ATOM; {串ID} lpBuffer: PChar;{缓冲区} nSize: Integer {缓冲区大小} ): UINT; {返回串实际长度; 失败返回0} GlobalAddAtom( lpString: PChar {串指针} ): ATOM; {返回串ID} GlobalDeleteAtom( nAtom: ATOM {串ID} ): ATOM; {返回串ID; 失败返回0} GlobalFindAtom( lpString: PChar {串指针} ): ATOM; {返回串ID; 失败返回0} GlobalGetAtomName( nAtom: ATOM; {串ID} lpBuffer: PChar;{缓冲区} nSize: Integer {缓冲区大小} ): UINT; {返回串实际长度; 失败返回0}
//举例: var n1,n2: ATOM; ps: array[0..254] of Char; begin n1 := AddAtom(‘万一的 Delphi 博客‘); n2 := AddAtom(‘万一的 DELPHI 博客‘); GetAtomName(n1, ps, 255); ShowMessage(ps); {万一的 Delphi 博客} GetAtomName(n2, ps, 255); ShowMessage(ps); {万一的 Delphi 博客} end;
标签:程序 bsp char 大小 失败 glob title www 通过
原文地址:http://www.cnblogs.com/zhangzhifeng/p/6396541.html