VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

This code locks the files which are desired to be.These files can be unlocked whenever desired.This

Vishal V. Kulkarni  (6 Submissions)   Windows API Call/Explanation   VB 6.0   Unknown Difficulty   Fri 16th February 2001   Mon 8th February 2021

This code locks the files which are desired to be.These files can be unlocked whenever desired.This is a real good api and helps to lock the

API Declarations


'In case if you need any help of security of files
'please contact [email protected]

Option Explicit
Private Const OPEN_EXISTING = 3
Private Const PATH_FILE = "C:\WINNT\Profiles\vishal\Desktop\newnewRegistry.doc"
Private Declare Function CreateFile Lib "kernel32" _
Alias "CreateFileA" _
(ByVal lpFileName As String, ByVal dwDesiredAccess As Long, _
ByVal dwShareMode As Long, ByVal lpSecurityAttributes As Long, _
ByVal dwCreationDisposition As Long, _
ByVal dwFlagsAndAttributes As Long, _
ByVal hTemplateFile As Long) As Long
Private Declare Function CloseHandle Lib "kernel32" _
(ByVal hObject As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
(ByVal lpClassName As String, ByVal lpWindowName As String) As Long

Rate This code locks the files which are desired to be.These files can be unlocked whenever desired.This (1(1 Vote))
This code locks the files which are desired to be.These files can be unlocked whenever desired.This.bas

This code locks the files which are desired to be.These files can be unlocked whenever desired.This Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters