Class: Win32::SecurityAttributes
- Inherits:
-
Object
- Object
- Win32::SecurityAttributes
- Defined in:
- lib/Win32/Base.rb
Overview
TODO: The SecurityAttributes class is not finished!!!
Constant Summary collapse
- SE_ASSIGNPRIMARYTOKEN_NAME =
constsFor: “Message Formats” (from WinNT.h)
"SeAssignPrimaryTokenPrivilege"
- SE_AUDIT_NAME =
"SeAuditPrivilege"
- SE_BACKUP_NAME =
"SeBackupPrivilege"
- SE_CHANGE_NOTIFY_NAME =
"SeChangeNotifyPrivilege"
- SE_CREATE_PAGEFILE_NAME =
"SeCreatePagefilePrivilege"
- SE_CREATE_PERMANENT_NAME =
"SeCreatePermanentPrivilege"
- SE_CREATE_TOKEN_NAME =
"SeCreateTokenPrivilege"
- SE_DEBUG_NAME =
"SeDebugPrivilege"
- SE_INCREASE_QUOTA_NAME =
"SeIncreaseQuotaPrivilege"
- SE_INC_BASE_PRIORITY_NAME =
"SeIncreaseBasePriorityPrivilege"
- SE_LOAD_DRIVER_NAME =
"SeLoadDriverPrivilege"
- SE_LOCK_MEMORY_NAME =
"SeLockMemoryPrivilege"
- SE_MACHINE_ACCOUNT_NAME =
"SeMachineAccountPrivilege"
- SE_PROF_SINGLE_PROCESS_NAME =
"SeProfileSingleProcessPrivilege"
- SE_REMOTE_SHUTDOWN_NAME =
"SeRemoteShutdownPrivilege"
- SE_RESTORE_NAME =
"SeRestorePrivilege"
- SE_SECURITY_NAME =
"SeSecurityPrivilege"
- SE_SHUTDOWN_NAME =
"SeShutdownPrivilege"
- SE_SYSTEMTIME_NAME =
"SeSystemtimePrivilege"
- SE_SYSTEM_ENVIRONMENT_NAME =
"SeSystemEnvironmentPrivilege"
- SE_SYSTEM_PROFILE_NAME =
"SeSystemProfilePrivilege"
- SE_TAKE_OWNERSHIP_NAME =
"SeTakeOwnershipPrivilege"
- SE_TCB_NAME =
"SeTcbPrivilege"
- SE_UNSOLICITED_INPUT_NAME =
"SeUnsolicitedInputPrivilege"
Class Method Summary collapse
-
.sizeof ⇒ Object
—————————————————————————————– class methodsFor: “Data sizing”.
Instance Method Summary collapse
-
#initialize(p_bInheritHandle = true) ⇒ SecurityAttributes
constructor
—————————————————————————————– class methodsFor: “initialization”.
-
#pack ⇒ Object
—————————————————————————————– methodsFor: “packing”.
Constructor Details
#initialize(p_bInheritHandle = true) ⇒ SecurityAttributes
class methodsFor: “initialization”
240 241 242 |
# File 'lib/Win32/Base.rb', line 240 def initialize(p_bInheritHandle = true) @bInheritHandle = p_bInheritHandle end |
Class Method Details
.sizeof ⇒ Object
class methodsFor: “Data sizing”
234 235 236 |
# File 'lib/Win32/Base.rb', line 234 def SecurityAttributes.sizeof return 12 # 1 DWORD, 1 void*, 1 BOOL end |
Instance Method Details
#pack ⇒ Object
methodsFor: “packing”
246 247 248 |
# File 'lib/Win32/Base.rb', line 246 def pack [SecurityAttributes.sizeof, 0, @bInheritHandle].pack('L3') end |