kRpcPropertyTypeInt64 = 3,
kRpcPropertyTypeByte = 4,
kRpcPropertyTypeBuffer = 5
- } RPC_EPrintPropertyType;
+ } spoolss_EPrintPropertyType;
typedef struct {
uint32 cbBuf;
[size_is(cbBuf)] uint8 *pBuf;
} propertyBlob;
- typedef [ms_union,switch_type(RPC_EPrintPropertyType)] union {
+ typedef [ms_union,switch_type(spoolss_EPrintPropertyType)] union {
[case(kRpcPropertyTypeString)] [string,charset(UTF16)] uint16 *propertyString;
[case(kRpcPropertyTypeInt32)] uint32 propertyInt32;
[case(kRpcPropertyTypeInt64)] hyper propertyInt64;
[case(kRpcPropertyTypeByte)] uint8 propertyByte;
[case(kRpcPropertyTypeBuffer)] propertyBlob propertyBlob;
- } RPC_PrintPropertyValueUnion;
+ } spoolss_PrintPropertyValueUnion;
typedef [public] struct {
- RPC_EPrintPropertyType ePropertyType;
- [switch_is(ePropertyType)] RPC_PrintPropertyValueUnion value;
- } RPC_PrintPropertyValue;
+ spoolss_EPrintPropertyType ePropertyType;
+ [switch_is(ePropertyType)] spoolss_PrintPropertyValueUnion value;
+ } spoolss_PrintPropertyValue;
typedef [public] struct {
[string,charset(UTF16)] uint16 *propertyName;
- RPC_PrintPropertyValue propertyValue;
- } RPC_PrintNamedProperty;
+ spoolss_PrintPropertyValue propertyValue;
+ } spoolss_PrintNamedProperty;
WERROR spoolss_GetJobNamedPropertyValue(
[in,ref] policy_handle *hPrinter,
[in] uint32 JobId,
[in] [string,charset(UTF16)] uint16 *pszName,
- [out,ref] RPC_PrintPropertyValue *pValue
+ [out,ref] spoolss_PrintPropertyValue *pValue
);
/******************/
[public] WERROR spoolss_SetJobNamedProperty(
[in,ref] policy_handle *hPrinter,
[in] uint32 JobId,
- [in,ref] RPC_PrintNamedProperty *pProperty
+ [in,ref] spoolss_PrintNamedProperty *pProperty
);
/******************/
[in,ref] policy_handle *hPrinter,
[in] uint32 JobId,
[out,ref] uint32 *pcProperties,
- [out,ref,size_is(,*pcProperties)] RPC_PrintNamedProperty **ppProperties
+ [out,ref,size_is(,*pcProperties)] spoolss_PrintNamedProperty **ppProperties
);
/******************/
{
struct spoolss_EnumJobNamedProperties r;
uint32_t pcProperties = 0;
- struct RPC_PrintNamedProperty *ppProperties = NULL;
+ struct spoolss_PrintNamedProperty *ppProperties = NULL;
r.in.hPrinter = handle;
r.in.JobId = job_id;
struct dcerpc_binding_handle *b,
struct policy_handle *handle,
uint32_t job_id,
- struct RPC_PrintNamedProperty *property)
+ struct spoolss_PrintNamedProperty *property)
{
struct spoolss_SetJobNamedProperty r;
struct policy_handle *handle,
uint32_t job_id,
const char *property_name,
- struct RPC_PrintPropertyValue *value)
+ struct spoolss_PrintPropertyValue *value)
{
struct spoolss_GetJobNamedPropertyValue r;
}
static bool test_JobPrintProperties_equal(struct torture_context *tctx,
- struct RPC_PrintPropertyValue *got,
- struct RPC_PrintNamedProperty *exp)
+ struct spoolss_PrintPropertyValue *got,
+ struct spoolss_PrintNamedProperty *exp)
{
torture_assert_int_equal(tctx,
got->ePropertyType,
struct policy_handle *handle,
uint32_t job_id)
{
- struct RPC_PrintNamedProperty in;
- struct RPC_PrintPropertyValue out;
+ struct spoolss_PrintNamedProperty in;
+ struct spoolss_PrintPropertyValue out;
int i;
DATA_BLOB blob = data_blob_string_const("blob");
struct {
const char *property_name;
- enum RPC_EPrintPropertyType type;
- union RPC_PrintPropertyValueUnion value;
+ enum spoolss_EPrintPropertyType type;
+ union spoolss_PrintPropertyValueUnion value;
WERROR expected_result;
} tests[] = {
{