Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

2.2.1.6.2 RPC_FORM_INFO_2

The RPC_FORM_INFO_2 structure provides information about a printer form that includes its origin, dimensions, the dimensions of its printable area, and its display name.<54>

typedef struct _RPC_FORM_INFO_2 {
  DWORD Flags;
  [string, unique] const wchar_t* pName;
  SIZE Size;
  RECTL ImageableArea;
  [string, unique] const char* pKeyword;
  DWORD StringType;
  [string, unique] const wchar_t* pMuiDll;
  DWORD dwResourceId;
  [string, unique] const wchar_t* pDisplayName;
  LANGID wLangID;
} RPC_FORM_INFO_2;

pKeyword: This member MUST be set to NULL by the client if the value of the Flags member is set to FORM_BUILTIN, or this member MUST be a non-NULL pointer to a string that MUST specify a unique, localization-independent identifier for this form.<55>

StringType: The value of this member MUST specify how a form's display name is passed. The value of this member MUST be a value from the following table.

Name/Value Meaning

STRING_NONE
0x00000001

Use the default display name, a string that is pointed to by the pName member. No localized display name exists.

STRING_MUIDLL
0x00000002

Load the form name from the library of string resources that is identified by the pMuiDll member. The dwResourceId member specifies the ID of the form name string in that library.

STRING_LANGPAIR
0x00000004

Use the form name, a string that is pointed to by the pDisplayName member, and the language that is identified by the wLangID member.

pMuiDll: This member MUST be a NULL pointer and MUST be ignored on receipt if StringType is not equal to STRING_MUIDLL, or it MUST be a non-NULL pointer to a string that contains the name of a library of string resources. String resources MAY<56> be localized into multiple languages.

dwResourceId: The value of this member SHOULD be set to zero when sent and ignored on receipt if the value of the StringType member is not equal to STRING_MUIDLL; otherwise, the value of this member MUST specify the string resource ID of the form name in the library that is identified by the string that is pointed to by the pMuiDll member.

pDisplayName: This member MUST be a NULL pointer and ignored on receipt if StringType is not equal to STRING_LANGPAIR; otherwise, this member MUST be a non-NULL pointer to a string that MUST specify the form name.

wLangID: The value of this member SHOULD be set to zero when sent and ignored on receipt if StringType is not equal to STRING_LANGPAIR; otherwise, the value of this member MUST be the Language Identifier of the pDisplayName member as specified in [MS-LCID].

All members not defined in this section are specified in sections 2.2.1.3.2 and 2.2.1.3.

 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.