SmsRsGen.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:4k
源码类别:

模拟服务器

开发平台:

C/C++

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