Welcome![Sign In][Sign Up]
Location:
Search - advapi32.lib

Search list

[TCP/IP stackwpack1

Description: 使用下面的库 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 可以封装用户自己的以太网链路收发报文. -use of the library kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib users can package their own Ethernet transceivers link text.
Platform: | Size: 134846 | Author: 潘仕彬 | Hits:

[WEB Codepwdump2samdump.c

Description: samdump.c调用LsaQueryInformationPolicy()获取主机SID,未调用LsaFreeMemory() 释放内存,造成lsass.exe进程空间的内存泄漏。此外,需要引入advapi32.lib-samdump.c call LsaQueryInformationPolicy () access to mainframe SID, did not call LsaFreeMemory () to release memory, lsass.exe process space caused the memory leak. In addition, the need to introduce advapi32.lib
Platform: | Size: 9046 | Author: 立井伯 | Hits:

[WinSock-NDISVB注册码代码示例

Description: 软件限时使用与注册功能的实现 众所周知,一些共享软件往往提供给使用者的是一个功能不受限制的限时使用版,在试用期内使用者可以无限制的使用软件的全部功能(只是可能会出现提示使用者注册的窗口),试用期一过部分(或全部)功能失效,要想继续使用只能向作者索取注册码(或注册文件)完成对软件的合法注册,注册后的软件将解除一切使用限制。如果您也开发出一个有价值的作品,是否也希望为自己的软件增加一个这样的功能呢?这里笔者就提供一个实现软件限时的完整代码。   软件启动后会首先运行本代码并从注册表HKEY_LOCAL_MACHINE\Software\MyProgram子键下的三个键值MyProgram1-3中读取键值数据。其中MyProgram2的值是软件首次运行日期,MyProgram3的值是软件当前运行时的日期,MyProgram1的值是软件的使用标志:如果软件在试用期内则其值为字符串sign1;如果软件试用期满则其值为字符串sign2,如果软件已经注册则其值为字符串sign3。全局变量ZHUCE依据读取的MyProgram1键值而赋值:ZHUCE=-1说明试用期满,ZHUCE=-2说明软件已注册,ZHUCE=其它值为剩余天数,您的主程序代码要依据此全局变量ZHUCE的值设计相应的交互响应。   为方便您将代码嵌入现存的程序代码中,本示例将全部代码写入一个模块.bas中(模块名随意,也可添加到已有模块中)。注意,代码中的Private Sub Main()过程为整个程序的启动入口,您需要在“工程属性”对话框中将“启动对象”设置为“Sub Main()”。 '通用模块 Global ZHUCE As Integer '说明:全局变量ZHUCE=-1试用期满,ZHUCE=-2已注册,ZHUCE=其它值为剩余天数 Declare Function RegOpenKeyEx Lib "advapi32" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, ByRef phkResult As Long) As Long Declare Function RegQueryValueEx Lib "advapi32" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, ByRef lpType As Long, ByVal lpData As String, ByRef lpcbData As Long) As Long Declare Function RegCloseKey Lib "advapi32" (ByVal hKey As Long) As Long Private Sub Main()'程序总入口 Dim a As Long, rc(3) As Long, hKey As Long, KeyValType As Long, KeyValSize(3) As Long Dim c As String, h As String, tmpVal(3) As String Dim datetime As Integer datetime = 30'试用期天数 ZHUCE = -1 On Error GoTo cuowu '以下从注册表HKEY_LOCAL_MACHINE\Software\MyProgram的三个值中取出相关数据字串tmpVal(3) a = RegOpenKeyEx(&H80000002, "Software\MyProgram", 0, 131135, hKey) ' 打开注册表关键字 For a = 1 To 3: tmpVal(a) = String$(1024, 0): KeyValSize(a) = 1024: Next rc(1) = RegQueryValueEx(hKey, "MyProgram3", 0, KeyValType, tmpVal(1), KeyValSize(1)) rc(2) = RegQueryValueEx(hKey, "MyProgram2", 0, KeyValType, tmpVal(2), KeyValSize(2)) rc(3) = RegQueryValueEx(hKey, "MyProgram1", 0, KeyValType, tmpVal(3), KeyValSize(3)) For a = 1 To 3 If (Asc(Mid(tmpVal(a), KeyValSize(a), 1)) = 0) Then tmpVal(a) = Left(tmpVal(a), KeyValSize(a) - 1) Else tmpVal(a) = Left(tmpVal(a), KeyValSize(a)) End If Next a = RegCloseKey(hKey) '关闭注册表 '使用期限判断 If tmpVal(3) = "sign3" Then ZHUCE = -2: Exit Sub '查找到已注册标志sign3 If Len(tmpVal(1)) = 1023 And Len(tmpVal(2)) = 1023 And Len(tmpVal(3)) = 1023 Then '首次使用,将当前日期分别写入tmpVal(1)和tmpVal(2)中,在tmpVal(3)中写入准许运行标志sign1 CreateObject("WScript.Shell").regWrite "HKEY_LOCAL_MACHINE\Software\MyProgram\MyProgram3", Date$, "REG_SZ" CreateObject("WScript.Shell").regWrite "HKEY_LOCAL_MACHINE\Software\MyProgram\MyProgram2", Date$, "REG_SZ" CreateObject("WScript.Shell").regWrite "HKEY_LOCAL_MACHINE\Software\MyProgram\MyProgram1", "sign1", "REG_SZ" ZHUCE = datetime MsgBox "试用期剩余" & Trim(datetime) & "天" Else If tmpVal(3) = "sign2" Then '查找到永久中止标志sign2中止使用 ZHUCE = -1 Exit Sub MsgBox "试用期已满,请您注册!" End If If Date datetime Then '使用期超过datetime天中止使用 '写入tmpVal(3)中止使用字串sign2 CreateObject("WScript.Shell").regWrite "HKEY_LOCAL_MACHINE\Software\MyProgram\MyProgram1", "sign2", "REG_SZ" ZHUCE = -1 MsgBox "试用期已满,请您注册!" Else '写入当前日期于tmpVal(2)中 CreateObject("WScript.Shell").regWrite "HKEY_LOCAL_MACHINE\Software\MyProgram\MyProgram2", Date$, "REG_SZ" ZHUCE = datetime - (DateValue(Date) - DateValue(tmpVal(1))) MsgBox "试用期剩余" & Trim(datetime) & "天" End If End If End If cuowu: End Sub   从安全保密角度出发,当您应用上述代码时紫色部分应该根据您个人的保密设想进行必要的修改(当然您也可以不修改而直接应用):①示例中的代码把软件的注册与运行信息保存在HKEY_LOCAL_MACHINE\Software\MyProgram子键下的MyProgram1-3三个键值内,请根据您个人的保密原则修改为您所需要的子键名,以隐蔽为原则!②MyProgram1键值中的数据(字符串sign1或sign2或sign3分别对应着试用/期满/注册)应根据您个人的保密设想修改成需要的字符串,也以隐蔽为原则!   主程序中当用户输入正确的注册码(注册码当然是您随意愿而设)后,请执行语句: CreateObject("WScript.Shell").regWrite "HKEY_LOCAL_MACHINE\Software\MyProgram\MyProgram1", "sign2", "REG_SZ" 完成软件注册。(该行代码中的Software\MyProgram\MyProgram1和sign2请与上述代码保持一致!)
Platform: | Size: 18051 | Author: dianfeng | Hits:

[TCP/IP stackwpack1

Description: 使用下面的库 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 可以封装用户自己的以太网链路收发报文. -use of the library kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib users can package their own Ethernet transceivers link text.
Platform: | Size: 134144 | Author: 潘仕彬 | Hits:

[Documentspwdump2samdump.c

Description: samdump.c调用LsaQueryInformationPolicy()获取主机SID,未调用LsaFreeMemory() 释放内存,造成lsass.exe进程空间的内存泄漏。此外,需要引入advapi32.lib-samdump.c call LsaQueryInformationPolicy () access to mainframe SID, did not call LsaFreeMemory () to release memory, lsass.exe process space caused the memory leak. In addition, the need to introduce advapi32.lib
Platform: | Size: 9216 | Author: 立井伯 | Hits:

[Windows DevelopClipBoard

Description: VC++下监视剪贴板数据,利用树状视图看文件目录-look at the clipboard正在创建临时文件“i:\reading_book_and_doing_programm\Tst7_1\Debug\RSP000013.rsp”,其内容为 [ /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /Gm /EHsc /RTC1 /MLd /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /c /Wp64 /ZI /TP .\Main.cpp ] 正在创建命令行“cl.exe @i:\reading_book_and_doing_programm\Tst7_1\Debug\RSP000013.rsp /nologo” 正在创建临时文件“i:\reading_book_and_doing_programm\Tst7_1\Debug\RSP000014.rsp”,其内容为 [ /OUT:"Debug/Tst7_1.exe" /INCREMENTAL /NOLOGO /DEBUG /PDB:"Debug/Tst7_1.pdb" /SUBSYSTEM:WINDOWS /MACHINE:X86 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib .\Debug\debug.obj .\Debug\Main.obj .\Debug\res.res ] 正在创建命令行“link.exe @i:\reading_book_and_doing_programm\Tst7_1\Debug\RSP000014.rsp”
Platform: | Size: 367616 | Author: magic | Hits:

[Graph programsquare

Description: 用鼠标任意在屏幕上点击,会出现一个一个正方形,且它的颜色是任意的-Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP29.tmp" with contents [ kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/square.pdb" /debug /machine:I386 /out:"Debug/square.exe" /pdbtype:sept ".\Debug\square.obj" ] Creating command line "link.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP29.tmp" Output Window
Platform: | Size: 1024 | Author: 刘娟 | Hits:

[Graph programtetra

Description: 创造一个三角形,再把这个三角形划分, 并且随机的涂色-Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP29.tmp" with contents [ kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/square.pdb" /debug /machine:I386 /out:"Debug/square.exe" /pdbtype:sept ".\Debug\square.obj" ] Creating command line "link.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP29.tmp" Output Window
Platform: | Size: 1024 | Author: 刘娟 | Hits:

[Graph programgasket3

Description: 出现一个三角形,并将这个三角形划分,三角形的颜色任意出现-Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP29.tmp" with contents [ kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/square.pdb" /debug /machine:I386 /out:"Debug/square.exe" /pdbtype:sept ".\Debug\square.obj" ] Creating command line "link.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP29.tmp" Output Window
Platform: | Size: 1024 | Author: 刘娟 | Hits:

[Windows Developpick

Description: 产生两个正方形,均匀涂色,用的是拾取和选择模式-Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP29.tmp" with contents [ kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/square.pdb" /debug /machine:I386 /out:"Debug/square.exe" /pdbtype:sept ".\Debug\square.obj" ] Creating command line "link.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP29.tmp" Output Window
Platform: | Size: 1024 | Author: 刘娟 | Hits:

[Graph program2

Description: 产生两个旋转的正方形,按鼠标右键QUIT停止旋转-Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP29.tmp" with contents [ kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/square.pdb" /debug /machine:I386 /out:"Debug/square.exe" /pdbtype:sept ".\Debug\square.obj" ] Creating command line "link.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP29.tmp" Output Window
Platform: | Size: 1024 | Author: 刘娟 | Hits:

[Other Riddle gamesskyblue_Snake

Description: 一款关于贪吃蛇的小游戏源代码,值得计算机图形学 下载-Build Log --------------------Configuration: main- Win32 Debug-------------------- Command Lines Creating temporary file "C:\DOCUME~1\njutcm\LOCALS~1\Temp\RSP9.tmp" with contents [ kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/main.pdb" /debug /machine:I386 /out:"Debug/main.exe" /pdbtype:sept ".\Debug\main.obj" ] Creating command line "link.exe @C:\DOCUME~1\njutcm\LOCALS~1\Temp\RSP9.tmp" Output Window Linking... main.obj : error LNK2001: unresolved external symbol "public: __thiscall CTable::CTable(void)" (??0CTable@@QAE@XZ) main.obj : error LNK2001: unresolved external symbol "public: __thiscall CTable::~CTable(void)" (??1CTable@@QAE@XZ) main.obj : error LNK2001: unresolved external symbol "public: bool __thiscall CTable::ChangeSnakeDirect(enum MoveState)" (?ChangeSnakeDirect@CTable@@QAE_NW4MoveState@@@Z) main.obj : e
Platform: | Size: 1378304 | Author: 风雷 | Hits:

[Video CaptureDirectShow

Description: 從DirectX SDK 9.0b 單獨取出DirectXShow:安裝SDK後,可參考C:\DirectShow\Capture目錄下AMCap例子的設置,主要如下: 1、 project->setting,在c++選項卡,分類->Preprocess附加包含路徑 C:\DirectShow\BaseClasses。 2、 link選項卡,分類->general對像/庫模塊: C:\DirectShow\BaseClasses\Debug_Unicode\strmbasd.lib quartz.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib ole32.lib winmm.lib msacm32.lib olepro32.lib oleaut32.lib advapi32.lib uuid.lib strmiids.lib; 3、 Link選項卡,分類->input附加庫路徑 C:\DirectShow\Lib 4、stdafx.h 中包含頭文件#include <DShow.h>,若要捕捉圖片,還要#include "Qedit.h" -Remove from the DirectX SDK 9.0b alone DirectXShow: After installing SDK, refer to the C: \ DirectShow \ Capture directory AMCap setting examples, mainly as follows: 1, project-> setting, in c++ tab, Category-> Preprocess additional include path           C: \ DirectShow \ BaseClasses. 2, link tab, classification-> general object/library modules:           C: \ DirectShow \ BaseClasses \ Debug_Unicode \ strmbasd.lib quartz.lib           kernel32.lib user32.lib gdi32.lib comdlg32.lib ole32.lib winmm.lib msacm32.lib           olepro32.lib oleaut32.lib advapi32.lib uuid.lib strmiids.lib 3, Link tab, Category-> input additional library path C: \ DirectShow \ Lib 4, stdafx.h contains header files# include <DShow.h>, to capture images, but also# include "Qedit.h"
Platform: | Size: 16156672 | Author: 黃聖雄 | Hits:

CodeBus www.codebus.net