home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 May / PCFMay2001.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / smsrsgen.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  4.5 KB  |  121 lines

  1. //////////////////////////////////////////////////////////////
  2. // Copyright (c)1999 Microsoft Corporation, All Rights Reserved
  3. //
  4. // Version 1.0
  5. //
  6. // SMSRsGen.h - Header file for the SMS Resource Generator
  7. //                DLL functions
  8. //
  9. //
  10. //////////////////////////////////////////////////////////////
  11.  
  12. #ifndef __SMSRSGEN_H
  13. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  14. #define __SMSRSGEN_H
  15.  
  16. #include <windows.h>
  17.  
  18. // *** 'Property Flags' ***
  19. // Used to specify any special purposes for a property
  20. // Note: All architectures must have at least one Property with the ADDPROP_NAME flag
  21. //         This property will be copied into the Name property of the SMS_R_<Architecture> instances
  22. #define ADDPROP_GUID        0x00000002 // Defines this property as being a GUID
  23. #define ADDPROP_GROUPING    0x00000004 // *Reserved*
  24. #define ADDPROP_KEY            0x00000008 // Defines this property as being a Key value that must be unique
  25. #define ADDPROP_ARRAY        0x00000010 // *Reserved*
  26. #define ADDPROP_AGENT        0x00000020 // *Reserved*
  27. #define ADDPROP_NAME        0x00000044 // Specifies this property as the actual 'Name' property in the resource
  28. #define ADDPROP_NAME2        0x00000084 // Specifies this property as the actual 'Comment' property in the resource
  29.  
  30.  
  31. // **********************************
  32. // NewDDR()
  33. //
  34. // Clears the DDR Data and begins creating a new DDR File
  35. //
  36. // Parameters 
  37. //        sArchitecture    - The Name of the Architecture to Use\Create
  38. //        sAgentName        - The Name of the Agent that is creating the DDR (USER_DISCOVERY, etc)
  39. //        sSiteCode        - The SiteCode for the Site that the DDR is to be delivered to
  40. //
  41. // **********************************
  42. extern "C" __declspec(dllimport) HRESULT DDRNew(char *sArchitecture, char *sAgentName, char *sSiteCode);
  43.  
  44. // **********************************
  45. // DDRAddInteger()
  46. //
  47. // Adds an Integer Property to the DDR
  48. //
  49. // Parameters
  50. //        sName    - The Name\Title of the Property
  51. //        lValue    - The actual numeric data assigned to the Property
  52. //        dwFlags    - The flags for this property, (see 'Property Flags' in the header file)
  53. //
  54. // **********************************
  55. extern "C" __declspec(dllimport) HRESULT DDRAddInteger(char *sName, long lValue, DWORD dwFlags);
  56.  
  57. // **********************************
  58. // DDRAddString()
  59. //
  60. // Adds a String Property to the DDR
  61. //
  62. // Parameters
  63. //        sName        - The Name\Title of the Property
  64. //        sValue        - The actual string data assigned to the Property
  65. //        nSQLWidth    - The width of the SQL Table generated (usualy 32, 64, or 256)
  66. //        dwFlags        - The flags for this property, (see 'Property Flags' in the header file)
  67. //
  68. // **********************************
  69. extern "C" __declspec(dllimport) HRESULT DDRAddString(char *sName, char *sValue, int nSQLWidth, DWORD dwFlags);
  70.  
  71. // **********************************
  72. // DDRAddIntegerArray()
  73. //
  74. // Adds an Array of Integers Property to the DDR
  75. //
  76. // Parameters
  77. //        sName    - The Name\Title of the Property
  78. //        lArray    - An array numeric data to be assigned to the Property
  79. //        lSize    - The size of the lValue array
  80. //        dwFlags    - The flags for this property, (see 'Property Flags' in the header file)
  81. //
  82. // **********************************
  83. extern "C" __declspec(dllimport) HRESULT DDRAddIntegerArray(char *sName, long lArray[], long lSize, DWORD dwFlags);
  84.  
  85. // **********************************
  86. // AddStringArray()
  87. //
  88. // Adds an Array of Strings Property to the DDR
  89. //
  90. // Parameters
  91. //        sName        - The Name\Title of the Property
  92. //        sArray        - An Array of Null Terminated Strings to be assigned to the Property
  93. //        nArraySize    - The number of strings in the string array
  94. //        nSQLWidth    - The width of the SQL Table SMS Generates (usually 32, 64, or 256)
  95. //        dwFlags        - The flags for this property, (see 'Property Flags' in the header file)
  96. //
  97. // **********************************
  98. extern "C" __declspec(dllimport) HRESULT DDRAddStringArray(char *sName, char *sArray[], int nArraySize, int nSQLWidth, DWORD dwFlags);
  99.  
  100. // **********************************
  101. // WriteDDR()
  102. //
  103. // Writes the DDR to the specified file
  104. //
  105. // Parameters
  106. //        sFileName    - The Name of the DDR file to be written (ex\ 'MyArch.DDR')
  107. //
  108. // **********************************
  109. extern "C" __declspec(dllimport) HRESULT DDRWrite(char *sFileName);
  110.  
  111. // **********************************
  112. // SendDDRToSMS()
  113. //
  114. // Writes the DDR File to either the CAP inbox (if the machine is an SMS client),
  115. //  or the Server's DDM Inbox (if the machine is an SMS site server).
  116. //
  117. // **********************************
  118. extern "C" __declspec(dllimport) HRESULT DDRSendToSMS(void);
  119.  
  120. #pragma option pop /*P_O_Pop*/
  121. #endif