Results 1 to 2 of 2

Thread: some1 help me!!!!!!!!!!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 1999
    Location
    Victoria, Australia
    Posts
    23

    Post

    is there anyway i can get the path of the window which the user is currently looking thru or exploring
    plz help!!

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Use GetWindowsDirectory API. Here's an example:

    Code:
    Private Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
    Public Function GetWindowsPath() As String
        Dim lRet As Long
        Dim strBuffer As String
        
        strBuffer = Space(255)
        lRet = GetWindowsDirectory(strBuffer, Len(strBuffer))
        If lRet Then GetWindowsPath = Left(strBuffer, lRet)
    End Function

    Example: strWindows = GetWindowsPath
    ------------------

    Serge

    Software Developer
    [email protected]
    [email protected]
    ICQ#: 51055819



    [This message has been edited by Serge (edited 11-29-1999).]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width