|
|
|
在VFP中获取Windows注册信息的方法
|
| |
关键词: 在Visual Foxpro软件的程序设计中,我们经常需要关注其程序设计的环境,尤其是获得Windows软件系统注册的用户名及单位名称。为此我们设计了一个在Windows 3.X、Window 95、Windows 98及Windows NT 4.0环境下均通用的一个子程序,可以满足上述的需要。 #DEFINE MACHINE_ID -2147483646 #DEFINE VER_PATH Software\Microsoft\Windows\CurrentVersion *--声明Windows API 函数 DECLARE INTEGER GetProfileString IN Win32API AS GetProStr ; String cSection, String cKey, String cDefault, ; String @cBuffer, Integer nBufferSize *-- 声明注册表函数 DECLARE Integer RegOpenKeyEx IN Win32API ;
|
|
|
|
|
|
|
|
|
| 广告载入中... |
| 广告载入中... |
| 广告载入中... |
|
|
|
|
|