Current area: HOME ->

Zip File view

Moron Luxation - DATA & Search


This page allows you to view the contents of a file contained inside a ZIP archive available at Programmer's Heaven. This means you can view the code and find what you need from it without having to download the ZIP file first. If the file contains source code for a language we recognize, we have syntax highlighted it.

Filename displayed: Module1.bas
Found in file: DIEML.ZIP

Download: ShComboBox ActiveX Control 2008 ShComboBox ActiveX Control is a Windows-Explorer-like drive-selection combobox which shows all the drives, folders and optionally files in a cascaded manner. It mimics all aspects of the Windows-Expl...
Attribute VB_Name = "Module1"
OPTION Explicit
Public fMainForm AS frmMain
Public TYPE BROWSEINFO
     hOwner AS LONG
     pidlRoot AS LONG
     pszDisplayName AS STRING
     lpszTitle AS STRING
     ulFlags AS LONG
     lpfn AS LONG
     lParam AS LONG
     iImage AS LONG
END TYPE
'BROWSEINFO.ulFlags values:
Public CONST BIF_RETURNONLYFSDIRS = &H1

Public CONST BIF_DONTGOBELOWDOMAIN = &H2

Public CONST BIF_STATUSTEXT = &H4

Public CONST BIF_RETURNFSANCESTORS = &H8

Public CONST BIF_BROWSEFORCOMPUTER = &H1000

Public CONST BIF_BROWSEFORPRINTER = &H2000

Public DECLARE FUNCTION SHGetPathFromIDList Lib "shell32.dll" _
     ALIAS "SHGetPathFromIDListA" (BYVAL pidl AS LONG, _
     BYVAL pszPath AS STRING) AS LONG
Public DECLARE FUNCTION SHBrowseForFolder Lib "shell32.dll" _
     ALIAS "SHBrowseForFolderA" (lpBrowseInfo AS BROWSEINFO) AS LONG
Public DECLARE SUB CoTaskMemFree Lib "ole32.dll" (BYVAL pv AS LONG)
Public CONST ERROR_SUCCESS = 0&
Public CONST APINULL = 0&
Public CONST HKEY_LOCAL_MACHINE = &H80000002
Public ReturnCode AS LONG

DECLARE FUNCTION RegCloseKey Lib "advapi32.dll" (BYVAL _
hKey AS LONG) AS LONG

DECLARE FUNCTION RegOpenKey Lib "advapi32.dll" ALIAS _
"RegOpenKeyA" (BYVAL hKey AS LONG, BYVAL lpSubKey AS _
STRING, phkResult AS LONG) AS LONG

DECLARE FUNCTION RegQueryValueEx Lib "advapi32.dll" ALIAS _
"RegQueryValueExA" (BYVAL hKey AS LONG, BYVAL lpValueName _
AS STRING, BYVAL lpReserved AS LONG, lpType AS LONG, _
lpData AS ANY, lpcbData AS LONG) AS LONG

Public FUNCTION ActiveConnection() AS Boolean
DIM hKey AS LONG
DIM lpSubKey AS STRING
DIM phkResult AS LONG
DIM lpValueName AS STRING
DIM lpReserved AS LONG
DIM lpType AS LONG
DIM lpData AS LONG
DIM lpcbData AS LONG
ActiveConnection = False
lpSubKey = "System\CurrentControlSet\Services\RemoteAccess"
ReturnCode = RegOpenKey(HKEY_LOCAL_MACHINE, lpSubKey, _
phkResult)

IF ReturnCode = ERROR_SUCCESS THEN
hKey = phkResult
lpValueName = "Remote Connection"
lpReserved = APINULL
lpType = APINULL
lpData = APINULL
lpcbData = APINULL
ReturnCode = RegQueryValueEx(hKey, lpValueName, _
lpReserved, lpType, BYVAL lpData, lpcbData)
lpcbData = LEN(lpData)
ReturnCode = RegQueryValueEx(hKey, lpValueName, _
lpReserved, lpType, lpData, lpcbData)

IF ReturnCode = ERROR_SUCCESS THEN
IF lpData = 0 THEN
ActiveConnection = False
ELSE
ActiveConnection = True
END IF
END IF

RegCloseKey (hKey)
END IF

END FUNCTION



Public FUNCTION GetFolder(BYVAL hWndModal AS LONG) AS STRING
     DIM bInf AS BROWSEINFO
     DIM RetVal AS LONG
     DIM PathID AS LONG
     DIM RetPath AS STRING
     DIM Offset AS INTEGER
     'Set the properties of the folder dialog
     bInf.hOwner = hWndModal
     bInf.lpszTitle = "Please Select Music Folder:"
     bInf.ulFlags = BIF_RETURNONLYFSDIRS
     'Show the Browse For Folder dialog
     PathID = SHBrowseForFolder(bInf)
     RetPath = SPACE$(512)
     RetVal = SHGetPathFromIDList(BYVAL PathID, BYVAL RetPath)
     IF RetVal THEN
          'Trim off the null chars ending the path
          'and display the returned folder
          Offset = INSTR(RetPath, CHR$(0))
          GetFolder = LEFT$(RetPath, Offset - 1)
          'Free memory allocated for PIDL
          CoTaskMemFree PathID
     ELSE
          GetFolder = ""
     END IF
END FUNCTION
SUB Main()
    frmSplash.Show
    frmSplash.Refresh
    Set fMainForm = New frmMain
    Load fMainForm
    Unload frmSplash
    fMainForm.Show
    END SUB


Python CGI Graphical Hit Counter v1.0
Simple web-page hit counter written in Python. Outputs a customizable animated gif image. Does not require external graphics libs!
Virtual Directory Generator w/ AD auth 1.0 ASP.NET
This application Authenticates users against Active Directory using ADSI. If they are not in the students OU then a virtual ftp site and virtual web site and physical directory is created on th...
ShComboBox ActiveX Control 2008
ShComboBox ActiveX Control is a Windows-Explorer-like drive-selection combobox which shows all the drives, folders and optionally files in a cascaded manner. It mimics all aspects of the Windows-Expl...
Download Python CGI Graphical Hit Counter v1.0 Simple web-page hit counter written in Python. Outputs a  customizable animated gif image. Does not require external  graphics libs! Download Virtual Directory Generator w/ AD auth 1.0 ASP.NET This application Authenticates users against Active Directory  using ADSI. If they are not in the students OU then a virtual  ftp site and virtual web site and physical directory is created  on th... Download ShComboBox ActiveX Control 2008 ShComboBox ActiveX Control is a Windows-Explorer-like drive-selection combobox which shows all the drives, folders and optionally files in a cascaded manner. It mimics all aspects of the Windows-Expl...







Sponsored links

Build IT Knowledge with Current & Trusted Content
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.
Check Out IT Certification Preparation Materials
Sign Up With SkillSoft & Get Access to Training Materials for Over 50 Professional Certifications.
Localize software in three simple steps
Localize .Net, C/C++ & Delphi apps visually. HTML, HTML Help, XML & databases. Try Sisulizer now!
Delphi Localization Tool Sisulizer (WYSIWYG)
Create multilingual Delphi apps in three simple steps. Localize XML, HTML Help ... Try Sisulizer now
Web based bug tracking - AdminiTrack.com
AdminiTrack offers an effective web-based bug tracking system designed for professional software development teams.


Newsletter | Submit Content | About | Advertising | Awards | Contact Us | Link to us |
© 1996-2008 Community Networks Ltd All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Synchron Data - .NET development.