Important: The information in this document is obsolete and should not be used for new development.
GetCurrentProcessfunction to get information about the current process,
FUNCTION GetCurrentProcess (VAR PSN: ProcessSerialNumber): OSErr;
- On output, the process serial number of the current process.
GetCurrentProcessfunction returns, in the
PSNparameter, the process serial number of the process that is currently running, that is, the one currently accessing the CPU. This is the application associated with the
CurrentA5global variable. This application can be running in either the foreground or the background.
Applications can use this function to find their own process serial number. Drivers can use this function to find the process serial number of the current process. You can use the returned process serial number in other Process Manager routines.
ASSEMBLY-LANGUAGE INFORMATIONThe trap macro and routine selector for the
Trap macro Selector _OSDispatch $0037
noErr 0 No error