Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How can I call Get/SetPriorityClass and Get/SetThreadPriority?
At issue is the HANDLE parameter. I had hoped that I might get away with passing a NULL pointer (ByVal 0), but it didn't work. Public Declare Function GetPriorityClass Lib "kernel32" (ByRef pHandle As Long) As Long Public Declare Function GetThreadPriority Lib "kernel32" (ByRef tHandle As Long) As Long Private Sub getProcInfo() Dim x As Long x = GetPriorityClass(ByVal 0) Debug.Print "GetPriorityClass= "; Hex(x) x = GetThreadPriority(ByVal 0) Debug.Print "GetThreadPriority= "; Hex(x) End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to call this DLL? | Excel Programming | |||
I'm not sure what you'd call it, but is it possible to do this? | Excel Discussion (Misc queries) | |||
Call Center Management: How to calculate 'cost per call' | Excel Discussion (Misc queries) | |||
Don't know what to call what I need? | Excel Worksheet Functions | |||
How do you call one Sub from another Sub ? | Excel Programming |