home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmShelled
- Caption = "Generic Shelled App"
- ClientHeight = 2100
- ClientLeft = 4890
- ClientTop = 1605
- ClientWidth = 3615
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2100
- ScaleWidth = 3615
- Begin VB.Label lblWindow
- Caption = "Window Handle:"
- Height = 255
- Left = 120
- TabIndex = 2
- Top = 900
- Width = 3135
- End
- Begin VB.Label lblProcessId
- Caption = "Process Id:"
- Height = 255
- Left = 120
- TabIndex = 1
- Top = 540
- Width = 3135
- End
- Begin VB.Label lblThreadId
- Caption = "Thread Id:"
- Height = 255
- Left = 120
- TabIndex = 0
- Top = 180
- Width = 3135
- End
- Attribute VB_Name = "frmShelled"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- ' Copyright
- 1997 by Desaware Inc. All Rights Reserved
- Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long
- Private Declare Function GetCurrentThreadId Lib "kernel32" () As Long
- Private Sub Form_Load()
- lblThreadId.Caption = lblThreadId.Caption & " " & GetCurrentThreadId()
- lblProcessId.Caption = lblProcessId.Caption & " " & GetCurrentProcessId()
- lblWindow.Caption = lblWindow.Caption & " " & hWnd
- End Sub
-