次の方法で共有


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.<43>

 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; otherwise, this member is a pointer to a string that specifies a unique, localization-independent identifier for this form.<44>

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

Name/value

Description

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: A NULL pointer and MUST be ignored on receipt if StringType is not equal to STRING_MUIDLL, or it is a pointer to a string that contains the name of a library of string resources. String resources can be localized into multiple languages.<45>

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 specifies 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: A NULL pointer and ignored on receipt if StringType is not equal to STRING_LANGPAIR; otherwise, this member is a pointer to a string that specifies 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 [MS-LCID].

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