---
title: PMSessionGeneral
framework: Application Services
role: pseudoSymbol
platforms: []
path: applicationservices/core_printing/1805530-pmsessiongeneral
---

# PMSessionGeneral

Maintains compatibility with the `PrGeneral` function in the classic Printing Manager.

## Declaration

```occ
OSStatus PMSessionGeneral (
   PMPrintSession printSession,
   Ptr pData
);
```

## Parameters

- `printSession`: The printing session whose data you want to obtain.
- `pData`: A pointer to a `PrGeneral` data structure.

## Return Value

A result code. See [Result Codes](../core_printing.md).

## Overview

The function `PMSessionGeneral` is valid for the printing session passed to the function. In macOS, the function `PMSessionGeneral` makes an attempt to get the requested data if the opcode is `getPSInfoOp`. Otherwise the result code `kPMNotImplemented` is returned.

For more information about using the function `PMSessionGeneral`, see Supporting Printing in Your Carbon Application.

## See Also

### Accessing Data in Printing Session Objects

- [PMSessionGetDataFromSession](../1462964-pmsessiongetdatafromsession.md)
- [PMSessionSetDataInSession](../1461902-pmsessionsetdatainsession.md)
- [PMSessionGetCurrentPrinter](../1458998-pmsessiongetcurrentprinter.md)
- [PMSessionSetCurrentPrinter](1805523-pmsessionsetcurrentprinter.md)
- [PMSessionSetCurrentPMPrinter](../1461096-pmsessionsetcurrentpmprinter.md)
- [PMSessionGetDocumentFormatGeneration](1805525-pmsessiongetdocumentformatgenera.md)
- [PMSessionSetDocumentFormatGeneration](1805527-pmsessionsetdocumentformatgenera.md)
- [PMSessionGetCGGraphicsContext](../1461952-pmsessiongetcggraphicscontext.md)
- [PMSessionGetGraphicsContext](1805529-pmsessiongetgraphicscontext.md)
- [PMSessionError](../1460003-pmsessionerror.md)
- [PMSessionSetError](../1460216-pmsessionseterror.md)
