13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Task functionsTask functions alter the execution status of tasks, returninformation associated with a task, and retrieve information aboutthe environment in which the task is executing. A task is a singleWindows application call. The following list briefly describes eachtask function:FunctionCatchExitWindowsGetCurrentPDBGetCurrentTaskGetDOSEnvironmentGetNumTasksSetErrorModeThrowYieldDescriptionCopies the current execution environmentto a buffer.Initiates the standard Windows shutdownprocedure.Returns the current DOS Program DataBase (PDB), also known as the ProgramSegment Prefix (PSP).Returns the task handle of the current task.Retrieves the environment string of thecurrently running task.Returns the number of tasks currentlyexecuting in the system.Controls whether Windows handles DOSFunction 24H errors or allows the callingapplication to handle them.Restores the execution environment to thespecified values.Halts the current task and starts anywaiting task.Resource-management functionsResource-management functions find and load applicationresources from a Windows executable file. A resource can be acursor, icon, bitmap, string, or font. The following list brieflydescribes each resource-management function:FunctionAccessResourceAliocResourceFindResourceFreeResourceLoadAcceleratorsLoadBitmapLoadCursorDescriptionOpens the specified resource.Allocates uninitialized memory for aresource.Determines the location of a resource.Removes a loaded resource from memory.Loads an accelerator table.Loads a bitmap resource.Loads a cursor resource.138Software development kit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!