VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Code samples by Karthikeyan

Add a file to recent documents menu using SHAddToRecentDocs API
An example for MulDiv API
Capture desktop using GetDesktopWindow and BitBlt API
Capture the window under mouse into the form using GetDC,BitBlt,GetCursorPos and WindowFromPoint AP
Check how your windows booted using GetSystemMetrics API
Check whether mouse is installed or not using GetSystemMetrics API
Check whether network is installed or not using GetSystemMetrics API
Check whether sound card is installed or not using waveOutGetNumDevs API
Clear the recent documents menu using SHAddToRecentDocs API
Connect or disconnect a LPT port
Connect or disconnect a network drive
Copy a file using CopyFile API
Copy a string to another variable using lstrcpy API
Copy n-1 number of characters from source string to the target string using lstrcpyn API
'Create a Elliptic Form using CreateEllipticRgn and SetWindowRgn API
Create a new process using Win32_Process WMI class
'Create a Rectangular Form using CreateRectRgn and SetWindowRgn API
'Create a Round Rectangular Form using CreateRoundRectRgn and SetWindowRgn API
Create Directory using CreateDirectory API
Delete a File using DeleteFile API
Display a message box using MessageBox API
Display change icon dialog using SHChangeIconDialog API
Display Format drive dialog using SHFormatDrive API
Display Message Box using MessageBoxIndirect API
Display pick icon dialog using PickIconDlg API
Display Shutdown dialog screen using ExitWindowsDialog API
Display shutdown dialog screen using SHShutDownDialog API
Display shutdown or restart dialog using SHRestartSystemMB API
Display the restart or shutdown dialog using RestartDialog API
Display the run dialog using SHRunDialog API
Display the windows About Box using ShellAbout API
Draw a chord using Chord API
Draw a line from a point to specified point using LineTo API
Draw a pie using Pie API
Draw an Arc using Arc API
Extract the list of installed TTF fonts using Win32_FontInfoAction WMI class
Extract,Draw and Destroy Icon using ExtractIcon,DrawIcon and DestroyIcon API
'Find a window knowing it's caption using FindWindow API
Find Files using FindFirstFile,FindNextFile and FindClose API
Flash a window using FlashWindow API
Get a integer data from WIN.INI using GetProfileInt API
'Get a list of Open Window Names using GetDesktopWindow,GetWindow and GetWindowText API
Get a string data from an INI file using GetPrivateProfileString API
Get a string data from WIN.INI using GetProfileString API
Get all the root name spaces of your machine using WMI script
Get all WMI classes of your computer using WMI script
Get an integer data from an INI file using GetPrivateProfileInt API
'Get Background color of a device context using GetBkColor API
Get Caret Blink Time using GetCaretBlinkTime API
Get classname for some controls using GetClassName API
'Get current directory using GetCurrentDirectory API
Get Current Greewich Mean Time using GetSystemTime API
'Get Current Process and Current ProcessID using GetCurrentProcess and GetCurrentProcessId API
Get current resolution using GetSystemMetrics API
Get current resolution,number of colors and bits/pixels using GetDeviceCaps API
Get Current Thread and Current Thread ID using GetCurrentThread and GetCurrentThreadId API
'Get Cursor Position using GetCursorPos API
Get default Icon Width using GetSystemMetrics API
Get details about your OS using GetVersionEx API
Get double click time of mouse using GetDoubleClickTime API
Get Drive Type using GetDriveType API
Get Environment Variable using GetEnvironmentVariable using API
Get File Attributes using GetFileAttributes API
'Get File information by it's Handle using GetFileInformationByHandle API
Get File information is using SHGetFileInfo API
'Get filetime using GetFileTime API
'Get Foreground Window Thread and Process ID using GetWindowThreadProcessId API
'Get foreground window using GetForegroundWindow API. Very useful to develop security programs and
'Get handle of the window at mouse cursor position using WindowFromPoint API
Get logged in username using GetUserName API
Get network logged in username using WNetGetUser API
Get Shell Folders locations using SHGetSpecialFolderLocation API
'Get system colors using GetSysColor API
Get the amount of physical and virtual memory free,used using GlobalMemoryStatus API
Get the application event log items using Win32_NTLogEvent WMI class
'Get the caption of control which captures mouse event using GetCapture API
Get the connected server session info using Win32_ServerSession WMI Class
Get the Current System time and Greenwich time using Win32_CurrentTime WMI Class
Get the Desktop information for all accounts using Win32_Desktop WMI Class
Get the desktop settings of a specific user using Win32_Desktop WMI class
Get the details about the Pagefile using Win32_PageFile WMI Class
Get the details about used Network Protocols using Win32_NetworkProtocol WMI Class
Get the details about your Operating System using Win32_OperatingSystem WMI Class
Get the details of PCMCIA Controller using Win32_PCMCIAController WMI Class
Get the details of the Pagefile Usage using Win32_PageFileUsage WMI Class
Get the Entire command line passed using GetCommandLine API
Get the Eventlog Details using Win32_NTEventlogFile WMI Class
Get the Events of all Log File using Win32_NTLogEvent WMI Class
Get the info about serial ports using Win32_SerialPort WMI Class
Get the info about specific user account using Win32_Account WMI Class
Get the info about the connected servers using Win32_ServerConnection WMI Class
Get the info about Windows Product Activation using Win32_WindowsProductActivation WMI Class
Get the info about WMI Settings using Win32_WMISetting WMI Class
Get the information about a directory using Win32_Directory WMI Class
Get the information about CDROM Drives installed using Win32_CDROMDrive WMI Class
Get the information about Floppy Drive Controller using Win32_FloppyController WMI Class
Get the information about Floppy Drive using Win32_FloppyDrive WMI Class
Get the information about installed Codec files using Win32_CodecFile WMI Class
Get the information about installed services using Win32_BaseService WMI Class
Get the information about Keyboard using Win32_Keyboard WMI Class
Get the information about Logical Disks using Win32_LogicalDisk WMI Class
Get the information about mouse installed using Win32_PointingDevice WMI Class
Get the information about Plug and Play devices using Win32_PnPEntity WMI Class
Get the information about System Cache Memory using Win32_CacheMemory WMI Class
Get the information about System Environment using Win32_Environment WMI Class
Get the information about System Groups using Win32_Group WMI Class
Get the information about the Computer System using Win32_ComputerSystem WMI Class
Get the information about the Display Controller using Win32_DisplayControllerConfiguration WMI Cla
Get the information about the Display using Win32_DisplayConfiguration WMI Class
Get the information about the IDE Controller using Win32_IDEController WMI Class
Get the information about the OS Boot Configuration using Win32_BootConfiguration WMI Class
Get the information of 1394 Controller using Win32_1394Controller WMI Class
Get the information of Application Services installed using Win32_ApplicationService WMI Class
Get the information of Autocheck operation of a disk using Win32_AutochkSetting WMI Class
Get the information of System BIOS using Win32_BIOS WMI Class
Get the information of System(Mother) board using Win32_BaseBoard WMI Class
Get the information of your hard disk using Win32_DiskDrive WMI Class
Get the installed Printer Configuration using Win32_PrinterConfiguration WMI Class
Get the installed Printer details using Win32_Printer WMI Class
Get the installed printer driver details using Win32_PrinterDriver WMI Class
Get the length of a string using
Get the list of services installed and its properties using Win32_Service WMI Class
Get the list of shares using Win32_Share WMI Class
Get the list of startup items using Win32_StartupCommand WMI Class
Get the list of system accounts using Win32_SystemAccount WMI Class
Get the list of system drivers and its properties using Win32_SystemDriver WMI Class
Get the list of User accounts and its properties using Win32_UserAccount WMI Class
Get the Local time details using Win32_LocalTime WMI Class
Get the Logical Memory Configuration using Win32_LogicalMemoryConfiguration WMI Class
Get the Logical Program Group Items using Win32_LogicalProgramGroupItem WMI Class
Get the Logical Program Groups using Win32_LogicalProgramGroup WMI Class
Get the Logical Shares Security Settings using Win32_LogicalShareSecuritySetting WMI Class
Get the Mapped Disks details using Win32_MappedLogicalDisk WMI Class
Get the Memory Array details using Win32_MemoryArray WMI Class
Get the Network Adapter Configuration details using Win32_NetworkAdapterConfiguration WMI Class
Get the Network Adpaters details using Win32_NetworkAdapter WMI Class
Get the Network Connection Details using Win32_NetworkConnection WMI Class
Get the OS Recovery Details using Win32_OSRecoveryConfiguration WMI Class
Get the Pagefile settings using Win32_PageFileSetting WMI Class
Get the Parallel Port information using Win32_ParallelPort WMI Class
Get the Physical Media Information using Win32_PhysicalMedia WMI Class
Get the Physical Memory Array details using Win32_PhysicalMemoryArray WMI Class
Get the Physical Memory Details using Win32_PhysicalMemory WMI Class
Get the Physical ports available using Win32_PortConnector WMI Class
Get the Ping Status for an IP Address using Win32_PingStatus WMI Class
Get the running process details using Win32_Process WMI Class
Get the serial port configuration using Win32_SerialPortConfiguration WMI Class
Get the sound device info using Win32_SoundDevice WMI Class
Get the system processor info using Win32_Processor WMI Class
Get the time zone info of the system using Win32_TimeZone WMI Class
Get the USB Controller info using Win32_USBController Class
Get the users and groups account information using Win32_Account WMI Class
Get the window which has got focus using GetFocus API
Get Volume Information of disk drive using GetVolumeInformation API
'Get window position points using GetWindowRect API
Get your Computer name using GetComputerName API
Get your windows directory using GetWindowsDirectory API
Get your windows system directory using GetSystemDirectory API
Get your windows temp directory using GetTempPath API
List of API Errors for Error numbers
Move a file using MoveFile API
Move a window to a specified point using MoveWindow API
Open the start menu using mouse_event API
Play system sounds using MessageBeep API
Protect your application to run if renamed.No API
Remove Directory using RemoveDirectory API
'Set Current directory using SetCurrentDirectory API
Set Disk Volume Label using SetVolumeLabel API
Set double click time of mouse using SetDoubleClickTime API
Set Environment Variable using SetEnvironmentVariable API
Set File atrributes using SetFileAttributes API
'Set filetime using SetFileTime API
'Set system colors using SetSysColors API
Set System Cursor using SetSystemCursor API
Set System Time using SetSystemTime API
'Set the File modified time to Current System Time using GetSystemTimeAsFileTime API
Set window text using SetWindowText API
Set your computer name using SetComputerName API
Set your Window on top of all forms using SetWindowPos API
Show,Hide,Maximize,Minimize,Restore and more with ShowWindow API
Swap the mouse button using SwapMouseButton API
To check whether particular drive is present or not using GetLogicalDrives API
To show/hide cursor using
Type some words in notepad without human intervention using keybd_event API
Write a section of data to an INI file using WritePrivateProfileSection API
Write a string data to an INI file using WritePrivateProfileString API
Writing a string data into WIN.INI using WriteProfileString API

187 Submissions by Karthikeyan